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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009855/0.0009856, allocations: 188.1 kB / 8.48 MB, free: 1.793 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.202/1.202, allocations: 205.2 MB / 214.1 MB, free: 5.086 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008984/0.0008984, allocations: 83.28 kB / 262.1 MB, free: 5.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.554e-06/7.574e-06, allocations: 4 kB / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07407/0.07409, allocations: 47.57 MB / 362.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2389/0.3131, allocations: 80.98 MB / 443.5 MB, free: 10.69 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001713/0.3133, allocations: 74.02 kB / 443.6 MB, free: 10.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01953/0.3328, allocations: 7.967 MB / 451.5 MB, free: 8.574 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.3329, allocations: 7.656 kB / 451.6 MB, free: 8.574 MB / 314.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.0009575/0.3339, allocations: 0.6914 MB / 452.2 MB, free: 8.035 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.3339, allocations: 7.719 kB / 452.3 MB, free: 8.035 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.826e-05/0.334, allocations: 54.11 kB / 452.3 MB, free: 8.008 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004488/0.3345, allocations: 362.2 kB / 452.7 MB, free: 7.719 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.3345, allocations: 15.34 kB / 452.7 MB, free: 7.715 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.932e-05/0.3345, allocations: 27.22 kB / 452.7 MB, free: 7.711 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003923/0.3349, allocations: 246.7 kB / 452.9 MB, free: 7.695 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000423/0.3354, allocations: 331.8 kB / 453.3 MB, free: 7.555 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.3354, allocations: 11.75 kB / 453.3 MB, free: 7.547 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.3354, allocations: 3.984 kB / 453.3 MB, free: 7.543 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.3354, allocations: 7.688 kB / 453.3 MB, free: 7.543 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.3371, allocations: 1.598 MB / 454.9 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003236/0.3374, allocations: 175.1 kB / 455.1 MB, free: 6.375 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.3376, allocations: 103.8 kB / 455.2 MB, free: 6.367 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.3376, allocations: 4.5 kB / 455.2 MB, free: 6.367 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.3376, allocations: 34.25 kB / 455.2 MB, free: 6.328 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.3376, allocations: 0 / 455.2 MB, free: 6.328 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001173/0.3388, allocations: 0.9324 MB / 456.1 MB, free: 5.734 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.27e-05/0.3389, allocations: 84.92 kB / 456.2 MB, free: 5.637 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.3391, allocations: 286 kB / 456.5 MB, free: 5.508 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.3391, allocations: 26.98 kB / 456.5 MB, free: 5.477 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.605e-05/0.3392, allocations: 205.8 kB / 456.7 MB, free: 5.312 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.501e-05/0.3393, allocations: 109.5 kB / 456.8 MB, free: 5.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.541e-05/0.3393, allocations: 4 kB / 456.8 MB, free: 5.227 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.712e-05/0.3394, allocations: 348.3 kB / 457.2 MB, free: 4.902 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.3395, allocations: 106.6 kB / 457.3 MB, free: 4.895 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.3397, allocations: 179.8 kB / 457.4 MB, free: 4.805 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.3399, allocations: 126.9 kB / 457.6 MB, free: 4.777 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.3399, allocations: 0 / 457.6 MB, free: 4.777 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004291/0.3403, allocations: 350.7 kB / 457.9 MB, free: 4.688 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.3404, allocations: 0.7836 MB / 458.7 MB, free: 3.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3404, allocations: 3.844 kB / 458.7 MB, free: 3.863 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.3404, allocations: 7.969 kB / 458.7 MB, free: 3.859 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009194/0.3414, allocations: 280.8 kB / 459 MB, free: 3.781 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004486/0.3418, allocations: 0.6878 MB / 459.7 MB, free: 3.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003296/0.3422, allocations: 53.55 kB / 459.7 MB, free: 3.145 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.3422, allocations: 18.81 kB / 459.7 MB, free: 3.141 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.059e-06/0.3422, allocations: 3.844 kB / 459.7 MB, free: 3.141 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003587/0.3426, allocations: 274.9 kB / 460 MB, free: 3.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.3426, allocations: 3.984 kB / 460 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.02e-06/0.3426, allocations: 11.44 kB / 460 MB, free: 3.094 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/0.3431, allocations: 134.9 kB / 460.2 MB, free: 3.062 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.3431, allocations: 5.297 kB / 460.2 MB, free: 3.059 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002838/0.3434, allocations: 46.22 kB / 460.2 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.3434, allocations: 18.89 kB / 460.2 MB, free: 3.035 MB / 314.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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.825e-05/0.3435, allocations: 107.4 kB / 460.3 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.21e-05/0.3436, allocations: 38.22 kB / 460.4 MB, free: 2.906 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.978e-05/0.3437, allocations: 41.98 kB / 460.4 MB, free: 2.895 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3437, allocations: 2.906 kB / 460.4 MB, free: 2.895 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.3437, allocations: 5.422 kB / 460.4 MB, free: 2.891 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.3437, allocations: 0 / 460.4 MB, free: 2.891 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008815/0.3446, allocations: 0.7492 MB / 461.2 MB, free: 2.461 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3446, allocations: 1.281 kB / 461.2 MB, free: 2.461 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00046/0.3451, allocations: 107 kB / 461.3 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.3451, allocations: 2.656 kB / 461.3 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.3451, allocations: 2.625 kB / 461.3 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.237e-06/0.3451, allocations: 6.625 kB / 461.3 MB, free: 2.43 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3451, allocations: 1.312 kB / 461.3 MB, free: 2.43 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005465/0.3457, allocations: 0.5468 MB / 461.8 MB, free: 2.145 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.3458, allocations: 137.2 kB / 462 MB, free: 2.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/0.3459, allocations: 10.44 kB / 462 MB, free: 2.012 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003279/0.3462, allocations: 42.19 kB / 462 MB, free: 2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.219e-05/0.3463, allocations: 29.67 kB / 462 MB, free: 1.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.3463, allocations: 14.11 kB / 462.1 MB, free: 1.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001777/0.3465, allocations: 218 kB / 462.3 MB, free: 1.887 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000509/0.347, allocations: 124.8 kB / 462.4 MB, free: 1.879 MB / 314.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001102/0.3471, allocations: 100.4 kB / 462.5 MB, free: 1.785 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.3484, allocations: 0.6284 MB / 463.1 MB, free: 1.688 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3484, allocations: 4 kB / 463.1 MB, free: 1.684 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.3486, allocations: 125.5 kB / 463.3 MB, free: 1.668 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004976/0.3491, allocations: 70.52 kB / 463.3 MB, free: 1.652 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.3506, allocations: 0.8069 MB / 464.1 MB, free: 1.164 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004323/0.3511, allocations: 0.8692 MB / 465 MB, free: 16.38 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3511, allocations: 0 / 465 MB, free: 16.38 MB / 330.7 MB Notification: Performance of Templates: time 0.01102/0.3621, allocations: 5.848 MB / 470.8 MB, free: 13.55 MB / 330.7 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches