Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.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.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 183.7 kB / 8.138 MB, free: 2.184 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.388/1.388, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.001/0.001, allocations: 92.58 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.732e-06/6.963e-06, allocations: 0 / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2776, allocations: 50.4 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09673/0.3744, allocations: 75.91 MB / 462.8 MB, free: 10.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/0.3747, allocations: 67.91 kB / 462.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.00912/0.3838, allocations: 3.258 MB / 466.1 MB, free: 7.602 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.3839, allocations: 4 kB / 466.1 MB, free: 7.598 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0005595/0.3844, allocations: 462.3 kB / 466.6 MB, free: 7.102 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.3845, allocations: 8.031 kB / 466.6 MB, free: 7.094 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.169e-05/0.3846, allocations: 27.7 kB / 466.6 MB, free: 7.066 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.3847, allocations: 188.7 kB / 466.8 MB, free: 6.844 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.3848, allocations: 8 kB / 466.8 MB, free: 6.836 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.3848, allocations: 12 kB / 466.8 MB, free: 6.824 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002517/0.3851, allocations: 116.9 kB / 466.9 MB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.3854, allocations: 190.6 kB / 467.1 MB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.3854, allocations: 3.906 kB / 467.1 MB, free: 6.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.95e-05/0.3854, allocations: 1.25 kB / 467.1 MB, free: 6.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.3855, allocations: 8 kB / 467.1 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.3866, allocations: 0.8172 MB / 468 MB, free: 5.625 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002206/0.3868, allocations: 136.5 kB / 468.1 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.187e-05/0.3869, allocations: 54.58 kB / 468.2 MB, free: 5.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.425e-05/0.3869, allocations: 0 / 468.2 MB, free: 5.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.3869, allocations: 38.47 kB / 468.2 MB, free: 5.363 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.162e-06/0.387, allocations: 0 / 468.2 MB, free: 5.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002926/0.3873, allocations: 117.9 kB / 468.3 MB, free: 5.242 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.3873, allocations: 110.7 kB / 468.4 MB, free: 5.109 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.3875, allocations: 143.6 kB / 468.6 MB, free: 4.961 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.3875, allocations: 25.7 kB / 468.6 MB, free: 4.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.37e-05/0.3876, allocations: 163.9 kB / 468.7 MB, free: 4.762 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.504e-05/0.3876, allocations: 59.11 kB / 468.8 MB, free: 4.703 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.263e-06/0.3877, allocations: 3.938 kB / 468.8 MB, free: 4.699 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3878, allocations: 327.6 kB / 469.1 MB, free: 4.371 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.658e-05/0.3879, allocations: 44.56 kB / 469.2 MB, free: 4.328 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.388, allocations: 138.5 kB / 469.3 MB, free: 4.145 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.3881, allocations: 64.75 kB / 469.4 MB, free: 4.082 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3881, allocations: 8 kB / 469.4 MB, free: 4.074 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003058/0.3884, allocations: 203.5 kB / 469.6 MB, free: 3.871 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.3885, allocations: 4 kB / 469.6 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3885, allocations: 4.438 kB / 469.6 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.3885, allocations: 12.92 kB / 469.6 MB, free: 3.852 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/0.3887, allocations: 59.92 kB / 469.6 MB, free: 3.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.3887, allocations: 11.94 kB / 469.7 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.3889, allocations: 20.62 kB / 469.7 MB, free: 3.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.3889, allocations: 12 kB / 469.7 MB, free: 3.75 MB / 346.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 8.704e-05/0.389, allocations: 120.8 kB / 469.8 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.742e-05/0.3891, allocations: 19.81 kB / 469.8 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.889e-05/0.3891, allocations: 17.41 kB / 469.8 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3891, allocations: 0 / 469.8 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3892, allocations: 4 kB / 469.8 MB, free: 3.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3892, allocations: 8.641 kB / 469.9 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004504/0.3896, allocations: 373.4 kB / 470.2 MB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3896, allocations: 1.25 kB / 470.2 MB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002137/0.3899, allocations: 39.92 kB / 470.3 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.3899, allocations: 0 / 470.3 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.3899, allocations: 8.094 kB / 470.3 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3899, allocations: 4 kB / 470.3 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.3899, allocations: 4.938 kB / 470.3 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003685/0.3903, allocations: 404.2 kB / 470.7 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.638e-05/0.3903, allocations: 93.02 kB / 470.8 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.3904, allocations: 4 kB / 470.8 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001599/0.3905, allocations: 0.625 kB / 470.8 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.768e-05/0.3906, allocations: 11.98 kB / 470.8 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.3906, allocations: 4 kB / 470.8 MB, free: 2.527 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.126e-05/0.3907, allocations: 124.9 kB / 470.9 MB, free: 2.406 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003525/0.391, allocations: 55.75 kB / 471 MB, free: 2.352 MB / 346.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.0001349/0.3912, allocations: 103.2 kB / 471.1 MB, free: 2.246 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002282/0.3914, allocations: 122.5 kB / 471.2 MB, free: 2.129 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3914, allocations: 0.875 kB / 471.2 MB, free: 2.129 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.583e-05/0.3915, allocations: 47.94 kB / 471.2 MB, free: 2.082 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.3918, allocations: 37.94 kB / 471.3 MB, free: 2.051 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000833/0.3927, allocations: 476.5 kB / 471.7 MB, free: 1.551 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000365/0.3931, allocations: 0.7589 MB / 472.5 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3931, allocations: 3.938 kB / 472.5 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of Templates: time 0.00416/0.3972, allocations: 1.525 MB / 474 MB, free: 15.25 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches