Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") [: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.001185/0.001185, allocations: 181.4 kB / 8.477 MB, free: 1.852 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.241/1.241, allocations: 205.2 MB / 214.1 MB, free: 5.145 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000945/0.0009449, allocations: 83.3 kB / 262.1 MB, free: 5.199 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.115e-06/8.125e-06, allocations: 4 kB / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08363/0.08365, allocations: 47.58 MB / 362.6 MB, free: 9.953 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2834/0.3671, allocations: 102.4 MB / 464.9 MB, free: 4.918 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/0.3674, allocations: 89.28 kB / 465 MB, free: 4.902 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.4901/0.8575, allocations: 131.7 MB / 0.5828 GB, free: 73.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002875/0.8578, allocations: 134.4 kB / 0.5829 GB, free: 73.7 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.01887/0.8767, allocations: 6.908 MB / 0.5896 GB, free: 71.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.8768, allocations: 9.219 kB / 0.5896 GB, free: 71.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02814/0.9049, allocations: 6.986 MB / 0.5965 GB, free: 70.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02231/0.9273, allocations: 9.757 MB / 0.606 GB, free: 69.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003551/0.9277, allocations: 206.3 kB / 0.6062 GB, free: 69.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003205/0.9309, allocations: 398.9 kB / 0.6066 GB, free: 69.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01683/0.9477, allocations: 10.08 MB / 0.6164 GB, free: 69.58 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02544/0.9732, allocations: 14.62 MB / 0.6307 GB, free: 64.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004683/0.9737, allocations: 103.5 kB / 0.6308 GB, free: 64.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001916/0.9756, allocations: 46.7 kB / 0.6308 GB, free: 64.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002585/0.9782, allocations: 1.71 MB / 0.6325 GB, free: 63.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07824/1.056, allocations: 75.98 MB / 0.7067 GB, free: 9.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007101/1.064, allocations: 5.346 MB / 0.7119 GB, free: 4.629 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005657/1.069, allocations: 4.345 MB / 0.7162 GB, free: 0.625 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1454/1.215, allocations: 14.34 MB / 0.7302 GB, free: 118.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.637e-05/1.215, allocations: 62.19 kB / 0.7302 GB, free: 118.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 6.583e-06/1.215, allocations: 0 / 0.7302 GB, free: 118.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=369): time 0.09408/1.309, allocations: 38.63 MB / 0.768 GB, free: 114.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.255e-05/1.309, allocations: 272.5 kB / 0.7682 GB, free: 114 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006424/1.315, allocations: 4.759 MB / 0.7729 GB, free: 112.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008203/1.316, allocations: 25.7 kB / 0.7729 GB, free: 112.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001912/1.318, allocations: 4.317 MB / 0.7771 GB, free: 109.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001433/1.32, allocations: 1.322 MB / 0.7784 GB, free: 108.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004286/1.32, allocations: 3.75 kB / 0.7784 GB, free: 108.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004061/1.321, allocations: 0.7006 MB / 0.7791 GB, free: 107.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004244/1.325, allocations: 3.684 MB / 0.7827 GB, free: 106.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006197/1.331, allocations: 9.022 MB / 0.7915 GB, free: 98.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008238/1.339, allocations: 6.013 MB / 0.7974 GB, free: 96.33 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.984e-05/1.339, allocations: 54.81 kB / 0.7974 GB, free: 96.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.03199/1.371, allocations: 15.14 MB / 0.8122 GB, free: 89.56 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/1.371, allocations: 4 kB / 0.8122 GB, free: 89.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001913/1.372, allocations: 192 kB / 0.8124 GB, free: 89.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01281/1.384, allocations: 3.79 MB / 0.8161 GB, free: 86.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007519/1.392, allocations: 2.082 MB / 0.8181 GB, free: 84.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02974/1.422, allocations: 19.93 MB / 0.8376 GB, free: 67.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008267/1.43, allocations: 334.8 kB / 0.8379 GB, free: 67.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001846/1.432, allocations: 0.5567 MB / 0.8385 GB, free: 66.89 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 864 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1120): * Single equations (assignments): 1115 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001823/1.434, allocations: 0.5778 MB / 0.839 GB, free: 66.31 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00124/1.435, allocations: 0.5438 MB / 0.8396 GB, free: 65.76 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02031/1.455, allocations: 9.472 MB / 0.8488 GB, free: 58.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-05/1.455, allocations: 32 kB / 0.8488 GB, free: 58.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.046e-05/1.456, allocations: 20 kB / 0.8489 GB, free: 58.35 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.273e-05/1.456, allocations: 19.69 kB / 0.8489 GB, free: 58.35 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03595/1.492, allocations: 17.95 MB / 0.8664 GB, free: 41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.157e-05/1.492, allocations: 0 / 0.8664 GB, free: 41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002707/1.494, allocations: 479.3 kB / 0.8669 GB, free: 40.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0119/1.506, allocations: 3.415 MB / 0.8702 GB, free: 37.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007416/1.507, allocations: 15.98 kB / 0.8702 GB, free: 37.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1583/1.665, allocations: 18.38 MB / 0.8882 GB, free: 106.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/1.665, allocations: 0 / 0.8882 GB, free: 106.6 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02426/1.69, allocations: 14.24 MB / 0.9021 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002529/1.692, allocations: 1.092 MB / 0.9031 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008853/1.693, allocations: 0 / 0.9031 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002579/1.696, allocations: 118.8 kB / 0.9033 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004297/1.696, allocations: 165.2 kB / 0.9034 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002964/1.696, allocations: 96.03 kB / 0.9035 GB, free: 105.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003916/1.7, allocations: 3.221 MB / 0.9066 GB, free: 105.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006486/1.707, allocations: 1.577 MB / 0.9082 GB, free: 105.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 260 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 40,(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005761/1.707, allocations: 189.4 kB / 0.9084 GB, free: 105.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01121/1.719, allocations: 9.208 MB / 0.9174 GB, free: 105.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/1.719, allocations: 0 / 0.9174 GB, free: 105.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004371/1.723, allocations: 3.59 MB / 0.9209 GB, free: 104.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00293/1.726, allocations: 0.5758 MB / 0.9214 GB, free: 104.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02316/1.749, allocations: 13.41 MB / 0.9345 GB, free: 100.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007223/1.756, allocations: 5.39 MB / 0.9398 GB, free: 98.52 MB / 426.7 MB Notification: Performance of SimCode: time 1.483e-06/1.757, allocations: 3.844 kB / 0.9398 GB, free: 98.52 MB / 426.7 MB Notification: Performance of Templates: time 0.1168/1.873, allocations: 76.7 MB / 1.015 GB, free: 45.26 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches