Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 108.4 kB / 18.34 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 186.9 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 51.92 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08862/0.08983, allocations: 46.63 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00426/0.09413, allocations: 3.122 MB / 331.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0018/0.09595, allocations: 1.006 MB / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002045/0.09617, allocations: 19.88 kB / 332.9 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003509/0.09656, allocations: 83.23 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003442/0.09691, allocations: 107 kB / 333 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005895/0.09752, allocations: 223.7 kB / 333.3 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005072/0.09804, allocations: 0.5223 MB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003122/0.09836, allocations: 169.2 kB / 333.9 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003191/0.0987, allocations: 199.1 kB / 334.1 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.099, allocations: 203 kB / 334.3 MB, free: 14.08 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.171e-05/0.09907, allocations: 44 kB / 334.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.816e-05/0.09914, allocations: 40 kB / 334.4 MB, free: 14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.09926, allocations: 107.6 kB / 334.5 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.09945, allocations: 218.8 kB / 334.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004867/0.09994, allocations: 0.4942 MB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.09995, allocations: 0 / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.09996, allocations: 4 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.09998, allocations: 0 / 335.2 MB, free: 13.18 MB / 286.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.001316/0.1013, allocations: 0.7716 MB / 336 MB, free: 12.36 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.1013, allocations: 11.89 kB / 336 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.923e-05/0.1014, allocations: 48.38 kB / 336.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005571/0.102, allocations: 371.7 kB / 336.4 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.102, allocations: 29.38 kB / 336.5 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.1021, allocations: 40.28 kB / 336.5 MB, free: 11.83 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009485/0.1031, allocations: 458.6 kB / 336.9 MB, free: 11.35 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.1031, allocations: 0 / 336.9 MB, free: 11.35 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.848e-05/0.1032, allocations: 16 kB / 337 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.1032, allocations: 15.94 kB / 337 MB, free: 11.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009556/0.1041, allocations: 371.6 kB / 337.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002183/0.1063, allocations: 1.582 MB / 338.9 MB, free: 9.281 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.1075, allocations: 310.7 kB / 339.2 MB, free: 8.969 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004084/0.1079, allocations: 160.7 kB / 339.4 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.753e-05/0.1079, allocations: 11.88 kB / 339.4 MB, free: 8.797 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.108, allocations: 42.55 kB / 339.4 MB, free: 8.746 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.744e-06/0.108, allocations: 0 / 339.4 MB, free: 8.746 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003295/0.1113, allocations: 1.377 MB / 340.8 MB, free: 7.277 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.1113, allocations: 77.11 kB / 340.9 MB, free: 7.184 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003564/0.1117, allocations: 361.6 kB / 341.2 MB, free: 6.824 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.1117, allocations: 29.7 kB / 341.3 MB, free: 6.789 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.1119, allocations: 252 kB / 341.5 MB, free: 6.539 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.496e-05/0.112, allocations: 114.3 kB / 341.6 MB, free: 6.426 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.1121, allocations: 78.03 kB / 341.7 MB, free: 6.344 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1122, allocations: 358.7 kB / 342.1 MB, free: 5.984 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004307/0.1127, allocations: 174.5 kB / 342.2 MB, free: 5.809 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004531/0.1131, allocations: 240.8 kB / 342.5 MB, free: 5.543 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008182/0.114, allocations: 399.9 kB / 342.9 MB, free: 5.125 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.114, allocations: 0 / 342.9 MB, free: 5.125 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001036/0.115, allocations: 496.7 kB / 343.3 MB, free: 4.633 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.115, allocations: 4 kB / 343.3 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.1151, allocations: 4.219 kB / 343.3 MB, free: 4.625 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.1151, allocations: 8 kB / 343.4 MB, free: 4.617 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008432/0.1159, allocations: 207.7 kB / 343.6 MB, free: 4.414 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/0.1176, allocations: 1.572 MB / 345.1 MB, free: 2.703 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003194/0.1179, allocations: 35.98 kB / 345.2 MB, free: 2.668 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.021e-05/0.1179, allocations: 16 kB / 345.2 MB, free: 2.652 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005074/0.1184, allocations: 272.9 kB / 345.4 MB, free: 2.383 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004233/0.1189, allocations: 236.9 kB / 345.7 MB, free: 2.121 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007119/0.1196, allocations: 379.7 kB / 346 MB, free: 1.723 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.713e-06/0.1196, allocations: 0 / 346 MB, free: 1.723 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009059/0.1205, allocations: 472.8 kB / 346.5 MB, free: 1.254 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.538e-06/0.1205, allocations: 4 kB / 346.5 MB, free: 1.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1206, allocations: 7.984 kB / 346.5 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.042e-06/0.1206, allocations: 4 kB / 346.5 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004849/0.1211, allocations: 119.8 kB / 346.6 MB, free: 1.121 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.1211, allocations: 12.09 kB / 346.7 MB, free: 1.109 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.1214, allocations: 35.95 kB / 346.7 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.559e-05/0.1214, allocations: 16 kB / 346.7 MB, free: 1.059 MB / 286.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.0001433/0.1215, allocations: 196.2 kB / 346.9 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.795e-05/0.1216, allocations: 43.47 kB / 346.9 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.638e-05/0.1217, allocations: 48.23 kB / 347 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.1217, allocations: 15.92 kB / 347 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1217, allocations: 0 / 347 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.1218, allocations: 4 kB / 347 MB, free: 0.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.1234, allocations: 0.9185 MB / 347.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.1235, allocations: 7.984 kB / 347.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.1239, allocations: 79.94 kB / 348 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.1239, allocations: 4 kB / 348 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/0.1239, allocations: 11.94 kB / 348 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.1239, allocations: 8.125 kB / 348 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1239, allocations: 3.938 kB / 348 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.1253, allocations: 0.663 MB / 348.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.1255, allocations: 144.6 kB / 348.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.825e-05/0.1255, allocations: 12 kB / 348.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002836/0.1258, allocations: 31.95 kB / 348.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.566e-05/0.1259, allocations: 23.97 kB / 348.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.1259, allocations: 8 kB / 348.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003126/0.1263, allocations: 247.2 kB / 349.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1263, allocations: 0 / 349.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005328/0.1268, allocations: 147.9 kB / 349.3 MB, free: 14.34 MB / 302.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.0001337/0.1269, allocations: 111.6 kB / 349.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001848/0.1288, allocations: 0.6835 MB / 350.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1288, allocations: 0 / 350.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004324/0.1293, allocations: 184.2 kB / 350.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000624/0.1299, allocations: 105.7 kB / 350.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.1318, allocations: 1.007 MB / 351.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.1322, allocations: 0.8234 MB / 352.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002284/0.1324, allocations: 63.22 kB / 352.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.549e-05/0.1325, allocations: 31.44 kB / 352.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1325, allocations: 0 / 352.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of Templates: time 0.009212/0.1417, allocations: 4.67 MB / 357 MB, free: 6.605 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches