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.001682/0.001682, allocations: 114.9 kB / 17.74 MB, free: 5.34 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.001738/0.001738, allocations: 188.5 kB / 18.67 MB, free: 4.414 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.383/1.383, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009715/0.0009715, allocations: 51.91 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2523, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004073/0.2564, allocations: 3.114 MB / 404.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.2582, allocations: 0.9582 MB / 405.5 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000232/0.2584, allocations: 19.88 kB / 405.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003442/0.2588, allocations: 83.23 kB / 405.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002338/0.2591, allocations: 103.1 kB / 405.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005276/0.2596, allocations: 238.4 kB / 405.9 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004748/0.2601, allocations: 0.5107 MB / 406.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000283/0.2604, allocations: 169.2 kB / 406.6 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002197/0.2606, allocations: 203.1 kB / 406.8 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.2608, allocations: 210.9 kB / 407 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.826e-05/0.2609, allocations: 44 kB / 407 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.657e-05/0.261, allocations: 40 kB / 407.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.2611, allocations: 99.67 kB / 407.2 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.2613, allocations: 218.8 kB / 407.4 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004635/0.2617, allocations: 0.4953 MB / 407.9 MB, free: 2.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2617, allocations: 3.938 kB / 407.9 MB, free: 2.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2617, allocations: 0 / 407.9 MB, free: 2.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.2618, allocations: 0 / 407.9 MB, free: 2.359 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.001171/0.2629, allocations: 0.7626 MB / 408.6 MB, free: 1.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.263, allocations: 11.89 kB / 408.6 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.939e-05/0.2631, allocations: 60.16 kB / 408.7 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004754/0.2636, allocations: 367.8 kB / 409.1 MB, free: 1.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/0.2636, allocations: 29.38 kB / 409.1 MB, free: 1.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.352e-05/0.2637, allocations: 43.84 kB / 409.1 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008204/0.2645, allocations: 454.3 kB / 409.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.2645, allocations: 0 / 409.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.2646, allocations: 12 kB / 409.6 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.2646, allocations: 12 kB / 409.6 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008935/0.2655, allocations: 379.6 kB / 410 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.2674, allocations: 1.563 MB / 411.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007482/0.2682, allocations: 318.6 kB / 411.8 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003916/0.2686, allocations: 164.8 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/0.2686, allocations: 0.5 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.2687, allocations: 38.56 kB / 412 MB, free: 13.94 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.654e-06/0.2687, allocations: 3.938 kB / 412 MB, free: 13.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002941/0.2716, allocations: 1.38 MB / 413.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.2717, allocations: 81.11 kB / 413.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/0.272, allocations: 357.5 kB / 413.9 MB, free: 12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.2721, allocations: 29.7 kB / 413.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.2722, allocations: 248 kB / 414.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.948e-05/0.2723, allocations: 114.3 kB / 414.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.2724, allocations: 74.14 kB / 414.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2726, allocations: 358.7 kB / 414.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004108/0.273, allocations: 170.5 kB / 414.8 MB, free: 11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004667/0.2735, allocations: 248.8 kB / 415.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007892/0.2743, allocations: 388 kB / 415.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2743, allocations: 0 / 415.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009941/0.2753, allocations: 0.4928 MB / 415.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.2753, allocations: 7.938 kB / 416 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2753, allocations: 4 kB / 416 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.2753, allocations: 4 kB / 416 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008191/0.2762, allocations: 207.9 kB / 416.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/0.2777, allocations: 1.572 MB / 417.7 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.2781, allocations: 40.06 kB / 417.8 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.2781, allocations: 12 kB / 417.8 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004718/0.2786, allocations: 276.8 kB / 418.1 MB, free: 7.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000401/0.279, allocations: 240.8 kB / 418.3 MB, free: 7.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006997/0.2797, allocations: 367.8 kB / 418.7 MB, free: 6.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.945e-06/0.2797, allocations: 0 / 418.7 MB, free: 6.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008768/0.2806, allocations: 477 kB / 419.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.2806, allocations: 8 kB / 419.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2806, allocations: 3.938 kB / 419.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.759e-06/0.2806, allocations: 4 kB / 419.1 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004588/0.2811, allocations: 123.8 kB / 419.3 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2811, allocations: 4 kB / 419.3 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002976/0.2814, allocations: 27.97 kB / 419.3 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.2814, allocations: 20.03 kB / 419.3 MB, free: 6.258 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.0001399/0.2816, allocations: 204.1 kB / 419.5 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.443e-05/0.2817, allocations: 43.45 kB / 419.5 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.005e-05/0.2817, allocations: 48.25 kB / 419.6 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2818, allocations: 4 kB / 419.6 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2818, allocations: 4 kB / 419.6 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.2818, allocations: 0 / 419.6 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.2832, allocations: 0.9239 MB / 420.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2833, allocations: 0 / 420.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.2837, allocations: 87.88 kB / 420.6 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.2837, allocations: 0 / 420.6 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.2837, allocations: 8 kB / 420.6 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2837, allocations: 4 kB / 420.6 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.2837, allocations: 0 / 420.6 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.285, allocations: 0.6676 MB / 421.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.2851, allocations: 136.7 kB / 421.4 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.773e-05/0.2852, allocations: 8 kB / 421.4 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002928/0.2855, allocations: 35.95 kB / 421.5 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.636e-05/0.2855, allocations: 27.91 kB / 421.5 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.2856, allocations: 8 kB / 421.5 MB, free: 3.938 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002441/0.2858, allocations: 247.2 kB / 421.7 MB, free: 3.695 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2858, allocations: 3.938 kB / 421.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005482/0.2864, allocations: 136 kB / 421.9 MB, free: 3.559 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.0001181/0.2865, allocations: 111.2 kB / 422 MB, free: 3.438 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001723/0.2882, allocations: 0.6996 MB / 422.7 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.2882, allocations: 4.062 kB / 422.7 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004123/0.2887, allocations: 179.7 kB / 422.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006582/0.2893, allocations: 111.2 kB / 423 MB, free: 2.457 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.2911, allocations: 1.035 MB / 424 MB, free: 1.375 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.2914, allocations: 0.8156 MB / 424.8 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.2915, allocations: 39.44 kB / 424.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of SimCode: time 1.653e-06/0.2916, allocations: 0 / 424.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of Templates: time 0.008312/0.2999, allocations: 6.047 MB / 430.9 MB, free: 10.46 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/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