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.001988/0.001988, allocations: 119.4 kB / 18.41 MB, free: 4.516 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.002321/0.002321, allocations: 188.3 kB / 21.34 MB, free: 1.59 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.483/1.483, allocations: 222.9 MB / 247 MB, free: 4.328 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.001569/0.001569, allocations: 47.92 kB / 358.7 MB, free: 8.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0983/0.09988, allocations: 49.44 MB / 408.1 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004755/0.1047, allocations: 3.106 MB / 411.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.1066, allocations: 0.966 MB / 412.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002245/0.1069, allocations: 15.88 kB / 412.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000357/0.1072, allocations: 83.23 kB / 412.3 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002596/0.1075, allocations: 107.1 kB / 412.4 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006227/0.1082, allocations: 235.5 kB / 412.6 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006119/0.1088, allocations: 0.5107 MB / 413.1 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003165/0.1091, allocations: 169.2 kB / 413.3 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000257/0.1094, allocations: 191.2 kB / 413.5 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002792/0.1097, allocations: 218.9 kB / 413.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.477e-05/0.1098, allocations: 40 kB / 413.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.145e-05/0.1098, allocations: 44 kB / 413.8 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001309/0.11, allocations: 95.69 kB / 413.8 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002106/0.1102, allocations: 214.8 kB / 414.1 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005947/0.1108, allocations: 0.5016 MB / 414.6 MB, free: 480 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1108, allocations: 0 / 414.6 MB, free: 480 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1108, allocations: 4 kB / 414.6 MB, free: 476 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.1108, allocations: 0 / 414.6 MB, free: 476 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.001418/0.1123, allocations: 0.7752 MB / 415.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.1123, allocations: 15.89 kB / 415.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.645e-05/0.1124, allocations: 52.61 kB / 415.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005794/0.113, allocations: 368 kB / 415.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.113, allocations: 25.38 kB / 415.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.093e-05/0.1131, allocations: 47.88 kB / 415.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009371/0.1141, allocations: 454.3 kB / 416.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.1141, allocations: 0 / 416.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.696e-05/0.1141, allocations: 19.98 kB / 416.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.1142, allocations: 12 kB / 416.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.1152, allocations: 371.7 kB / 416.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002186/0.1174, allocations: 1.567 MB / 418.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008804/0.1183, allocations: 319.3 kB / 418.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004693/0.1188, allocations: 161.2 kB / 418.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.356e-05/0.1188, allocations: 15.92 kB / 418.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.1189, allocations: 42.56 kB / 418.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.463e-06/0.1189, allocations: 4 kB / 418.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003545/0.1224, allocations: 1.377 MB / 420.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.454e-05/0.1225, allocations: 81.11 kB / 420.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004344/0.123, allocations: 353.7 kB / 420.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/0.123, allocations: 33.7 kB / 420.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.1232, allocations: 252.5 kB / 420.9 MB, free: 9.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.1233, allocations: 122.9 kB / 421 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.1235, allocations: 78.12 kB / 421.1 MB, free: 9.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.1237, allocations: 350.7 kB / 421.4 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005128/0.1242, allocations: 174.5 kB / 421.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005651/0.1248, allocations: 252.8 kB / 421.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009728/0.1257, allocations: 392 kB / 422.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1258, allocations: 0 / 422.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001215/0.127, allocations: 0.493 MB / 422.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.127, allocations: 4 kB / 422.7 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.127, allocations: 4.219 kB / 422.7 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.1271, allocations: 8 kB / 422.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009332/0.128, allocations: 203.7 kB / 422.9 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.1299, allocations: 1.568 MB / 424.5 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003438/0.1302, allocations: 39.98 kB / 424.5 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.1303, allocations: 16 kB / 424.5 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000562/0.1308, allocations: 272.9 kB / 424.8 MB, free: 5.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004959/0.1313, allocations: 236.8 kB / 425 MB, free: 5.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008652/0.1322, allocations: 367.7 kB / 425.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.783e-06/0.1322, allocations: 0 / 425.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001095/0.1333, allocations: 481 kB / 425.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.1333, allocations: 4 kB / 425.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.1334, allocations: 11.92 kB / 425.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.244e-06/0.1334, allocations: 4 kB / 425.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004998/0.1339, allocations: 115.9 kB / 426 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.1339, allocations: 8.156 kB / 426 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.1342, allocations: 35.95 kB / 426 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.66e-05/0.1342, allocations: 12 kB / 426 MB, free: 4.332 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.0001644/0.1344, allocations: 200.1 kB / 426.2 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.678e-05/0.1345, allocations: 43.7 kB / 426.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.1346, allocations: 44.25 kB / 426.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.1346, allocations: 11.94 kB / 426.3 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1346, allocations: 4 kB / 426.3 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.1346, allocations: 3.984 kB / 426.3 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001771/0.1364, allocations: 0.9202 MB / 427.3 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.1364, allocations: 4 kB / 427.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004346/0.1369, allocations: 83.88 kB / 427.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.1369, allocations: 4 kB / 427.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.1369, allocations: 11.98 kB / 427.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.1369, allocations: 4.125 kB / 427.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.1369, allocations: 4 kB / 427.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.1385, allocations: 0.6718 MB / 428 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.1387, allocations: 132.9 kB / 428.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.071e-05/0.1387, allocations: 15.98 kB / 428.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003154/0.139, allocations: 35.97 kB / 428.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.958e-05/0.1391, allocations: 23.91 kB / 428.2 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.1392, allocations: 8 kB / 428.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000295/0.1395, allocations: 251.2 kB / 428.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.32e-06/0.1395, allocations: 0 / 428.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005642/0.14, allocations: 143.9 kB / 428.6 MB, free: 1.609 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.0001349/0.1402, allocations: 107.1 kB / 428.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.1423, allocations: 0.6995 MB / 429.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.1423, allocations: 4 kB / 429.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004977/0.1428, allocations: 176.2 kB / 429.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006989/0.1435, allocations: 117 kB / 429.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1622/0.3057, allocations: 1.037 MB / 430.8 MB, free: 23.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.306, allocations: 0.8185 MB / 431.6 MB, free: 22.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.3061, allocations: 33.91 kB / 431.6 MB, free: 22.46 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3061, allocations: 2.312 kB / 431.6 MB, free: 22.46 MB / 350.1 MB Notification: Performance of Templates: time 0.009226/0.3154, allocations: 5.99 MB / 437.6 MB, free: 22.12 MB / 350.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.736746884998865]