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) 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 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001825/0.001825, allocations: 106.6 kB / 17.06 MB, free: 5.832 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.001965/0.001965, allocations: 195.9 kB / 18.01 MB, free: 4.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 43.94 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3676/0.3687, allocations: 49.43 MB / 400.7 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004434/0.3732, allocations: 3.128 MB / 403.8 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001785/0.375, allocations: 0.9544 MB / 404.8 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00024/0.3753, allocations: 15.88 kB / 404.8 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003812/0.3757, allocations: 91.16 kB / 404.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002251/0.3759, allocations: 103.1 kB / 405 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005102/0.3764, allocations: 231.6 kB / 405.2 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006222/0.3771, allocations: 0.5107 MB / 405.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003305/0.3774, allocations: 169.2 kB / 405.9 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.3776, allocations: 199.2 kB / 406.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.3779, allocations: 203 kB / 406.3 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.483e-05/0.378, allocations: 40 kB / 406.3 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.348e-05/0.3781, allocations: 40 kB / 406.4 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.3782, allocations: 111.5 kB / 406.5 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.3784, allocations: 210.8 kB / 406.7 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000499/0.3789, allocations: 0.4939 MB / 407.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3789, allocations: 0 / 407.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.3789, allocations: 4 kB / 407.2 MB, free: 2.543 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.3789, allocations: 3.938 kB / 407.2 MB, free: 2.539 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.001259/0.3802, allocations: 0.778 MB / 408 MB, free: 1.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.3802, allocations: 19.89 kB / 408 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.3803, allocations: 56.59 kB / 408 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006161/0.381, allocations: 368 kB / 408.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.381, allocations: 25.38 kB / 408.4 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.195e-05/0.3811, allocations: 59.83 kB / 408.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008949/0.382, allocations: 438.4 kB / 408.9 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.3821, allocations: 11.92 kB / 408.9 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.93e-05/0.3821, allocations: 16 kB / 408.9 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.3821, allocations: 8 kB / 408.9 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009316/0.3831, allocations: 379.6 kB / 409.3 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.385, allocations: 1.556 MB / 410.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007961/0.3858, allocations: 322.6 kB / 411.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/0.3863, allocations: 168.6 kB / 411.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.3863, allocations: 4.5 kB / 411.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.3863, allocations: 42.56 kB / 411.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.313e-06/0.3863, allocations: 0 / 411.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003102/0.3894, allocations: 1.373 MB / 412.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.3895, allocations: 81.11 kB / 412.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003714/0.3899, allocations: 361.7 kB / 413.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/0.3899, allocations: 33.7 kB / 413.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.3901, allocations: 248.2 kB / 413.5 MB, free: 11.87 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.077e-05/0.3902, allocations: 127 kB / 413.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.3903, allocations: 78.12 kB / 413.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3905, allocations: 350.7 kB / 414 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004528/0.391, allocations: 174.5 kB / 414.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004989/0.3915, allocations: 252.8 kB / 414.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009488/0.3924, allocations: 387.9 kB / 414.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3924, allocations: 0 / 414.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001079/0.3935, allocations: 0.4933 MB / 415.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.3936, allocations: 8.031 kB / 415.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.3936, allocations: 4 kB / 415.3 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.3936, allocations: 7.938 kB / 415.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009052/0.3945, allocations: 211.7 kB / 415.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/0.3963, allocations: 1.56 MB / 417.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.3966, allocations: 39.98 kB / 417.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/0.3966, allocations: 16 kB / 417.1 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005567/0.3972, allocations: 277 kB / 417.4 MB, free: 7.703 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004388/0.3977, allocations: 232.8 kB / 417.6 MB, free: 7.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008314/0.3985, allocations: 367.8 kB / 418 MB, free: 7.062 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.784e-06/0.3985, allocations: 0 / 418 MB, free: 7.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009768/0.3995, allocations: 481 kB / 418.5 MB, free: 6.586 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.458e-06/0.3995, allocations: 7.938 kB / 418.5 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3995, allocations: 7.938 kB / 418.5 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.959e-06/0.3995, allocations: 4 kB / 418.5 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004863/0.4, allocations: 128 kB / 418.6 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.4, allocations: 4 kB / 418.6 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.4003, allocations: 35.95 kB / 418.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.174e-05/0.4004, allocations: 16 kB / 418.7 MB, free: 6.387 MB / 334.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.0001434/0.4005, allocations: 196.1 kB / 418.9 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.179e-05/0.4006, allocations: 51.7 kB / 418.9 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.333e-05/0.4007, allocations: 40.25 kB / 419 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.4007, allocations: 4 kB / 419 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.4007, allocations: 0 / 419 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.4007, allocations: 3.984 kB / 419 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001848/0.4026, allocations: 0.9239 MB / 419.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4026, allocations: 4 kB / 419.9 MB, free: 5.094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004154/0.403, allocations: 83.86 kB / 420 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.4031, allocations: 8.125 kB / 420 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.4031, allocations: 12 kB / 420 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.4031, allocations: 0 / 420 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.4031, allocations: 4 kB / 420 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.4045, allocations: 0.6677 MB / 420.7 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.4047, allocations: 132.9 kB / 420.8 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.36e-05/0.4047, allocations: 15.98 kB / 420.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002881/0.405, allocations: 31.97 kB / 420.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.4051, allocations: 23.91 kB / 420.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.4052, allocations: 11.98 kB / 420.9 MB, free: 4.062 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003658/0.4055, allocations: 251.2 kB / 421.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4055, allocations: 0 / 421.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000585/0.4061, allocations: 136 kB / 421.3 MB, free: 3.684 MB / 334.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.0001868/0.4063, allocations: 111.1 kB / 421.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002021/0.4083, allocations: 0.6993 MB / 422.1 MB, free: 2.863 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.4084, allocations: 4 kB / 422.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004632/0.4088, allocations: 180.5 kB / 422.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006487/0.4095, allocations: 116.4 kB / 422.4 MB, free: 2.578 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002/0.4115, allocations: 1.013 MB / 423.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005046/0.412, allocations: 0.8117 MB / 424.2 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002553/0.4123, allocations: 59.23 kB / 424.2 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.4124, allocations: 31.44 kB / 424.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4124, allocations: 4 kB / 424.3 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of Templates: time 0.009333/0.4218, allocations: 4.719 MB / 429 MB, free: 11.91 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches