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.001338/0.001338, allocations: 109.3 kB / 17.73 MB, free: 5.309 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.001481/0.001481, allocations: 188.2 kB / 18.66 MB, free: 4.383 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.649/1.649, allocations: 205.1 MB / 224.5 MB, free: 12.26 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.001371/0.001371, allocations: 51.94 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1075, allocations: 46.61 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004939/0.1125, allocations: 3.121 MB / 378.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00225/0.1147, allocations: 1.006 MB / 379.3 MB, free: 440 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006258/0.1154, allocations: 23.88 kB / 379.3 MB, free: 416 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00044/0.1159, allocations: 87.16 kB / 379.4 MB, free: 328 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003859/0.1163, allocations: 103.1 kB / 379.5 MB, free: 224 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2316/0.3479, allocations: 227.3 kB / 379.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.3491, allocations: 0.5212 MB / 380.2 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003748/0.3495, allocations: 173.9 kB / 380.4 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.3498, allocations: 198.4 kB / 380.6 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.3501, allocations: 215 kB / 380.8 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.124e-05/0.3502, allocations: 41.03 kB / 380.8 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.386e-05/0.3503, allocations: 41.53 kB / 380.9 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.3504, allocations: 103.5 kB / 381 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001898/0.3506, allocations: 217 kB / 381.2 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006246/0.3512, allocations: 0.4931 MB / 381.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3512, allocations: 0.75 kB / 381.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3512, allocations: 1.5 kB / 381.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.3512, allocations: 0 / 381.7 MB, free: 9.516 MB / 318.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.001389/0.3526, allocations: 0.7666 MB / 382.4 MB, free: 9.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.3527, allocations: 14.41 kB / 382.5 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.3528, allocations: 53.72 kB / 382.5 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006571/0.3535, allocations: 377.4 kB / 382.9 MB, free: 8.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.022e-05/0.3535, allocations: 29.66 kB / 382.9 MB, free: 8.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.256e-05/0.3536, allocations: 37.38 kB / 382.9 MB, free: 8.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000891/0.3545, allocations: 451.7 kB / 383.4 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.3546, allocations: 13.91 kB / 383.4 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.528e-05/0.3546, allocations: 15.66 kB / 383.4 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.3546, allocations: 9.031 kB / 383.4 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009518/0.3556, allocations: 377.8 kB / 383.8 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.3574, allocations: 1.561 MB / 385.3 MB, free: 7.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007841/0.3582, allocations: 308.6 kB / 385.7 MB, free: 7.652 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004279/0.3587, allocations: 165.4 kB / 385.8 MB, free: 7.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.3587, allocations: 3.406 kB / 385.8 MB, free: 7.598 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/0.3587, allocations: 41.44 kB / 385.9 MB, free: 7.551 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.502e-06/0.3587, allocations: 0 / 385.9 MB, free: 7.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003048/0.3618, allocations: 1.387 MB / 387.2 MB, free: 6.758 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.3618, allocations: 80.89 kB / 387.3 MB, free: 6.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003506/0.3622, allocations: 365.8 kB / 387.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.3622, allocations: 31.5 kB / 387.7 MB, free: 6.438 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.3624, allocations: 245.2 kB / 387.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.683e-05/0.3624, allocations: 116.7 kB / 388.1 MB, free: 6.148 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.3626, allocations: 76.02 kB / 388.1 MB, free: 6.102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.143e-05/0.3627, allocations: 353.8 kB / 388.5 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004803/0.3632, allocations: 172.7 kB / 388.7 MB, free: 5.715 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005111/0.3637, allocations: 251.2 kB / 388.9 MB, free: 5.578 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009158/0.3646, allocations: 395.9 kB / 389.3 MB, free: 5.391 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3646, allocations: 5.219 kB / 389.3 MB, free: 5.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001152/0.3658, allocations: 490.1 kB / 389.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3658, allocations: 6 kB / 389.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.3658, allocations: 3.781 kB / 389.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.3658, allocations: 7.312 kB / 389.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009515/0.3668, allocations: 211.4 kB / 390 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.3683, allocations: 1.576 MB / 391.6 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003296/0.3686, allocations: 41.44 kB / 391.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.83e-05/0.3687, allocations: 16.08 kB / 391.6 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005354/0.3692, allocations: 272 kB / 391.9 MB, free: 3.574 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004343/0.3696, allocations: 249 kB / 392.1 MB, free: 3.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007894/0.3704, allocations: 369.8 kB / 392.5 MB, free: 3.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.733e-06/0.3705, allocations: 0 / 392.5 MB, free: 3.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001146/0.3716, allocations: 468.4 kB / 393 MB, free: 3.086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.3716, allocations: 5.219 kB / 393 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3716, allocations: 5.984 kB / 393 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.3717, allocations: 4.75 kB / 393 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005197/0.3722, allocations: 119.2 kB / 393.1 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.3722, allocations: 8.219 kB / 393.1 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003036/0.3725, allocations: 40.39 kB / 393.1 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/0.3726, allocations: 10.88 kB / 393.1 MB, free: 3.066 MB / 318.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.0001752/0.3727, allocations: 209.7 kB / 393.3 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.3728, allocations: 39.09 kB / 393.4 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.373, allocations: 47.09 kB / 393.4 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.373, allocations: 7.469 kB / 393.4 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.373, allocations: 2.156 kB / 393.4 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.373, allocations: 0 / 393.4 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/0.3751, allocations: 0.9232 MB / 394.4 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.3752, allocations: 1.375 kB / 394.4 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004565/0.3756, allocations: 83.27 kB / 394.4 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.3756, allocations: 1.438 kB / 394.4 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.218e-05/0.3757, allocations: 15.58 kB / 394.5 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.3757, allocations: 5.594 kB / 394.5 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.3757, allocations: 2.812 kB / 394.5 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.3774, allocations: 0.6671 MB / 395.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.3776, allocations: 136.3 kB / 395.3 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.052e-05/0.3777, allocations: 8.188 kB / 395.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003146/0.378, allocations: 36.7 kB / 395.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3781, allocations: 23.14 kB / 395.3 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.3781, allocations: 7 kB / 395.3 MB, free: 1.781 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003204/0.3784, allocations: 252.7 kB / 395.6 MB, free: 1.648 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3784, allocations: 0 / 395.6 MB, free: 1.648 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006191/0.3791, allocations: 134.9 kB / 395.7 MB, free: 1.633 MB / 318.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.0001425/0.3792, allocations: 111 kB / 395.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002097/0.3813, allocations: 0.692 MB / 396.5 MB, free: 1.379 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3813, allocations: 5.156 kB / 396.5 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004875/0.3818, allocations: 183.8 kB / 396.7 MB, free: 1.332 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006757/0.3825, allocations: 103.1 kB / 396.8 MB, free: 1.297 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.3844, allocations: 1.005 MB / 397.8 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004939/0.3849, allocations: 0.8173 MB / 398.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003404/0.3853, allocations: 66.67 kB / 398.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.3854, allocations: 29.44 kB / 398.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3854, allocations: 1.375 kB / 398.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of Templates: time 0.01278/0.3982, allocations: 4.742 MB / 403.5 MB, free: 14.53 MB / 334.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/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