Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 149.4 kB / 24.25 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 173.3 MB / 200.8 MB, free: 9.281 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.585e-05/2.753e-05, allocations: 2.312 kB / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005085/0.005113, allocations: 2.915 MB / 270.2 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.007208, allocations: 0.9541 MB / 271.2 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000213/0.007421, allocations: 15.88 kB / 271.2 MB, free: 2.805 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003874/0.007808, allocations: 87.17 kB / 271.3 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002925/0.0081, allocations: 111 kB / 271.4 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000614/0.008714, allocations: 239.5 kB / 271.6 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006778/0.009392, allocations: 0.5338 MB / 272.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.009659, allocations: 109.7 kB / 272.3 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003789/0.01004, allocations: 283.4 kB / 272.5 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002616/0.0103, allocations: 155.5 kB / 272.7 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.657e-05/0.01038, allocations: 40 kB / 272.7 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.297e-05/0.01045, allocations: 44 kB / 272.8 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.01059, allocations: 107.5 kB / 272.9 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.01077, allocations: 139.7 kB / 273 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006719/0.01144, allocations: 0.5021 MB / 273.5 MB, free: 484 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.01145, allocations: 8 kB / 273.5 MB, free: 476 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.01145, allocations: 0 / 273.5 MB, free: 476 kB / 250.7 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.01146, allocations: 0 / 273.5 MB, free: 476 kB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001579/0.01304, allocations: 0.696 MB / 274.2 MB, free: 15.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.01307, allocations: 12.03 kB / 274.2 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.01323, allocations: 76.61 kB / 274.3 MB, free: 15.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006148/0.01385, allocations: 333.3 kB / 274.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.273e-05/0.01389, allocations: 29.38 kB / 274.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.07e-05/0.01397, allocations: 36.38 kB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.01498, allocations: 476.2 kB / 275.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/0.015, allocations: 3.938 kB / 275.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.237e-05/0.01504, allocations: 16 kB / 275.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.01506, allocations: 16 kB / 275.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.01612, allocations: 367.6 kB / 275.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.01843, allocations: 1.368 MB / 276.9 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.0196, allocations: 298.7 kB / 277.2 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004627/0.02006, allocations: 152.7 kB / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.02009, allocations: 8 kB / 277.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.02013, allocations: 38.5 kB / 277.4 MB, free: 12.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.332e-06/0.02013, allocations: 0 / 277.4 MB, free: 12.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.003502/0.02363, allocations: 1.243 MB / 278.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/0.02371, allocations: 89.03 kB / 278.7 MB, free: 10.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004455/0.02416, allocations: 341.6 kB / 279.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.02419, allocations: 29.7 kB / 279.1 MB, free: 10.61 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002471/0.02444, allocations: 252.6 kB / 279.3 MB, free: 10.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.02456, allocations: 119 kB / 279.5 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.02471, allocations: 78.14 kB / 279.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.02492, allocations: 346.8 kB / 279.9 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005054/0.02543, allocations: 174.7 kB / 280 MB, free: 9.633 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005835/0.02601, allocations: 275.1 kB / 280.3 MB, free: 9.324 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000975/0.02699, allocations: 395.9 kB / 280.7 MB, free: 8.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.02699, allocations: 3.938 kB / 280.7 MB, free: 8.906 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001242/0.02823, allocations: 0.4971 MB / 281.2 MB, free: 8.402 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.02825, allocations: 10.97 kB / 281.2 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.02826, allocations: 0 / 281.2 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.02828, allocations: 7.938 kB / 281.2 MB, free: 8.387 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009552/0.02924, allocations: 211.9 kB / 281.4 MB, free: 8.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001989/0.03123, allocations: 1.457 MB / 282.9 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003539/0.03158, allocations: 40.12 kB / 282.9 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.37e-05/0.03161, allocations: 15.98 kB / 282.9 MB, free: 6.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005884/0.0322, allocations: 269 kB / 283.2 MB, free: 6.305 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005424/0.03274, allocations: 271.1 kB / 283.5 MB, free: 6.004 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008813/0.03363, allocations: 367.8 kB / 283.8 MB, free: 5.617 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.824e-06/0.03363, allocations: 7.938 kB / 283.8 MB, free: 5.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001381/0.03501, allocations: 485 kB / 284.3 MB, free: 5.129 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.03502, allocations: 4 kB / 284.3 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.03503, allocations: 4 kB / 284.3 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.023e-06/0.03503, allocations: 4 kB / 284.3 MB, free: 5.117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005393/0.03557, allocations: 119.8 kB / 284.4 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.03558, allocations: 7.938 kB / 284.4 MB, free: 4.992 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/0.0359, allocations: 40.06 kB / 284.5 MB, free: 4.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.03593, allocations: 16 kB / 284.5 MB, free: 4.938 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001876/0.03612, allocations: 196.2 kB / 284.7 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.03622, allocations: 47.77 kB / 284.7 MB, free: 4.691 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.03633, allocations: 48.09 kB / 284.8 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.03633, allocations: 0 / 284.8 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.03634, allocations: 4 kB / 284.8 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.03634, allocations: 3.938 kB / 284.8 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001829/0.03817, allocations: 0.7904 MB / 285.6 MB, free: 3.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.03818, allocations: 128 / 285.6 MB, free: 3.793 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004522/0.03863, allocations: 91.86 kB / 285.7 MB, free: 3.703 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.03863, allocations: 7.938 kB / 285.7 MB, free: 3.695 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.03866, allocations: 8 kB / 285.7 MB, free: 3.688 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.03867, allocations: 4 kB / 285.7 MB, free: 3.684 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.03867, allocations: 3.938 kB / 285.7 MB, free: 3.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.04031, allocations: 0.6754 MB / 286.4 MB, free: 2.977 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001383/0.04045, allocations: 59.73 kB / 286.4 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/0.0405, allocations: 11.98 kB / 286.4 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.04081, allocations: 31.97 kB / 286.5 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.014e-05/0.0409, allocations: 27.89 kB / 286.5 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.04092, allocations: 12 kB / 286.5 MB, free: 2.836 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003065/0.04123, allocations: 235.2 kB / 286.7 MB, free: 2.609 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04123, allocations: 0 / 286.7 MB, free: 2.609 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005873/0.04182, allocations: 136 kB / 286.9 MB, free: 2.477 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001413/0.04196, allocations: 115 kB / 287 MB, free: 2.355 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002058/0.04402, allocations: 0.6449 MB / 287.6 MB, free: 1.711 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.654e-06/0.04402, allocations: 4.125 kB / 287.6 MB, free: 1.707 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005066/0.04453, allocations: 171.8 kB / 287.8 MB, free: 1.539 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007045/0.04523, allocations: 124.4 kB / 287.9 MB, free: 1.422 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001892/0.04712, allocations: 0.9134 MB / 288.8 MB, free: 480 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.04737, allocations: 216.2 kB / 289 MB, free: 244 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002461/0.04762, allocations: 67.23 kB / 289.1 MB, free: 176 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.04773, allocations: 28.5 kB / 289.1 MB, free: 148 kB / 266.7 MB Notification: Performance of SimCode: time 6.42e-07/0.04773, allocations: 0 / 289.1 MB, free: 148 kB / 266.7 MB Notification: Performance of Templates: time 0.1024/0.1501, allocations: 4.848 MB / 294 MB, free: 31.83 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.534772190963849]