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.001443/0.001443, allocations: 104.5 kB / 18.35 MB, free: 4.645 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.001587/0.001587, allocations: 191 kB / 19.29 MB, free: 3.715 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.352/1.352, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001369/0.001369, allocations: 51.92 kB / 282.1 MB, free: 2.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09519/0.09657, allocations: 46.62 MB / 328.7 MB, free: 3.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00436/0.101, allocations: 3.121 MB / 331.8 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.1028, allocations: 1.006 MB / 332.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002107/0.1031, allocations: 19.88 kB / 332.9 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003463/0.1034, allocations: 87.17 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.1037, allocations: 103.1 kB / 333 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005132/0.1042, allocations: 239.5 kB / 333.3 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004804/0.1047, allocations: 0.5146 MB / 333.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.105, allocations: 169.2 kB / 334 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001991/0.1052, allocations: 195.1 kB / 334.2 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002287/0.1054, allocations: 211 kB / 334.4 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.676e-05/0.1055, allocations: 44 kB / 334.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.657e-05/0.1055, allocations: 40 kB / 334.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.1056, allocations: 103.6 kB / 334.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.1058, allocations: 222.7 kB / 334.8 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000442/0.1063, allocations: 498.2 kB / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1063, allocations: 0 / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1063, allocations: 0 / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1063, allocations: 0 / 335.2 MB, free: 13.23 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.001195/0.1075, allocations: 0.7755 MB / 336 MB, free: 12.4 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.1076, allocations: 11.89 kB / 336 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.252e-05/0.1077, allocations: 56.31 kB / 336.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005224/0.1082, allocations: 375.7 kB / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.1082, allocations: 33.31 kB / 336.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.743e-05/0.1083, allocations: 44.28 kB / 336.5 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008261/0.1091, allocations: 442.7 kB / 337 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.1092, allocations: 7.922 kB / 337 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.407e-05/0.1092, allocations: 16 kB / 337 MB, free: 11.37 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.1092, allocations: 16 kB / 337 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009082/0.1101, allocations: 371.6 kB / 337.4 MB, free: 10.99 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.1121, allocations: 1.567 MB / 338.9 MB, free: 9.332 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007392/0.1129, allocations: 306.7 kB / 339.2 MB, free: 9.023 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.1133, allocations: 176.7 kB / 339.4 MB, free: 8.848 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.1133, allocations: 7.938 kB / 339.4 MB, free: 8.84 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.1133, allocations: 34.56 kB / 339.4 MB, free: 8.797 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.764e-06/0.1133, allocations: 7.938 kB / 339.5 MB, free: 8.789 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002918/0.1163, allocations: 1.373 MB / 340.8 MB, free: 7.324 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.1163, allocations: 85.09 kB / 340.9 MB, free: 7.223 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004015/0.1167, allocations: 357.6 kB / 341.3 MB, free: 6.867 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.624e-05/0.1168, allocations: 37.64 kB / 341.3 MB, free: 6.824 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.1169, allocations: 247.9 kB / 341.5 MB, free: 6.578 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.5e-05/0.117, allocations: 114.3 kB / 341.6 MB, free: 6.465 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.1171, allocations: 82.03 kB / 341.7 MB, free: 6.379 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1173, allocations: 350.8 kB / 342.1 MB, free: 6.027 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/0.1177, allocations: 178.5 kB / 342.2 MB, free: 5.848 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004461/0.1182, allocations: 240.8 kB / 342.5 MB, free: 5.582 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007802/0.1189, allocations: 403.8 kB / 342.9 MB, free: 5.16 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.119, allocations: 0 / 342.9 MB, free: 5.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009985/0.12, allocations: 488.8 kB / 343.4 MB, free: 4.676 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.12, allocations: 8 kB / 343.4 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.12, allocations: 0 / 343.4 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.12, allocations: 8.219 kB / 343.4 MB, free: 4.66 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008086/0.1209, allocations: 207.7 kB / 343.6 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/0.1224, allocations: 1.576 MB / 345.1 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002958/0.1227, allocations: 35.97 kB / 345.2 MB, free: 2.707 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/0.1227, allocations: 12 kB / 345.2 MB, free: 2.695 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004611/0.1232, allocations: 276.9 kB / 345.5 MB, free: 2.422 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004018/0.1236, allocations: 244.8 kB / 345.7 MB, free: 2.152 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006821/0.1243, allocations: 375.6 kB / 346.1 MB, free: 1.758 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.553e-06/0.1243, allocations: 0 / 346.1 MB, free: 1.758 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008786/0.1252, allocations: 468.9 kB / 346.5 MB, free: 1.293 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.1252, allocations: 8 kB / 346.5 MB, free: 1.285 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-06/0.1252, allocations: 0 / 346.5 MB, free: 1.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.713e-06/0.1252, allocations: 4 kB / 346.5 MB, free: 1.281 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004565/0.1257, allocations: 123.8 kB / 346.7 MB, free: 1.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.1257, allocations: 12.09 kB / 346.7 MB, free: 1.148 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.126, allocations: 31.97 kB / 346.7 MB, free: 1.117 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.126, allocations: 15.94 kB / 346.7 MB, free: 1.102 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.0001404/0.1261, allocations: 200.2 kB / 346.9 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.292e-05/0.1262, allocations: 39.52 kB / 347 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.679e-05/0.1263, allocations: 48.25 kB / 347 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.1263, allocations: 15.94 kB / 347 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1263, allocations: 0 / 347 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1263, allocations: 7.875 kB / 347 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.1278, allocations: 0.9225 MB / 347.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1279, allocations: 0 / 347.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003909/0.1282, allocations: 83.88 kB / 348 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1283, allocations: 4 kB / 348 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.1283, allocations: 8 kB / 348 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1283, allocations: 8.125 kB / 348 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.1283, allocations: 0 / 348 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.1296, allocations: 0.6707 MB / 348.7 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.1297, allocations: 140.6 kB / 348.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.353e-05/0.1298, allocations: 12 kB / 348.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002703/0.13, allocations: 31.95 kB / 348.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.379e-05/0.1301, allocations: 23.97 kB / 348.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.1301, allocations: 8 kB / 348.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002307/0.1304, allocations: 251.2 kB / 349.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1304, allocations: 0 / 349.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005026/0.1309, allocations: 139.9 kB / 349.3 MB, free: 14.39 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.0001232/0.131, allocations: 115.7 kB / 349.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.1327, allocations: 0.6874 MB / 350.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1327, allocations: 0 / 350.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003942/0.1331, allocations: 183.7 kB / 350.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005948/0.1337, allocations: 97.28 kB / 350.4 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.1354, allocations: 1.01 MB / 351.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.1358, allocations: 0.8195 MB / 352.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002216/0.136, allocations: 67.2 kB / 352.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.85e-05/0.1361, allocations: 31.44 kB / 352.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1361, allocations: 0 / 352.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of Templates: time 0.008598/0.1447, allocations: 4.664 MB / 357 MB, free: 6.656 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 cvode -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