Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001394, allocations: 200.8 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008434/0.0008433, allocations: 104.7 kB / 299.9 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002553/0.0002554, allocations: 4 kB / 360.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.267, allocations: 51.42 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00303/0.2701, allocations: 2.647 MB / 414.7 MB, free: 23.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.2721, allocations: 1.104 MB / 415.8 MB, free: 22.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005147/0.2727, allocations: 11.94 kB / 415.8 MB, free: 22.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003913/0.2731, allocations: 67.48 kB / 415.9 MB, free: 22.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003463/0.2735, allocations: 80.81 kB / 415.9 MB, free: 21.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006675/0.2742, allocations: 215.5 kB / 416.2 MB, free: 21.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005934/0.2748, allocations: 495 kB / 416.6 MB, free: 21.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002931/0.2751, allocations: 153.2 kB / 416.8 MB, free: 21.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002386/0.2753, allocations: 159.2 kB / 416.9 MB, free: 20.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.2756, allocations: 182.9 kB / 417.1 MB, free: 20.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.995e-05/0.2756, allocations: 16 kB / 417.1 MB, free: 20.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.078e-05/0.2757, allocations: 16 kB / 417.2 MB, free: 20.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.105e-05/0.2758, allocations: 67.69 kB / 417.2 MB, free: 20.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.276, allocations: 208.5 kB / 417.4 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003219/0.2763, allocations: 451.7 kB / 417.9 MB, free: 20.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.2763, allocations: 0 / 417.9 MB, free: 20.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2763, allocations: 0 / 417.9 MB, free: 20.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.298e-05/0.2764, allocations: 0 / 417.9 MB, free: 20.01 MB / 298.7 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.001162/0.2775, allocations: 0.7095 MB / 418.6 MB, free: 19.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.2776, allocations: 8.031 kB / 418.6 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.796e-05/0.2777, allocations: 48.38 kB / 418.6 MB, free: 19.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004454/0.2781, allocations: 355.7 kB / 419 MB, free: 18.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.519e-05/0.2782, allocations: 29.38 kB / 419 MB, free: 18.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.417e-05/0.2783, allocations: 40.38 kB / 419 MB, free: 18.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008115/0.2791, allocations: 474.7 kB / 419.5 MB, free: 18.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.2791, allocations: 0 / 419.5 MB, free: 18.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.525e-05/0.2792, allocations: 16 kB / 419.5 MB, free: 18.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.2792, allocations: 12 kB / 419.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008999/0.2801, allocations: 431.5 kB / 420 MB, free: 17.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.2819, allocations: 1.571 MB / 421.5 MB, free: 16.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007268/0.2827, allocations: 344 kB / 421.9 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003759/0.2831, allocations: 188.7 kB / 422.1 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.2831, allocations: 7.938 kB / 422.1 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/0.2831, allocations: 34.56 kB / 422.1 MB, free: 15.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.515e-06/0.2831, allocations: 4 kB / 422.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002846/0.286, allocations: 1.519 MB / 423.6 MB, free: 13.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.286, allocations: 77.11 kB / 423.7 MB, free: 13.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003031/0.2863, allocations: 349.7 kB / 424 MB, free: 13.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.2864, allocations: 29.7 kB / 424.1 MB, free: 13.47 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.2865, allocations: 252 kB / 424.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.392e-05/0.2866, allocations: 110.4 kB / 424.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.695e-05/0.2866, allocations: 11.94 kB / 424.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.774e-05/0.2867, allocations: 354.8 kB / 424.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003984/0.2871, allocations: 184.8 kB / 425 MB, free: 12.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004283/0.2875, allocations: 268.8 kB / 425.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007645/0.2883, allocations: 450.5 kB / 425.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2883, allocations: 0 / 425.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009914/0.2893, allocations: 0.5203 MB / 426.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.432e-05/0.2894, allocations: 148 kB / 426.3 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2894, allocations: 0 / 426.3 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.2894, allocations: 4 kB / 426.3 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008237/0.2903, allocations: 259.7 kB / 426.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.2916, allocations: 1.54 MB / 428.1 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003206/0.2919, allocations: 52.02 kB / 428.2 MB, free: 9.121 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.292, allocations: 12 kB / 428.2 MB, free: 9.109 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.845e-06/0.292, allocations: 4 kB / 428.2 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008194/0.2928, allocations: 459.2 kB / 428.6 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.2928, allocations: 0 / 428.6 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.764e-06/0.2928, allocations: 4 kB / 428.6 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000441/0.2933, allocations: 123.9 kB / 428.8 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.2933, allocations: 8.141 kB / 428.8 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000269/0.2936, allocations: 47.97 kB / 428.8 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.2936, allocations: 8 kB / 428.8 MB, free: 8.473 MB / 298.7 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.0001851/0.2938, allocations: 256.8 kB / 429.1 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.675e-05/0.2939, allocations: 43.44 kB / 429.1 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.583e-05/0.2939, allocations: 48.25 kB / 429.2 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2939, allocations: 4 kB / 429.2 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.294, allocations: 0 / 429.2 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.294, allocations: 0 / 429.2 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.2954, allocations: 0.9588 MB / 430.1 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.2954, allocations: 0 / 430.1 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003764/0.2958, allocations: 95.88 kB / 430.2 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.2958, allocations: 4 kB / 430.2 MB, free: 6.996 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.2958, allocations: 11.94 kB / 430.2 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.2958, allocations: 4 kB / 430.2 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.2958, allocations: 8.031 kB / 430.2 MB, free: 6.973 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.297, allocations: 0.7466 MB / 431 MB, free: 6.199 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.2971, allocations: 128.7 kB / 431.1 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.819e-05/0.2972, allocations: 11.94 kB / 431.1 MB, free: 6.043 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002765/0.2975, allocations: 51.95 kB / 431.2 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.43e-05/0.2976, allocations: 23.91 kB / 431.2 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.796e-05/0.2976, allocations: 15.94 kB / 431.2 MB, free: 5.953 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002173/0.2978, allocations: 251.1 kB / 431.5 MB, free: 5.707 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2978, allocations: 0 / 431.5 MB, free: 5.707 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004694/0.2983, allocations: 140 kB / 431.6 MB, free: 5.57 MB / 298.7 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.0001113/0.2984, allocations: 103.2 kB / 431.7 MB, free: 5.457 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.3001, allocations: 0.7918 MB / 432.5 MB, free: 4.668 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3001, allocations: 0 / 432.5 MB, free: 4.668 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004331/0.3006, allocations: 208.1 kB / 432.7 MB, free: 4.465 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006364/0.3012, allocations: 94.22 kB / 432.8 MB, free: 4.375 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.3029, allocations: 1.242 MB / 434 MB, free: 3.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.3032, allocations: 0.8237 MB / 434.9 MB, free: 2.242 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002721/0.3034, allocations: 59.23 kB / 434.9 MB, free: 2.188 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.749e-05/0.3035, allocations: 31.44 kB / 434.9 MB, free: 2.156 MB / 298.7 MB Notification: Performance of SimCode: time 7.52e-07/0.3035, allocations: 7.875 kB / 434.9 MB, free: 2.148 MB / 298.7 MB Notification: Performance of Templates: time 0.009032/0.3126, allocations: 4.268 MB / 439.2 MB, free: 13.91 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches