Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Continuous_InitialOutput,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput") translateModel(ModelicaTest.Blocks.Continuous_InitialOutput,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001693/0.001693, allocations: 171.6 kB / 8.148 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.719/1.719, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001282/0.001282, allocations: 97.06 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2637/0.2637, allocations: 43.49 MB / 353.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.658e-06/9.828e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2978, allocations: 58.83 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1713/0.4691, allocations: 95.36 MB / 0.5585 GB, free: 3.703 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.4694, allocations: 67.97 kB / 0.5586 GB, free: 3.637 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.1503/0.6198, allocations: 28.85 MB / 0.5867 GB, free: 6.691 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001026/0.6199, allocations: 20.44 kB / 0.5867 GB, free: 6.672 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.003417/0.6234, allocations: 0.9737 MB / 0.5877 GB, free: 5.652 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.6234, allocations: 8.031 kB / 0.5877 GB, free: 5.645 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004492/0.6239, allocations: 94.88 kB / 0.5878 GB, free: 5.551 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002193/0.6261, allocations: 0.5859 MB / 0.5884 GB, free: 4.926 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.455e-05/0.6262, allocations: 19.98 kB / 0.5884 GB, free: 4.906 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.6264, allocations: 39.91 kB / 0.5884 GB, free: 4.867 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001242/0.6276, allocations: 333.9 kB / 0.5887 GB, free: 4.539 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.629, allocations: 0.4889 MB / 0.5892 GB, free: 3.996 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.563e-05/0.629, allocations: 11.84 kB / 0.5892 GB, free: 3.984 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.878e-05/0.6291, allocations: 0 / 0.5892 GB, free: 3.984 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.114e-05/0.6292, allocations: 12 kB / 0.5892 GB, free: 3.973 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006509/0.6357, allocations: 2.553 MB / 0.5917 GB, free: 1.328 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009403/0.6367, allocations: 339.4 kB / 0.5921 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005478/0.6372, allocations: 200.5 kB / 0.5923 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.192e-05/0.6373, allocations: 4.234 kB / 0.5923 GB, free: 0.7617 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.6374, allocations: 38.8 kB / 0.5923 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 3.196e-06/0.6374, allocations: 3.938 kB / 0.5923 GB, free: 0.7109 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.002466/0.6399, allocations: 0.7753 MB / 0.5931 GB, free: 15.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.402e-05/0.64, allocations: 126.6 kB / 0.5932 GB, free: 15.78 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.641, allocations: 487.9 kB / 0.5936 GB, free: 15.29 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.6412, allocations: 25.7 kB / 0.5937 GB, free: 15.26 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.6413, allocations: 263.1 kB / 0.5939 GB, free: 15 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002505/0.6416, allocations: 177.5 kB / 0.5941 GB, free: 14.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-05/0.6417, allocations: 4 kB / 0.5941 GB, free: 14.82 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.6418, allocations: 335.8 kB / 0.5944 GB, free: 14.48 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006486/0.6425, allocations: 197.3 kB / 0.5946 GB, free: 14.29 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007529/0.6433, allocations: 342.4 kB / 0.5949 GB, free: 13.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008588/0.6442, allocations: 252.2 kB / 0.5952 GB, free: 13.65 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.6442, allocations: 0 / 0.5952 GB, free: 13.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001859/0.646, allocations: 0.5827 MB / 0.5957 GB, free: 13.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008654/0.6469, allocations: 1.744 MB / 0.5974 GB, free: 11.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.599e-05/0.647, allocations: 7.984 kB / 0.5974 GB, free: 11.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.38e-05/0.6471, allocations: 12 kB / 0.5975 GB, free: 11.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00226/0.6493, allocations: 211.7 kB / 0.5977 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.563e-05/0.6494, allocations: 12 kB / 0.5977 GB, free: 10.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008195/0.6502, allocations: 63.56 kB / 0.5977 GB, free: 10.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.6503, allocations: 31.98 kB / 0.5978 GB, free: 10.85 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.6504, allocations: 4 kB / 0.5978 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0018/0.6522, allocations: 0.5306 MB / 0.5983 GB, free: 10.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.6522, allocations: 4 kB / 0.5983 GB, free: 10.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.6523, allocations: 8 kB / 0.5983 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002082/0.6544, allocations: 212.3 kB / 0.5985 GB, free: 10.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.095e-05/0.6544, allocations: 11.94 kB / 0.5985 GB, free: 10.08 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007967/0.6552, allocations: 67.56 kB / 0.5986 GB, free: 10.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.014e-05/0.6554, allocations: 24 kB / 0.5986 GB, free: 9.992 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 1 * 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 prepare postOptimizeDAE: time 0.0002187/0.6556, allocations: 50.03 kB / 0.5986 GB, free: 9.941 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003062/0.6559, allocations: 75.06 kB / 0.5987 GB, free: 9.867 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003219/0.6562, allocations: 78.78 kB / 0.5988 GB, free: 9.789 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.6563, allocations: 8 kB / 0.5988 GB, free: 9.781 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.914e-06/0.6563, allocations: 0 / 0.5988 GB, free: 9.781 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.6563, allocations: 7.984 kB / 0.5988 GB, free: 9.773 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002993/0.6593, allocations: 1.123 MB / 0.5999 GB, free: 8.598 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.6594, allocations: 4 kB / 0.5999 GB, free: 8.594 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001504/0.6609, allocations: 115.9 kB / 0.6 GB, free: 8.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/0.6609, allocations: 0 / 0.6 GB, free: 8.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.484e-05/0.661, allocations: 15.98 kB / 0.6 GB, free: 8.465 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.167e-06/0.661, allocations: 4 kB / 0.6 GB, free: 8.461 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.661, allocations: 4 kB / 0.6 GB, free: 8.457 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002194/0.6633, allocations: 1.008 MB / 0.601 GB, free: 7.402 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004515/0.6637, allocations: 203.9 kB / 0.6012 GB, free: 7.184 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.6639, allocations: 4 kB / 0.6012 GB, free: 7.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.6651, allocations: 51.95 kB / 0.6013 GB, free: 7.129 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.6653, allocations: 43.88 kB / 0.6013 GB, free: 7.086 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.378e-05/0.6654, allocations: 8 kB / 0.6013 GB, free: 7.078 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0007722/0.6661, allocations: 387.1 kB / 0.6017 GB, free: 6.703 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001341/0.6675, allocations: 199.9 kB / 0.6019 GB, free: 6.508 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * 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.0004421/0.668, allocations: 147 kB / 0.602 GB, free: 6.355 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00249/0.6705, allocations: 0.778 MB / 0.6028 GB, free: 5.578 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.6705, allocations: 0 / 0.6028 GB, free: 5.578 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006899/0.6712, allocations: 223.8 kB / 0.603 GB, free: 5.359 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/0.6729, allocations: 155.9 kB / 0.6031 GB, free: 5.207 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004466/0.6774, allocations: 1.215 MB / 0.6043 GB, free: 3.934 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001358/0.6788, allocations: 1.036 MB / 0.6053 GB, free: 2.867 MB / 442.7 MB Notification: Performance of SimCode: time 1.492e-06/0.6789, allocations: 0 / 0.6053 GB, free: 2.867 MB / 442.7 MB Notification: Performance of Templates: time 0.02913/0.708, allocations: 8.946 MB / 0.6141 GB, free: 9.938 MB / 458.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous_InitialOutput/Continuous_InitialOutput.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches