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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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") [: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 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 184 kB / 8.138 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.142/1.142, allocations: 221.4 MB / 229.9 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009223/0.0009223, allocations: 95.77 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.526e-06/8.656e-06, allocations: 4 kB / 336.5 MB, free: 9.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1969/0.1969, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08564/0.2826, allocations: 81.75 MB / 468.6 MB, free: 5.078 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.2828, allocations: 68.88 kB / 468.7 MB, free: 5.012 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02273/0.3056, allocations: 7.962 MB / 476.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.304e-05/0.3057, allocations: 11.94 kB / 476.7 MB, free: 13.06 MB / 362.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.001083/0.3067, allocations: 0.6815 MB / 477.4 MB, free: 12.33 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.3068, allocations: 8.875 kB / 477.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.51e-05/0.3069, allocations: 51.34 kB / 477.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004806/0.3074, allocations: 355.4 kB / 477.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.3074, allocations: 12 kB / 477.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.985e-05/0.3075, allocations: 35.84 kB / 477.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004574/0.3079, allocations: 245.5 kB / 478.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005368/0.3085, allocations: 329.7 kB / 478.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.3085, allocations: 8 kB / 478.4 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.3086, allocations: 0 / 478.4 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.3086, allocations: 14.34 kB / 478.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002033/0.3106, allocations: 1.582 MB / 480 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003547/0.311, allocations: 173.9 kB / 480.2 MB, free: 9.371 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.3112, allocations: 108.9 kB / 480.3 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.3112, allocations: 4 kB / 480.3 MB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.3112, allocations: 38.56 kB / 480.3 MB, free: 9.211 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 1.903e-06/0.3113, allocations: 0 / 480.3 MB, free: 9.211 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001427/0.3127, allocations: 0.9355 MB / 481.2 MB, free: 8.176 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.3127, allocations: 77.11 kB / 481.3 MB, free: 8.082 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.313, allocations: 293.9 kB / 481.6 MB, free: 7.793 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.3131, allocations: 25.7 kB / 481.6 MB, free: 7.762 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.312e-05/0.3132, allocations: 196.1 kB / 481.8 MB, free: 7.566 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.745e-05/0.3133, allocations: 106.4 kB / 481.9 MB, free: 7.461 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.609e-05/0.3133, allocations: 4 kB / 481.9 MB, free: 7.457 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.3134, allocations: 350.7 kB / 482.3 MB, free: 7.105 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.3136, allocations: 108.9 kB / 482.4 MB, free: 6.996 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.3138, allocations: 184 kB / 482.6 MB, free: 6.789 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.314, allocations: 116.5 kB / 482.7 MB, free: 6.676 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.314, allocations: 4 kB / 482.7 MB, free: 6.672 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005555/0.3146, allocations: 354.7 kB / 483 MB, free: 6.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002433/0.3148, allocations: 0.7861 MB / 483.8 MB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.3149, allocations: 4.656 kB / 483.8 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.3149, allocations: 7.984 kB / 483.8 MB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/0.3159, allocations: 279.6 kB / 484.1 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005782/0.3165, allocations: 0.6875 MB / 484.8 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003675/0.3169, allocations: 52.05 kB / 484.8 MB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.3169, allocations: 12 kB / 484.8 MB, free: 4.414 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.928e-06/0.317, allocations: 4 kB / 484.8 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004551/0.3174, allocations: 276.5 kB / 485.1 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.3174, allocations: 7.938 kB / 485.1 MB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.094e-06/0.3174, allocations: 7.906 kB / 485.1 MB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005523/0.318, allocations: 136.1 kB / 485.3 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-06/0.318, allocations: 4 kB / 485.3 MB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.3183, allocations: 43.97 kB / 485.3 MB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.3184, allocations: 15.98 kB / 485.3 MB, free: 3.93 MB / 362.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 0.000109/0.3185, allocations: 117.8 kB / 485.4 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-05/0.3186, allocations: 35.53 kB / 485.5 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.746e-05/0.3187, allocations: 44.09 kB / 485.5 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.3187, allocations: 0 / 485.5 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3187, allocations: 4 kB / 485.5 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3187, allocations: 0 / 485.5 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.3198, allocations: 0.749 MB / 486.3 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3198, allocations: 0 / 486.3 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000487/0.3203, allocations: 100 kB / 486.4 MB, free: 2.828 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.3203, allocations: 7.938 kB / 486.4 MB, free: 2.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.3203, allocations: 15.98 kB / 486.4 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.3203, allocations: 0 / 486.4 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3203, allocations: 4 kB / 486.4 MB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006466/0.321, allocations: 0.5395 MB / 486.9 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.3211, allocations: 132.6 kB / 487.1 MB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.786e-05/0.3212, allocations: 7.906 kB / 487.1 MB, free: 2.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003411/0.3216, allocations: 51.95 kB / 487.1 MB, free: 2.004 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.781e-05/0.3216, allocations: 19.97 kB / 487.1 MB, free: 1.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.3217, allocations: 12 kB / 487.2 MB, free: 1.973 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002122/0.3219, allocations: 220.5 kB / 487.4 MB, free: 1.758 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005363/0.3224, allocations: 119.9 kB / 487.5 MB, free: 1.641 MB / 362.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.0001328/0.3226, allocations: 103.2 kB / 487.6 MB, free: 1.531 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.3239, allocations: 0.6335 MB / 488.2 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3239, allocations: 0 / 488.2 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002012/0.3242, allocations: 128.1 kB / 488.3 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005437/0.3247, allocations: 77.73 kB / 488.4 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.3265, allocations: 0.8036 MB / 489.2 MB, free: 15.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005117/0.327, allocations: 0.8615 MB / 490.1 MB, free: 14.97 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.327, allocations: 0 / 490.1 MB, free: 14.97 MB / 378.7 MB Notification: Performance of Templates: time 0.01048/0.3375, allocations: 5.819 MB / 495.9 MB, free: 9.207 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches