Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") [: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.001634/0.001634, allocations: 170.1 kB / 8.139 MB, free: 0.7148 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.749/1.749, allocations: 205.2 MB / 213.7 MB, free: 1.883 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001296/0.001296, allocations: 102.4 kB / 261.8 MB, free: 1.82 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.33/0.33, allocations: 43.49 MB / 353.2 MB, free: 436 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 8.256e-06/8.356e-06, allocations: 0 / 417.7 MB, free: 29.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 58.85 MB / 476.5 MB, free: 2.336 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3904/0.501, allocations: 105.9 MB / 0.5688 GB, free: 6.559 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/0.5015, allocations: 73.41 kB / 0.5689 GB, free: 6.523 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3529/0.8543, allocations: 74.13 MB / 0.6413 GB, free: 4.512 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002559/0.8547, allocations: 72 kB / 0.6414 GB, free: 4.441 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.01501/0.8697, allocations: 3.561 MB / 0.6448 GB, free: 0.8203 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.8698, allocations: 15.97 kB / 0.6449 GB, free: 0.8047 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03093/0.9007, allocations: 3.926 MB / 0.6487 GB, free: 12.87 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01925/0.92, allocations: 4.53 MB / 0.6531 GB, free: 8.273 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002419/0.9203, allocations: 116 kB / 0.6532 GB, free: 8.16 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001866/0.9222, allocations: 211.9 kB / 0.6534 GB, free: 7.953 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01563/0.9378, allocations: 5.308 MB / 0.6586 GB, free: 2.637 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02279/0.9607, allocations: 8.382 MB / 0.6668 GB, free: 9.238 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002775/0.961, allocations: 63.39 kB / 0.6669 GB, free: 9.176 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001477/0.9625, allocations: 32 kB / 0.6669 GB, free: 9.145 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002248/0.9648, allocations: 0.9464 MB / 0.6678 GB, free: 8.191 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2401/1.205, allocations: 44.3 MB / 0.7111 GB, free: 161.4 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004935/1.21, allocations: 2.591 MB / 0.7136 GB, free: 160.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003429/1.213, allocations: 1.655 MB / 0.7152 GB, free: 160.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01399/1.227, allocations: 5.534 MB / 0.7206 GB, free: 159 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.345e-05/1.228, allocations: 47.28 kB / 0.7207 GB, free: 159 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=151): time 6.482e-06/1.228, allocations: 0 / 0.7207 GB, free: 159 MB / 0.4948 GB Notification: Performance of matching and sorting (n=188): time 0.07369/1.301, allocations: 17.13 MB / 0.7374 GB, free: 156.6 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/1.301, allocations: 198.4 kB / 0.7376 GB, free: 156.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006941/1.308, allocations: 2.95 MB / 0.7405 GB, free: 156.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004713/1.309, allocations: 27.7 kB / 0.7405 GB, free: 156 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002166/1.311, allocations: 2.665 MB / 0.7431 GB, free: 154.4 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001151/1.312, allocations: 0.6977 MB / 0.7438 GB, free: 154 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007212/1.313, allocations: 0 / 0.7438 GB, free: 154 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004329/1.313, allocations: 0.5669 MB / 0.7443 GB, free: 153.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005063/1.319, allocations: 1.952 MB / 0.7462 GB, free: 153.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007576/1.326, allocations: 5.627 MB / 0.7517 GB, free: 148.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00946/1.336, allocations: 3.655 MB / 0.7553 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001324/1.336, allocations: 36.44 kB / 0.7553 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=792) (initialization): time 0.03019/1.366, allocations: 8.15 MB / 0.7633 GB, free: 146.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/1.366, allocations: 5.188 kB / 0.7633 GB, free: 146.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002046/1.366, allocations: 134.9 kB / 0.7634 GB, free: 146.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009985/1.376, allocations: 1.403 MB / 0.7648 GB, free: 145.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008456/1.385, allocations: 1.327 MB / 0.7661 GB, free: 145.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0272/1.412, allocations: 8.556 MB / 0.7745 GB, free: 141.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005767/1.418, allocations: 169.2 kB / 0.7746 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00146/1.419, allocations: 381.7 kB / 0.775 GB, free: 140.6 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (724): * Single equations (assignments): 720 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001374/1.421, allocations: 367.3 kB / 0.7753 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008232/1.422, allocations: 312 kB / 0.7756 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01803/1.44, allocations: 3.892 MB / 0.7794 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001044/1.44, allocations: 16 kB / 0.7794 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.412e-05/1.44, allocations: 11.47 kB / 0.7795 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.431e-05/1.44, allocations: 9.938 kB / 0.7795 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03/1.47, allocations: 7.66 MB / 0.7869 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.127e-05/1.47, allocations: 0 / 0.7869 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002583/1.473, allocations: 226 kB / 0.7872 GB, free: 130.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009909/1.483, allocations: 1.241 MB / 0.7884 GB, free: 129.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000423/1.483, allocations: 15.89 kB / 0.7884 GB, free: 129.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02415/1.507, allocations: 7.97 MB / 0.7962 GB, free: 123 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.507, allocations: 0 / 0.7962 GB, free: 123 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02259/1.53, allocations: 6.47 MB / 0.8025 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002357/1.532, allocations: 0.5919 MB / 0.8031 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001042/1.533, allocations: 7.703 kB / 0.8031 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003206/1.537, allocations: 42.58 kB / 0.8031 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000426/1.537, allocations: 86.56 kB / 0.8032 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002408/1.537, allocations: 55.94 kB / 0.8033 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.004543/1.542, allocations: 1.969 MB / 0.8052 GB, free: 115 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007156/1.549, allocations: 0.828 MB / 0.806 GB, free: 114.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 122 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007632/1.55, allocations: 162 kB / 0.8061 GB, free: 114.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01128/1.561, allocations: 4.782 MB / 0.8108 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/1.561, allocations: 4 kB / 0.8108 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00371/1.565, allocations: 1.571 MB / 0.8123 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/1.568, allocations: 287 kB / 0.8126 GB, free: 108 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02322/1.591, allocations: 7.39 MB / 0.8198 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008571/1.6, allocations: 3.301 MB / 0.8231 GB, free: 98.84 MB / 0.4948 GB Notification: Performance of SimCode: time 1.583e-06/1.6, allocations: 0 / 0.8231 GB, free: 98.84 MB / 0.4948 GB Notification: Performance of Templates: time 0.1222/1.722, allocations: 68.36 MB / 0.8898 GB, free: 31.96 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches