Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001449/0.001449, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002037/0.002037, allocations: 213.9 kB / 24.48 MB, free: 3.836 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.611/1.611, allocations: 230.5 MB / 258.1 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 63.89 kB / 379 MB, free: 2.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4384/0.4405, allocations: 53.41 MB / 432.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.007521/0.448, allocations: 2.915 MB / 435.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003654/0.4517, allocations: 0.962 MB / 436.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008071/0.4525, allocations: 19.88 kB / 436.3 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007807/0.4532, allocations: 87.17 kB / 436.4 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009068/0.4541, allocations: 111.1 kB / 436.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001409/0.4556, allocations: 239.6 kB / 436.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001486/0.457, allocations: 0.5146 MB / 437.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005721/0.4576, allocations: 113.7 kB / 437.3 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006094/0.4582, allocations: 203.1 kB / 437.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006813/0.4589, allocations: 191 kB / 437.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002263/0.4591, allocations: 47.94 kB / 437.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/0.4594, allocations: 40 kB / 437.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002809/0.4596, allocations: 103.6 kB / 437.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004903/0.4601, allocations: 175 kB / 438.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.4612, allocations: 0.4929 MB / 438.6 MB, free: 344 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4612, allocations: 0 / 438.6 MB, free: 344 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4612, allocations: 0 / 438.6 MB, free: 344 kB / 334.1 MB Notification: Performance of Transformations before backend: time 3.538e-05/0.4613, allocations: 0 / 438.6 MB, free: 344 kB / 334.1 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.002598/0.4638, allocations: 0.7038 MB / 439.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.313e-05/0.4639, allocations: 15.98 kB / 439.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000239/0.4642, allocations: 56.59 kB / 439.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.4653, allocations: 306.2 kB / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.799e-05/0.4654, allocations: 29.38 kB / 439.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.4655, allocations: 36.38 kB / 439.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.4671, allocations: 0.5029 MB / 440.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.472e-05/0.4671, allocations: 3.953 kB / 440.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.3e-05/0.4672, allocations: 16 kB / 440.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.962e-05/0.4672, allocations: 12 kB / 440.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/0.4687, allocations: 375.6 kB / 440.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003632/0.4724, allocations: 1.36 MB / 442 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.4735, allocations: 294.6 kB / 442.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006166/0.4742, allocations: 156.8 kB / 442.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/0.4742, allocations: 8 kB / 442.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.536e-05/0.4743, allocations: 34.5 kB / 442.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 5.199e-06/0.4743, allocations: 0 / 442.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.004848/0.4791, allocations: 1.241 MB / 443.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.4792, allocations: 106.8 kB / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007097/0.4799, allocations: 349.5 kB / 444.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.404e-05/0.48, allocations: 33.7 kB / 444.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002953/0.4803, allocations: 248.5 kB / 444.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000172/0.4805, allocations: 115 kB / 444.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.4807, allocations: 82.08 kB / 444.6 MB, free: 9.996 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002591/0.4809, allocations: 346.8 kB / 444.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006652/0.4816, allocations: 174.5 kB / 445.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008486/0.4825, allocations: 309.1 kB / 445.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/0.484, allocations: 391.9 kB / 445.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.484, allocations: 0 / 445.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001969/0.4859, allocations: 496.9 kB / 446.3 MB, free: 8.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.491e-05/0.486, allocations: 8 kB / 446.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.486, allocations: 0 / 446.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.663e-05/0.486, allocations: 4 kB / 446.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001675/0.4877, allocations: 215.9 kB / 446.5 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003069/0.4908, allocations: 1.454 MB / 448 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006853/0.4915, allocations: 39.89 kB / 448 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.008e-05/0.4915, allocations: 12 kB / 448 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001089/0.4926, allocations: 273 kB / 448.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009414/0.4936, allocations: 293.1 kB / 448.6 MB, free: 5.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001588/0.4951, allocations: 375.7 kB / 448.9 MB, free: 5.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.037e-06/0.4951, allocations: 4 kB / 448.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.002026/0.4972, allocations: 461.1 kB / 449.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.4972, allocations: 8 kB / 449.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.4972, allocations: 0 / 449.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.4972, allocations: 4 kB / 449.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009718/0.4982, allocations: 128 kB / 449.5 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.639e-05/0.4982, allocations: 4 kB / 449.5 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006501/0.4989, allocations: 39.95 kB / 449.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.938e-05/0.4989, allocations: 15.94 kB / 449.6 MB, free: 4.75 MB / 350.1 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.0003279/0.4992, allocations: 208.7 kB / 449.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001822/0.4994, allocations: 39.77 kB / 449.8 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001973/0.4996, allocations: 48.03 kB / 449.9 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.4996, allocations: 8 kB / 449.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.4996, allocations: 0 / 449.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.751e-05/0.4997, allocations: 11.91 kB / 449.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003193/0.5029, allocations: 0.7825 MB / 450.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.5029, allocations: 3.984 kB / 450.7 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007977/0.5037, allocations: 91.88 kB / 450.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.147e-05/0.5037, allocations: 3.938 kB / 450.8 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.5037, allocations: 11.94 kB / 450.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.5037, allocations: 4 kB / 450.8 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.5037, allocations: 0 / 450.8 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002669/0.5064, allocations: 0.6792 MB / 451.5 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003309/0.5067, allocations: 59.72 kB / 451.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.5068, allocations: 8 kB / 451.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005863/0.5074, allocations: 35.95 kB / 451.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.5076, allocations: 19.97 kB / 451.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-05/0.5076, allocations: 15.98 kB / 451.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005414/0.5081, allocations: 239.2 kB / 451.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5081, allocations: 0 / 451.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001177/0.5093, allocations: 136 kB / 452 MB, free: 2.277 MB / 350.1 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.0002242/0.5095, allocations: 99.19 kB / 452.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003725/0.5133, allocations: 0.6562 MB / 452.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.71e-05/0.5133, allocations: 0 / 452.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008975/0.5142, allocations: 167.8 kB / 452.9 MB, free: 1.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.5154, allocations: 110.3 kB / 453 MB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003849/0.5192, allocations: 1.051 MB / 454 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004509/0.5197, allocations: 220 kB / 454.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002176/0.5199, allocations: 35.44 kB / 454.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of SimCode: time 1.773e-06/0.5199, allocations: 0 / 454.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of Templates: time 0.01876/0.5386, allocations: 6.069 MB / 460.4 MB, free: 9.824 MB / 366.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 7.9784764549694955]