Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002648/0.002648, allocations: 180.6 kB / 8.151 MB, free: 2.188 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.739/1.739, allocations: 205.2 MB / 213.8 MB, free: 13.88 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001304/0.001304, allocations: 81.84 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.015e-05/1.03e-05, allocations: 0 / 314.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2673, allocations: 47.56 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1268/0.3942, allocations: 80.99 MB / 442.8 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.3945, allocations: 68.47 kB / 442.9 MB, free: 5.008 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.03698/0.4315, allocations: 7.969 MB / 450.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.679e-05/0.4316, allocations: 12 kB / 450.9 MB, free: 13.07 MB / 346.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.001848/0.4335, allocations: 0.6932 MB / 451.6 MB, free: 12.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.4335, allocations: 8.031 kB / 451.6 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.4337, allocations: 51.44 kB / 451.6 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008125/0.4345, allocations: 359.3 kB / 452 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.239e-05/0.4346, allocations: 12 kB / 452 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.35e-05/0.4347, allocations: 24 kB / 452 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008444/0.4356, allocations: 249.5 kB / 452.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008668/0.4364, allocations: 334.2 kB / 452.6 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.153e-05/0.4365, allocations: 3.906 kB / 452.6 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.795e-05/0.4366, allocations: 0 / 452.6 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/0.4366, allocations: 12 kB / 452.6 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00351/0.4401, allocations: 1.601 MB / 454.2 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006269/0.4408, allocations: 170 kB / 454.4 MB, free: 9.352 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.4411, allocations: 109.4 kB / 454.5 MB, free: 9.242 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.4412, allocations: 8 kB / 454.5 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.4412, allocations: 35.97 kB / 454.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 5.991e-06/0.4412, allocations: 0 / 454.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.002412/0.4436, allocations: 0.937 MB / 455.4 MB, free: 8.156 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.4437, allocations: 81.11 kB / 455.5 MB, free: 8.059 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005171/0.4443, allocations: 286 kB / 455.8 MB, free: 7.773 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.096e-05/0.4443, allocations: 25.7 kB / 455.8 MB, free: 7.742 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.4445, allocations: 246.5 kB / 456.1 MB, free: 7.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.4446, allocations: 114.3 kB / 456.2 MB, free: 7.387 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.4447, allocations: 0 / 456.2 MB, free: 7.387 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4448, allocations: 326.8 kB / 456.5 MB, free: 7.059 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003273/0.4451, allocations: 104.9 kB / 456.6 MB, free: 6.953 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000403/0.4456, allocations: 184.1 kB / 456.8 MB, free: 6.742 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/0.4459, allocations: 128.4 kB / 456.9 MB, free: 6.617 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.446, allocations: 0 / 456.9 MB, free: 6.617 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008989/0.4469, allocations: 328.6 kB / 457.2 MB, free: 6.293 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003853/0.4473, allocations: 0.7862 MB / 458 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.4473, allocations: 0 / 458 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.4473, allocations: 4 kB / 458 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002096/0.4494, allocations: 287.7 kB / 458.3 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/0.4505, allocations: 0.6874 MB / 459 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006682/0.4512, allocations: 48.08 kB / 459 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.831e-05/0.4513, allocations: 19.94 kB / 459.1 MB, free: 4.383 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.4513, allocations: 4 kB / 459.1 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008186/0.4521, allocations: 276 kB / 459.3 MB, free: 4.109 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.4521, allocations: 0 / 459.3 MB, free: 4.109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.4522, allocations: 8 kB / 459.3 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.4533, allocations: 136 kB / 459.5 MB, free: 3.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.4533, allocations: 4 kB / 459.5 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005291/0.4538, allocations: 43.95 kB / 459.5 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.4539, allocations: 16 kB / 459.5 MB, free: 3.906 MB / 346.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.0001532/0.454, allocations: 45.55 kB / 459.6 MB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.4542, allocations: 35.53 kB / 459.6 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001657/0.4544, allocations: 36.14 kB / 459.6 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.4544, allocations: 4 kB / 459.6 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.4544, allocations: 0 / 459.6 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.4544, allocations: 3.984 kB / 459.6 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001739/0.4562, allocations: 0.7517 MB / 460.4 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.4562, allocations: 3.984 kB / 460.4 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009692/0.4572, allocations: 100 kB / 460.5 MB, free: 2.871 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-05/0.4573, allocations: 4 kB / 460.5 MB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.77e-05/0.4573, allocations: 4 kB / 460.5 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.4573, allocations: 0 / 460.5 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.859e-06/0.4573, allocations: 7.938 kB / 460.5 MB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001178/0.4585, allocations: 0.5483 MB / 461.1 MB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002443/0.4588, allocations: 140.6 kB / 461.2 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.693e-05/0.4589, allocations: 3.984 kB / 461.2 MB, free: 2.094 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006463/0.4595, allocations: 43.97 kB / 461.3 MB, free: 2.051 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.4597, allocations: 23.88 kB / 461.3 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.638e-05/0.4597, allocations: 15.98 kB / 461.3 MB, free: 2.012 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0003763/0.4601, allocations: 219 kB / 461.5 MB, free: 1.805 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007828/0.4609, allocations: 127.9 kB / 461.6 MB, free: 1.68 MB / 346.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.0002256/0.4611, allocations: 103.2 kB / 461.7 MB, free: 1.566 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.4638, allocations: 0.6158 MB / 462.3 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/0.4639, allocations: 0 / 462.3 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003936/0.4643, allocations: 128.4 kB / 462.5 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009385/0.4652, allocations: 81.05 kB / 462.5 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002823/0.4681, allocations: 0.8224 MB / 463.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006855/0.4688, allocations: 0.8693 MB / 464.2 MB, free: 14.99 MB / 362.7 MB Notification: Performance of SimCode: time 1.273e-06/0.4688, allocations: 0 / 464.2 MB, free: 14.99 MB / 362.7 MB Notification: Performance of Templates: time 0.01381/0.4826, allocations: 5.735 MB / 470 MB, free: 9.301 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches