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.001482/0.001482, allocations: 116.5 kB / 18.45 MB, free: 4.602 MB / 14.72 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.001514/0.001514, allocations: 190.7 kB / 21.4 MB, free: 1.664 MB / 14.72 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.454/1.454, allocations: 225.6 MB / 249.8 MB, free: 3.605 MB / 190.1 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 0.001466/0.001466, allocations: 55.91 kB / 366.8 MB, free: 352 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09684/0.0983, allocations: 52.14 MB / 418.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004773/0.1031, allocations: 3.136 MB / 422.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.1051, allocations: 0.9661 MB / 423 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.1054, allocations: 11.94 kB / 423.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003676/0.1058, allocations: 87.17 kB / 423.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002614/0.106, allocations: 111.1 kB / 423.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006265/0.1067, allocations: 226.8 kB / 423.5 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006161/0.1073, allocations: 0.5224 MB / 424 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002536/0.1075, allocations: 117.3 kB / 424.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/0.1078, allocations: 203.2 kB / 424.3 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002767/0.1081, allocations: 214.9 kB / 424.5 MB, free: 6.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.23e-05/0.1081, allocations: 40 kB / 424.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.972e-05/0.1082, allocations: 40 kB / 424.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.1083, allocations: 99.62 kB / 424.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002158/0.1086, allocations: 218.8 kB / 424.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006089/0.1092, allocations: 0.49 MB / 425.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1092, allocations: 3.984 kB / 425.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1092, allocations: 0 / 425.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.1092, allocations: 7.938 kB / 425.4 MB, free: 5.617 MB / 350.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.001364/0.1105, allocations: 0.7791 MB / 426.2 MB, free: 4.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.1106, allocations: 11.89 kB / 426.2 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.1107, allocations: 56.61 kB / 426.2 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005721/0.1113, allocations: 375.9 kB / 426.6 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.118e-05/0.1113, allocations: 33.38 kB / 426.6 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.41e-05/0.1114, allocations: 43.89 kB / 426.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009204/0.1123, allocations: 446.3 kB / 427.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.1123, allocations: 4 kB / 427.1 MB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.792e-05/0.1124, allocations: 16 kB / 427.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.1124, allocations: 8 kB / 427.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009959/0.1134, allocations: 375.6 kB / 427.5 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002184/0.1155, allocations: 1.563 MB / 429.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008341/0.1164, allocations: 307.3 kB / 429.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000454/0.1168, allocations: 157.2 kB / 429.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.1169, allocations: 12 kB / 429.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.1169, allocations: 38.55 kB / 429.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.1169, allocations: 0 / 429.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003443/0.1203, allocations: 1.381 MB / 431 MB, free: 15.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/0.1204, allocations: 85.11 kB / 431.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004062/0.1208, allocations: 349.7 kB / 431.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.1208, allocations: 33.7 kB / 431.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.121, allocations: 248.2 kB / 431.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.1212, allocations: 122.9 kB / 431.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.1213, allocations: 78.12 kB / 431.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.1215, allocations: 350.7 kB / 432.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004897/0.122, allocations: 178.5 kB / 432.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005591/0.1225, allocations: 248.8 kB / 432.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009492/0.1235, allocations: 391.8 kB / 433 MB, free: 13.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1235, allocations: 8 kB / 433 MB, free: 13.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00116/0.1246, allocations: 497.1 kB / 433.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.1246, allocations: 4 kB / 433.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.1247, allocations: 4 kB / 433.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.1247, allocations: 4 kB / 433.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009022/0.1256, allocations: 211.8 kB / 433.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001819/0.1274, allocations: 1.576 MB / 435.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003371/0.1277, allocations: 35.95 kB / 435.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.1278, allocations: 12 kB / 435.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005643/0.1283, allocations: 277 kB / 435.6 MB, free: 10.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004896/0.1288, allocations: 236.8 kB / 435.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008297/0.1296, allocations: 367.7 kB / 436.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.643e-06/0.1296, allocations: 0 / 436.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.00108/0.1307, allocations: 473 kB / 436.7 MB, free: 9.695 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.1307, allocations: 6.344 kB / 436.7 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1307, allocations: 7.938 kB / 436.7 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.154e-06/0.1308, allocations: 4.219 kB / 436.7 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005032/0.1313, allocations: 127.8 kB / 436.8 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1313, allocations: 4 kB / 436.8 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.1316, allocations: 35.95 kB / 436.8 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.502e-05/0.1316, allocations: 16 kB / 436.9 MB, free: 9.5 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.00018/0.1318, allocations: 216.7 kB / 437.1 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.298e-05/0.1318, allocations: 43.7 kB / 437.1 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.132, allocations: 48.25 kB / 437.2 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.132, allocations: 0 / 437.2 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.132, allocations: 0 / 437.2 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.132, allocations: 7.984 kB / 437.2 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/0.1337, allocations: 0.9154 MB / 438.1 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1337, allocations: 0 / 438.1 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004448/0.1342, allocations: 88 kB / 438.2 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.848e-06/0.1342, allocations: 7.984 kB / 438.2 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.1342, allocations: 8 kB / 438.2 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.1342, allocations: 3.984 kB / 438.2 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1342, allocations: 4 kB / 438.2 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/0.1357, allocations: 0.6677 MB / 438.9 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.1359, allocations: 140.9 kB / 439 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/0.1359, allocations: 4 kB / 439 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003068/0.1362, allocations: 35.95 kB / 439 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.902e-05/0.1363, allocations: 23.91 kB / 439.1 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.1363, allocations: 12 kB / 439.1 MB, free: 7.164 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002935/0.1366, allocations: 251.2 kB / 439.3 MB, free: 6.918 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1366, allocations: 0 / 439.3 MB, free: 6.918 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005553/0.1372, allocations: 140 kB / 439.5 MB, free: 6.781 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.0001325/0.1373, allocations: 111.1 kB / 439.6 MB, free: 6.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002028/0.1393, allocations: 0.6564 MB / 440.2 MB, free: 6.004 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1393, allocations: 0 / 440.2 MB, free: 6.004 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004912/0.1398, allocations: 180.4 kB / 440.4 MB, free: 5.828 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006533/0.1405, allocations: 96.11 kB / 440.5 MB, free: 5.738 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.1424, allocations: 1.061 MB / 441.6 MB, free: 4.629 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004676/0.1429, allocations: 0.8195 MB / 442.4 MB, free: 3.785 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.143, allocations: 35.42 kB / 442.4 MB, free: 3.75 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.143, allocations: 0 / 442.4 MB, free: 3.75 MB / 366.1 MB Notification: Performance of Templates: time 0.1764/0.3194, allocations: 6.002 MB / 448.4 MB, free: 30.14 MB / 366.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.410366558004171]