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.001056/0.001056, allocations: 112.8 kB / 17.68 MB, free: 5.355 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.001061/0.001061, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.319/1.319, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.001101, allocations: 57.69 kB / 302 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08497/0.08608, allocations: 49.44 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004152/0.09026, allocations: 3.112 MB / 354.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.09205, allocations: 0.9622 MB / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003211/0.09239, allocations: 11.94 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003447/0.09274, allocations: 83.19 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003177/0.0931, allocations: 107.1 kB / 355.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005707/0.09368, allocations: 239.5 kB / 356 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005836/0.09427, allocations: 0.5107 MB / 356.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002853/0.09457, allocations: 173.2 kB / 356.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.09481, allocations: 195.2 kB / 356.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002542/0.09507, allocations: 203 kB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.714e-05/0.09515, allocations: 40 kB / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.575e-05/0.09522, allocations: 40 kB / 357.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.09533, allocations: 111.6 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.09551, allocations: 210.8 kB / 357.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.09595, allocations: 498.2 kB / 357.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09596, allocations: 0 / 357.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09597, allocations: 4 kB / 357.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.09599, allocations: 0 / 357.9 MB, free: 13.21 MB / 302.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.001215/0.09721, allocations: 0.7754 MB / 358.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.09725, allocations: 11.89 kB / 358.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.69e-05/0.09736, allocations: 56.31 kB / 358.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005103/0.09787, allocations: 367.6 kB / 359.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.09791, allocations: 33.38 kB / 359.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.516e-05/0.098, allocations: 40.12 kB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008073/0.09881, allocations: 450.3 kB / 359.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.09884, allocations: 7.906 kB / 359.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.165e-05/0.09888, allocations: 16 kB / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.09889, allocations: 11.98 kB / 359.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008836/0.09978, allocations: 375.6 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001891/0.1017, allocations: 1.555 MB / 361.6 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007517/0.1024, allocations: 323.1 kB / 361.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00039/0.1028, allocations: 164.8 kB / 362.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.1029, allocations: 4.156 kB / 362.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.1029, allocations: 34.56 kB / 362.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.503e-06/0.1029, allocations: 0 / 362.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002876/0.1058, allocations: 1.381 MB / 363.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.1059, allocations: 89.05 kB / 363.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005256/0.1064, allocations: 353.6 kB / 363.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.1065, allocations: 33.7 kB / 364 MB, free: 6.828 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.1067, allocations: 239.9 kB / 364.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.1068, allocations: 118.3 kB / 364.3 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.107, allocations: 78.03 kB / 364.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.1072, allocations: 354.7 kB / 364.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006885/0.1079, allocations: 182.4 kB / 364.9 MB, free: 5.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008056/0.1087, allocations: 248.8 kB / 365.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.1101, allocations: 384 kB / 365.5 MB, free: 5.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1102, allocations: 4 kB / 365.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001783/0.112, allocations: 492.8 kB / 366 MB, free: 4.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.112, allocations: 8 kB / 366 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.112, allocations: 0 / 366 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.112, allocations: 4 kB / 366 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.1134, allocations: 219.8 kB / 366.2 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.1157, allocations: 1.564 MB / 367.8 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004692/0.1162, allocations: 43.89 kB / 367.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/0.1163, allocations: 16 kB / 367.9 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007273/0.117, allocations: 276.9 kB / 368.1 MB, free: 2.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006276/0.1177, allocations: 240.8 kB / 368.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001107/0.1188, allocations: 359.7 kB / 368.7 MB, free: 1.777 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.719e-06/0.1188, allocations: 4 kB / 368.7 MB, free: 1.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001391/0.1202, allocations: 468.8 kB / 369.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.1202, allocations: 8 kB / 369.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1202, allocations: 0 / 369.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.1203, allocations: 12.16 kB / 369.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006839/0.121, allocations: 123.7 kB / 369.3 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.121, allocations: 7.984 kB / 369.3 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/0.1214, allocations: 35.97 kB / 369.4 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/0.1215, allocations: 11.98 kB / 369.4 MB, free: 1.113 MB / 302.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.0001656/0.1216, allocations: 212.1 kB / 369.6 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.1218, allocations: 47.38 kB / 369.6 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.1219, allocations: 48.23 kB / 369.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.1219, allocations: 4 kB / 369.7 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.1219, allocations: 0 / 369.7 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1219, allocations: 0 / 369.7 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1537/0.2756, allocations: 0.9081 MB / 370.6 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.2757, allocations: 1.156 kB / 370.6 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004301/0.2761, allocations: 87.81 kB / 370.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.2761, allocations: 2.781 kB / 370.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.2761, allocations: 7 kB / 370.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.2762, allocations: 4.156 kB / 370.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.2762, allocations: 1.094 kB / 370.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.2775, allocations: 0.6695 MB / 371.4 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/0.2776, allocations: 135.7 kB / 371.5 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.734e-05/0.2777, allocations: 10.56 kB / 371.5 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002841/0.2779, allocations: 32.94 kB / 371.5 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.779e-05/0.278, allocations: 34 kB / 371.6 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.2781, allocations: 7.094 kB / 371.6 MB, free: 25.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000244/0.2783, allocations: 248.6 kB / 371.8 MB, free: 25.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2783, allocations: 0 / 371.8 MB, free: 25.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005338/0.2789, allocations: 136.4 kB / 372 MB, free: 25.12 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 8.545e-05/0.279, allocations: 103.4 kB / 372.1 MB, free: 25.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001669/0.2806, allocations: 0.7032 MB / 372.8 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.2806, allocations: 0 / 372.8 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004457/0.2811, allocations: 184.2 kB / 372.9 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005754/0.2817, allocations: 101.6 kB / 373 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001464/0.2832, allocations: 1.007 MB / 374 MB, free: 24.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/0.2834, allocations: 0.8185 MB / 374.9 MB, free: 23.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002107/0.2836, allocations: 63.16 kB / 374.9 MB, free: 23.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.11e-05/0.2837, allocations: 34.94 kB / 375 MB, free: 23.83 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2837, allocations: 4 kB / 375 MB, free: 23.83 MB / 302.1 MB Notification: Performance of Templates: time 0.008938/0.2927, allocations: 4.667 MB / 379.6 MB, free: 23.54 MB / 302.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 -s gbode -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