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.0009042/0.0009042, allocations: 84 kB / 21.43 MB, free: 3.133 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.003907/0.003907, allocations: 149.4 kB / 24.69 MB, free: 9.434 MB / 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 0.91/0.91, allocations: 173.4 MB / 201.2 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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.864e-06/1.864e-06, allocations: 0 / 319.7 MB, free: 5.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.725e-05/2.912e-05, allocations: 10.22 kB / 319.7 MB, free: 5.699 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003013/0.003042, allocations: 2.902 MB / 322.6 MB, free: 2.777 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.004318, allocations: 0.9348 MB / 323.5 MB, free: 1.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/0.004516, allocations: 15.88 kB / 323.5 MB, free: 1.824 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003047/0.004821, allocations: 91.11 kB / 323.6 MB, free: 1.734 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.005009, allocations: 114.9 kB / 323.7 MB, free: 1.621 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.005409, allocations: 239.5 kB / 324 MB, free: 1.387 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003885/0.005797, allocations: 0.53 MB / 324.5 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.006006, allocations: 117.7 kB / 324.6 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.006231, allocations: 287.2 kB / 324.9 MB, free: 468 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.006409, allocations: 159.5 kB / 325 MB, free: 308 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.012e-05/0.00646, allocations: 40 kB / 325.1 MB, free: 268 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.588e-05/0.006495, allocations: 40 kB / 325.1 MB, free: 228 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.446e-05/0.00658, allocations: 111.6 kB / 325.2 MB, free: 116 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.006691, allocations: 135.6 kB / 325.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004064/0.007097, allocations: 0.5022 MB / 325.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.007101, allocations: 4 kB / 325.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.007102, allocations: 0 / 325.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.007108, allocations: 0 / 325.9 MB, free: 15.47 MB / 298.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.001114/0.008222, allocations: 0.6999 MB / 326.6 MB, free: 14.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.008259, allocations: 8.031 kB / 326.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.345e-05/0.008333, allocations: 56.61 kB / 326.6 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.00872, allocations: 309.4 kB / 326.9 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/0.008743, allocations: 21.38 kB / 327 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.008792, allocations: 44.38 kB / 327 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005515/0.009344, allocations: 472.2 kB / 327.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.009361, allocations: 11.92 kB / 327.5 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.009386, allocations: 20 kB / 327.5 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.009394, allocations: 8 kB / 327.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000522/0.009916, allocations: 375.6 kB / 327.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.01119, allocations: 1.349 MB / 329.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004958/0.01169, allocations: 298.7 kB / 329.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.01191, allocations: 160.7 kB / 329.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.01193, allocations: 4 kB / 329.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.01195, allocations: 42.44 kB / 329.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.512e-06/0.01195, allocations: 4 kB / 329.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001759/0.01371, allocations: 1.224 MB / 330.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.01376, allocations: 81.11 kB / 331 MB, free: 10.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002395/0.014, allocations: 341.6 kB / 331.4 MB, free: 9.727 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.01402, allocations: 33.7 kB / 331.4 MB, free: 9.688 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.01413, allocations: 252.4 kB / 331.6 MB, free: 9.434 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.731e-05/0.0142, allocations: 119 kB / 331.7 MB, free: 9.316 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.359e-05/0.01428, allocations: 82.14 kB / 331.8 MB, free: 9.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.184e-05/0.01437, allocations: 346.8 kB / 332.2 MB, free: 8.883 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002436/0.01462, allocations: 174.7 kB / 332.3 MB, free: 8.707 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002766/0.01489, allocations: 279.1 kB / 332.6 MB, free: 8.398 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004854/0.01538, allocations: 399.9 kB / 333 MB, free: 7.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.01538, allocations: 7.938 kB / 333 MB, free: 7.973 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000822/0.0162, allocations: 481.1 kB / 333.5 MB, free: 7.496 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.01622, allocations: 8 kB / 333.5 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.01623, allocations: 4 kB / 333.5 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.01624, allocations: 4 kB / 333.5 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004343/0.01667, allocations: 207.9 kB / 333.7 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008979/0.01757, allocations: 1.446 MB / 335.1 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.01772, allocations: 39.97 kB / 335.2 MB, free: 5.695 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.01774, allocations: 16 kB / 335.2 MB, free: 5.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002845/0.01802, allocations: 273 kB / 335.5 MB, free: 5.406 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002561/0.01828, allocations: 267.2 kB / 335.7 MB, free: 5.109 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004306/0.01871, allocations: 375.7 kB / 336.1 MB, free: 4.715 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.725e-06/0.01871, allocations: 7.984 kB / 336.1 MB, free: 4.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0005207/0.01923, allocations: 469 kB / 336.6 MB, free: 4.242 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.304e-06/0.01924, allocations: 8 kB / 336.6 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.01924, allocations: 3.984 kB / 336.6 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.537e-06/0.01925, allocations: 4 kB / 336.6 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.01948, allocations: 119.8 kB / 336.7 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.01948, allocations: 8.094 kB / 336.7 MB, free: 4.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.01961, allocations: 39.91 kB / 336.7 MB, free: 4.062 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.01963, allocations: 16 kB / 336.8 MB, free: 4.047 MB / 298.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 8.922e-05/0.01972, allocations: 196.2 kB / 336.9 MB, free: 3.848 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.57e-05/0.01975, allocations: 39.75 kB / 337 MB, free: 3.809 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.818e-05/0.0198, allocations: 48.09 kB / 337 MB, free: 3.754 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.0198, allocations: 0 / 337 MB, free: 3.754 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.0198, allocations: 0 / 337 MB, free: 3.754 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.01981, allocations: 15.88 kB / 337 MB, free: 3.738 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008659/0.02067, allocations: 0.7825 MB / 337.8 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.02068, allocations: 8.125 kB / 337.8 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002038/0.02088, allocations: 83.88 kB / 337.9 MB, free: 2.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.02088, allocations: 7.938 kB / 337.9 MB, free: 2.812 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.0209, allocations: 15.92 kB / 337.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.0209, allocations: 0 / 337.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.0209, allocations: 7.938 kB / 337.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007403/0.02164, allocations: 0.6676 MB / 338.6 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.638e-05/0.02172, allocations: 59.73 kB / 338.7 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.02175, allocations: 12 kB / 338.7 MB, free: 2.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.02188, allocations: 31.95 kB / 338.7 MB, free: 1.992 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.61e-05/0.02194, allocations: 27.89 kB / 338.7 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.02195, allocations: 12 kB / 338.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000149/0.0221, allocations: 235.2 kB / 339 MB, free: 1.727 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0221, allocations: 0 / 339 MB, free: 1.727 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003195/0.02242, allocations: 136 kB / 339.1 MB, free: 1.594 MB / 298.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 8.485e-05/0.0225, allocations: 111.1 kB / 339.2 MB, free: 1.477 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009606/0.02346, allocations: 0.6525 MB / 339.9 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.02346, allocations: 0 / 339.9 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000229/0.02369, allocations: 179.8 kB / 340.1 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.02407, allocations: 102.7 kB / 340.2 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.02537, allocations: 0.9272 MB / 341.1 MB, free: 15.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001281/0.0255, allocations: 216.2 kB / 341.3 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.383e-05/0.02558, allocations: 36.44 kB / 341.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of SimCode: time 5.31e-07/0.02558, allocations: 0 / 341.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of Templates: time 0.005224/0.03081, allocations: 6.094 MB / 347.4 MB, free: 9.223 MB / 314.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.51635982003063]