Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.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.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows") translateModel(Modelica.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows") [: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.002431/0.002431, allocations: 175.9 kB / 8.153 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.918/1.918, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.001254/0.001254, allocations: 94.36 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/8.375e-06, allocations: 0 / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2431, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1146/0.3577, allocations: 74.76 MB / 436.6 MB, free: 11.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.358, allocations: 59.97 kB / 436.6 MB, free: 11.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01357/0.3716, allocations: 3.123 MB / 439.8 MB, free: 8.152 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.3717, allocations: 4 kB / 439.8 MB, free: 8.148 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007556/0.3724, allocations: 469.2 kB / 440.2 MB, free: 7.645 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.3725, allocations: 12.03 kB / 440.2 MB, free: 7.633 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.287e-05/0.3726, allocations: 23.72 kB / 440.3 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.3728, allocations: 190.7 kB / 440.5 MB, free: 7.383 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.3728, allocations: 8 kB / 440.5 MB, free: 7.375 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.756e-05/0.3729, allocations: 16 kB / 440.5 MB, free: 7.359 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003983/0.3733, allocations: 109 kB / 440.6 MB, free: 7.254 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000455/0.3738, allocations: 191.9 kB / 440.8 MB, free: 7.055 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/0.3738, allocations: 11.91 kB / 440.8 MB, free: 7.043 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.3738, allocations: 6.625 kB / 440.8 MB, free: 7.039 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.3739, allocations: 7.984 kB / 440.8 MB, free: 7.031 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.3754, allocations: 0.8172 MB / 441.6 MB, free: 6.164 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.3757, allocations: 130.1 kB / 441.7 MB, free: 6.016 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.3759, allocations: 50.58 kB / 441.8 MB, free: 5.957 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.3759, allocations: 11.91 kB / 441.8 MB, free: 5.945 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.376, allocations: 34.56 kB / 441.8 MB, free: 5.902 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 2.655e-06/0.376, allocations: 0 / 441.8 MB, free: 5.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004248/0.3764, allocations: 117.7 kB / 442 MB, free: 5.781 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/0.3765, allocations: 110.8 kB / 442.1 MB, free: 5.648 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.3767, allocations: 142.4 kB / 442.2 MB, free: 5.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.3767, allocations: 29.7 kB / 442.2 MB, free: 5.465 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.3768, allocations: 226.3 kB / 442.4 MB, free: 5.242 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.444e-05/0.3769, allocations: 63.09 kB / 442.5 MB, free: 5.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.177e-05/0.3769, allocations: 0 / 442.5 MB, free: 5.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3771, allocations: 322.8 kB / 442.8 MB, free: 4.855 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.3772, allocations: 40.56 kB / 442.9 MB, free: 4.816 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/0.3774, allocations: 150 kB / 443 MB, free: 4.625 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001829/0.3776, allocations: 62.45 kB / 443.1 MB, free: 4.566 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3776, allocations: 0 / 443.1 MB, free: 4.566 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004956/0.3782, allocations: 203.3 kB / 443.3 MB, free: 4.363 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3782, allocations: 5.562 kB / 443.3 MB, free: 4.359 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.3782, allocations: 4 kB / 443.3 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.3782, allocations: 8 kB / 443.3 MB, free: 4.348 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004315/0.3787, allocations: 51.92 kB / 443.3 MB, free: 4.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.3787, allocations: 15.92 kB / 443.4 MB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.3789, allocations: 15.78 kB / 443.4 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.3789, allocations: 16.34 kB / 443.4 MB, free: 4.25 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 prepare postOptimizeDAE: time 7.029e-05/0.379, allocations: 33.64 kB / 443.4 MB, free: 4.211 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.3791, allocations: 15.81 kB / 443.4 MB, free: 4.195 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.257e-05/0.3792, allocations: 29.25 kB / 443.5 MB, free: 4.168 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.056e-06/0.3793, allocations: 7.984 kB / 443.5 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3793, allocations: 0 / 443.5 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.3793, allocations: 4 kB / 443.5 MB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006785/0.38, allocations: 385.3 kB / 443.9 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.38, allocations: 0 / 443.9 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003963/0.3804, allocations: 35.98 kB / 443.9 MB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.3804, allocations: 0 / 443.9 MB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.3805, allocations: 7.25 kB / 443.9 MB, free: 3.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3805, allocations: 3.938 kB / 443.9 MB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.3805, allocations: 4 kB / 443.9 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005437/0.381, allocations: 404.4 kB / 444.3 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.773e-05/0.3811, allocations: 97.09 kB / 444.4 MB, free: 3.117 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.283e-05/0.3812, allocations: 4 kB / 444.4 MB, free: 3.113 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.3814, allocations: 7.906 kB / 444.4 MB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.558e-05/0.3815, allocations: 16.86 kB / 444.4 MB, free: 3.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.3815, allocations: 8 kB / 444.4 MB, free: 3.082 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001412/0.3816, allocations: 112 kB / 444.5 MB, free: 2.973 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004764/0.3821, allocations: 47.84 kB / 444.6 MB, free: 2.926 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0001617/0.3823, allocations: 103.2 kB / 444.7 MB, free: 2.812 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000354/0.3827, allocations: 119.8 kB / 444.8 MB, free: 2.695 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3827, allocations: 0 / 444.8 MB, free: 2.695 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.3828, allocations: 53.88 kB / 444.9 MB, free: 2.645 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004454/0.3833, allocations: 26.62 kB / 444.9 MB, free: 2.621 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.3845, allocations: 0.4961 MB / 445.4 MB, free: 2.102 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004224/0.385, allocations: 0.7628 MB / 446.1 MB, free: 1.312 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.385, allocations: 0 / 446.1 MB, free: 1.312 MB / 330.7 MB Notification: Performance of Templates: time 0.005473/0.3905, allocations: 2.126 MB / 448.3 MB, free: 15.21 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches