Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.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.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator") translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator") [: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.002551/0.002551, allocations: 176 kB / 8.15 MB, free: 2.184 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.97/1.97, allocations: 205.2 MB / 213.8 MB, free: 13.85 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.001268/0.001268, allocations: 91.02 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.646e-06/8.657e-06, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2347, allocations: 47.55 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1171/0.3519, allocations: 76.36 MB / 438.2 MB, free: 9.723 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.3522, allocations: 71.95 kB / 438.3 MB, free: 9.652 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01783/0.3701, allocations: 3.464 MB / 441.7 MB, free: 6.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.241e-05/0.3701, allocations: 4 kB / 441.7 MB, free: 6.227 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009678/0.3711, allocations: 493.1 kB / 442.2 MB, free: 5.699 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.3712, allocations: 8.031 kB / 442.2 MB, free: 5.691 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.262e-05/0.3713, allocations: 25.5 kB / 442.2 MB, free: 5.668 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.3717, allocations: 223.4 kB / 442.5 MB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.3717, allocations: 13.36 kB / 442.5 MB, free: 5.395 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.764e-05/0.3718, allocations: 12 kB / 442.5 MB, free: 5.383 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004561/0.3722, allocations: 108.9 kB / 442.6 MB, free: 5.273 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004883/0.3727, allocations: 188.4 kB / 442.8 MB, free: 5.078 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.3728, allocations: 0 / 442.8 MB, free: 5.078 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.3728, allocations: 0 / 442.8 MB, free: 5.078 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.3728, allocations: 4 kB / 442.8 MB, free: 5.074 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.3747, allocations: 0.749 MB / 443.5 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003416/0.3751, allocations: 127.4 kB / 443.6 MB, free: 4.133 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002959/0.3754, allocations: 89.7 kB / 443.7 MB, free: 4.039 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.3755, allocations: 4 kB / 443.7 MB, free: 4.035 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.3755, allocations: 42.55 kB / 443.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.985e-06/0.3755, allocations: 0 / 443.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.001814/0.3774, allocations: 0.7121 MB / 444.5 MB, free: 3.184 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.545e-05/0.3775, allocations: 77.11 kB / 444.6 MB, free: 3.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001826/0.3777, allocations: 142 kB / 444.7 MB, free: 2.941 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.3777, allocations: 25.7 kB / 444.7 MB, free: 2.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.879e-05/0.3778, allocations: 194.6 kB / 444.9 MB, free: 2.719 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.409e-05/0.3779, allocations: 90.66 kB / 445 MB, free: 2.629 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.547e-05/0.378, allocations: 4 kB / 445 MB, free: 2.625 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.3781, allocations: 324.1 kB / 445.3 MB, free: 2.301 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.3783, allocations: 51.98 kB / 445.4 MB, free: 2.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.3785, allocations: 84.28 kB / 445.5 MB, free: 2.152 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.3787, allocations: 61.77 kB / 445.5 MB, free: 2.094 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3787, allocations: 0 / 445.5 MB, free: 2.094 MB / 330.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005552/0.3793, allocations: 190.1 kB / 445.7 MB, free: 1.902 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.3793, allocations: 8 kB / 445.7 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.3794, allocations: 0.9375 kB / 445.7 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/0.3794, allocations: 4 kB / 445.7 MB, free: 1.891 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005651/0.38, allocations: 67.89 kB / 445.8 MB, free: 1.824 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.38, allocations: 8.094 kB / 445.8 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.3802, allocations: 7.906 kB / 445.8 MB, free: 1.809 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.3802, allocations: 11.5 kB / 445.8 MB, free: 1.801 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 9.787e-05/0.3803, allocations: 33.64 kB / 445.8 MB, free: 1.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.99e-05/0.3804, allocations: 15.81 kB / 445.9 MB, free: 1.746 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.3805, allocations: 25.58 kB / 445.9 MB, free: 1.727 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3806, allocations: 4 kB / 445.9 MB, free: 1.723 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.3806, allocations: 8.719 kB / 445.9 MB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3806, allocations: 0 / 445.9 MB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.3819, allocations: 0.5237 MB / 446.4 MB, free: 1.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.3819, allocations: 4.094 kB / 446.4 MB, free: 1.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005957/0.3825, allocations: 59.91 kB / 446.5 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.009e-05/0.3826, allocations: 3.469 kB / 446.5 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.3826, allocations: 9.422 kB / 446.5 MB, free: 1.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.538e-06/0.3826, allocations: 4 kB / 446.5 MB, free: 1.066 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/0.3826, allocations: 2.031 kB / 446.5 MB, free: 1.066 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009165/0.3836, allocations: 498.1 kB / 447 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.3837, allocations: 92.92 kB / 447.1 MB, free: 432 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.921e-05/0.3838, allocations: 4 kB / 447.1 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/0.3841, allocations: 11.91 kB / 447.1 MB, free: 416 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.351e-05/0.3842, allocations: 15.97 kB / 447.1 MB, free: 400 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.3842, allocations: 8 kB / 447.1 MB, free: 392 kB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001642/0.3844, allocations: 111.3 kB / 447.2 MB, free: 280 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004667/0.3849, allocations: 44 kB / 447.3 MB, free: 236 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (mass1.s,mass1.v,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.0001943/0.3851, allocations: 109.1 kB / 447.4 MB, free: 116 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005083/0.3856, allocations: 140.1 kB / 447.5 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3856, allocations: 0 / 447.5 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002233/0.3858, allocations: 83.81 kB / 447.6 MB, free: 15.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005334/0.3864, allocations: 29.52 kB / 447.6 MB, free: 15.87 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.388, allocations: 0.5469 MB / 448.2 MB, free: 15.29 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005802/0.3886, allocations: 0.7707 MB / 448.9 MB, free: 14.49 MB / 346.7 MB Notification: Performance of SimCode: time 3.196e-06/0.3887, allocations: 0 / 448.9 MB, free: 14.49 MB / 346.7 MB Notification: Performance of Templates: time 0.006975/0.3956, allocations: 2.489 MB / 451.4 MB, free: 12.04 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches