Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 115.1 kB / 18.45 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.458/1.458, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 51.92 kB / 374.1 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1096, allocations: 53.33 MB / 427.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005044/0.1146, allocations: 3.128 MB / 430.6 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002023/0.1166, allocations: 1.005 MB / 431.6 MB, free: 152 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002524/0.1169, allocations: 23.81 kB / 431.6 MB, free: 128 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003741/0.1173, allocations: 87.17 kB / 431.7 MB, free: 40 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002515/0.1175, allocations: 99.09 kB / 431.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006253/0.1181, allocations: 239.1 kB / 432.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005799/0.1187, allocations: 0.5107 MB / 432.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000293/0.119, allocations: 129.2 kB / 432.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002932/0.1193, allocations: 207.1 kB / 432.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002674/0.1196, allocations: 199 kB / 433.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.129e-05/0.1196, allocations: 40 kB / 433.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.47e-05/0.1197, allocations: 48 kB / 433.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.1198, allocations: 111.5 kB / 433.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002078/0.12, allocations: 210.8 kB / 433.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000601/0.1206, allocations: 0.4977 MB / 434 MB, free: 13.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1206, allocations: 0 / 434 MB, free: 13.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1206, allocations: 0 / 434 MB, free: 13.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.1207, allocations: 0 / 434 MB, free: 13.77 MB / 366.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.001426/0.1221, allocations: 0.7791 MB / 434.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.1221, allocations: 8.031 kB / 434.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.1222, allocations: 56.61 kB / 434.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005703/0.1228, allocations: 380 kB / 435.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.3e-05/0.1228, allocations: 29.38 kB / 435.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.861e-05/0.1229, allocations: 36.38 kB / 435.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009243/0.1238, allocations: 467.5 kB / 435.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.1239, allocations: 3.953 kB / 435.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.1239, allocations: 16 kB / 435.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.1239, allocations: 8 kB / 435.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.1249, allocations: 379.6 kB / 436.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.1271, allocations: 1.567 MB / 437.7 MB, free: 9.852 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008548/0.1279, allocations: 298.6 kB / 438 MB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004503/0.1284, allocations: 156.8 kB / 438.1 MB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.265e-05/0.1284, allocations: 8.438 kB / 438.1 MB, free: 9.383 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.1285, allocations: 34.5 kB / 438.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.934e-06/0.1285, allocations: 0 / 438.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.003498/0.132, allocations: 1.393 MB / 439.6 MB, free: 7.852 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.694e-05/0.132, allocations: 110.8 kB / 439.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004054/0.1325, allocations: 357.6 kB / 440 MB, free: 7.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.1325, allocations: 29.7 kB / 440.1 MB, free: 7.328 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.1327, allocations: 244.3 kB / 440.3 MB, free: 7.082 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.1328, allocations: 131.1 kB / 440.4 MB, free: 6.953 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.1329, allocations: 74.12 kB / 440.5 MB, free: 6.875 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.1331, allocations: 350.8 kB / 440.8 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004929/0.1336, allocations: 166.5 kB / 441 MB, free: 6.359 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005756/0.1342, allocations: 261.7 kB / 441.3 MB, free: 6.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009579/0.1351, allocations: 387.9 kB / 441.6 MB, free: 5.664 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1351, allocations: 0 / 441.6 MB, free: 5.664 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001207/0.1363, allocations: 0.493 MB / 442.1 MB, free: 5.164 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1363, allocations: 4 kB / 442.1 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1364, allocations: 4 kB / 442.1 MB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.1364, allocations: 4.219 kB / 442.1 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009367/0.1373, allocations: 207.7 kB / 442.3 MB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001882/0.1392, allocations: 1.576 MB / 443.9 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003573/0.1396, allocations: 39.98 kB / 444 MB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.1396, allocations: 16 kB / 444 MB, free: 3.184 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005816/0.1402, allocations: 272.9 kB / 444.2 MB, free: 2.914 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005012/0.1407, allocations: 245.8 kB / 444.5 MB, free: 2.641 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009678/0.1416, allocations: 363.7 kB / 444.8 MB, free: 2.258 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.623e-06/0.1416, allocations: 0 / 444.8 MB, free: 2.258 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001062/0.1427, allocations: 477 kB / 445.3 MB, free: 1.785 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.1427, allocations: 14.12 kB / 445.3 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-06/0.1427, allocations: 0 / 445.3 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.914e-06/0.1427, allocations: 8 kB / 445.3 MB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005095/0.1432, allocations: 123.8 kB / 445.4 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.1432, allocations: 12.09 kB / 445.4 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004153/0.1437, allocations: 39.95 kB / 445.5 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.1437, allocations: 12 kB / 445.5 MB, free: 1.582 MB / 366.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.0001856/0.1439, allocations: 196.2 kB / 445.7 MB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.902e-05/0.1439, allocations: 43.72 kB / 445.7 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.1441, allocations: 48.23 kB / 445.8 MB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.1441, allocations: 15.88 kB / 445.8 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1441, allocations: 0 / 445.8 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1441, allocations: 3.984 kB / 445.8 MB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001792/0.1459, allocations: 0.9116 MB / 446.7 MB, free: 300 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.1459, allocations: 4 kB / 446.7 MB, free: 296 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000439/0.1463, allocations: 79.88 kB / 446.8 MB, free: 216 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.1463, allocations: 4 kB / 446.8 MB, free: 212 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.1463, allocations: 8 kB / 446.8 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.1464, allocations: 8.109 kB / 446.8 MB, free: 196 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1464, allocations: 4 kB / 446.8 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2316/0.378, allocations: 0.6656 MB / 447.5 MB, free: 24.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.3781, allocations: 140.5 kB / 447.6 MB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.311e-05/0.3782, allocations: 9.141 kB / 447.6 MB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003326/0.3785, allocations: 33.12 kB / 447.7 MB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.826e-05/0.3786, allocations: 27.77 kB / 447.7 MB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.3786, allocations: 11 kB / 447.7 MB, free: 24.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002656/0.3789, allocations: 252.8 kB / 447.9 MB, free: 24.26 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3789, allocations: 0 / 447.9 MB, free: 24.26 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005901/0.3795, allocations: 135.4 kB / 448.1 MB, free: 24.26 MB / 366.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.0001177/0.3796, allocations: 110.3 kB / 448.2 MB, free: 24.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.3815, allocations: 0.6591 MB / 448.8 MB, free: 24.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3815, allocations: 0 / 448.8 MB, free: 24.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004454/0.382, allocations: 172.8 kB / 449 MB, free: 24.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006282/0.3826, allocations: 91.81 kB / 449.1 MB, free: 24.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.3843, allocations: 1.036 MB / 450.1 MB, free: 23.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.3846, allocations: 0.8228 MB / 451 MB, free: 22.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.3847, allocations: 33.77 kB / 451 MB, free: 22.97 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3847, allocations: 0 / 451 MB, free: 22.97 MB / 366.1 MB Notification: Performance of Templates: time 0.01135/0.396, allocations: 5.998 MB / 457 MB, free: 22.49 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 8.05385367301642]