Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001585/0.001585, allocations: 203.7 kB / 8.537 MB, free: 1.684 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.001051, allocations: 93.91 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.235e-06/8.556e-06, allocations: 0 / 343.1 MB, free: 8.723 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1365, allocations: 51.49 MB / 394.6 MB, free: 5.188 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3953/0.5319, allocations: 104.8 MB / 499.4 MB, free: 4.676 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.5322, allocations: 87.83 kB / 499.5 MB, free: 4.633 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.6528/1.185, allocations: 138.5 MB / 0.623 GB, free: 52.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006376/1.186, allocations: 139 kB / 0.6232 GB, free: 52.88 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02667/1.212, allocations: 6.923 MB / 0.6299 GB, free: 50.21 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/1.212, allocations: 11.38 kB / 0.6299 GB, free: 50.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03013/1.243, allocations: 6.992 MB / 0.6368 GB, free: 49.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02746/1.27, allocations: 8.216 MB / 0.6448 GB, free: 48.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006106/1.271, allocations: 209.7 kB / 0.645 GB, free: 48.61 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004698/1.276, allocations: 398.7 kB / 0.6454 GB, free: 48.6 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.026/1.302, allocations: 10.08 MB / 0.6552 GB, free: 48.27 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03371/1.335, allocations: 14.63 MB / 0.6695 GB, free: 40.51 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004837/1.336, allocations: 99.31 kB / 0.6696 GB, free: 40.45 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002061/1.338, allocations: 44.03 kB / 0.6696 GB, free: 40.45 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003112/1.341, allocations: 1.703 MB / 0.6713 GB, free: 40.16 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1003/1.441, allocations: 75.91 MB / 0.7454 GB, free: 5.969 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00776/1.449, allocations: 5.337 MB / 0.7506 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2137/1.663, allocations: 4.343 MB / 0.7549 GB, free: 144.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02393/1.687, allocations: 14.28 MB / 0.7688 GB, free: 140.6 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/1.687, allocations: 68.12 kB / 0.7689 GB, free: 140.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=287): time 4.979e-06/1.687, allocations: 3.938 kB / 0.7689 GB, free: 140.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=369): time 0.0972/1.784, allocations: 38.39 MB / 0.8064 GB, free: 134.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.69e-05/1.784, allocations: 281.9 kB / 0.8067 GB, free: 133.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007984/1.792, allocations: 4.696 MB / 0.8113 GB, free: 132.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001161/1.793, allocations: 28.11 kB / 0.8113 GB, free: 132.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00251/1.796, allocations: 4.31 MB / 0.8155 GB, free: 129 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001822/1.798, allocations: 1.321 MB / 0.8168 GB, free: 128 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004798/1.798, allocations: 0 / 0.8168 GB, free: 128 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000401/1.799, allocations: 0.71 MB / 0.8175 GB, free: 127.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005558/1.804, allocations: 3.682 MB / 0.8211 GB, free: 126.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008927/1.813, allocations: 9.019 MB / 0.8299 GB, free: 117.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009298/1.823, allocations: 6.012 MB / 0.8357 GB, free: 115.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001779/1.823, allocations: 54.25 kB / 0.8358 GB, free: 115.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.03459/1.857, allocations: 15.13 MB / 0.8506 GB, free: 111.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/1.857, allocations: 6.625 kB / 0.8506 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002791/1.858, allocations: 190.8 kB / 0.8508 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01318/1.871, allocations: 3.794 MB / 0.8545 GB, free: 111 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008119/1.879, allocations: 2.076 MB / 0.8565 GB, free: 109.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02897/1.908, allocations: 19.93 MB / 0.876 GB, free: 92.78 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00852/1.917, allocations: 333.1 kB / 0.8763 GB, free: 92.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002749/1.919, allocations: 0.5522 MB / 0.8768 GB, free: 91.96 MB / 474.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.002499/1.922, allocations: 0.5785 MB / 0.8774 GB, free: 91.38 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/1.923, allocations: 0.5361 MB / 0.8779 GB, free: 90.84 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02137/1.945, allocations: 9.47 MB / 0.8872 GB, free: 83.48 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.571e-05/1.945, allocations: 36 kB / 0.8872 GB, free: 83.45 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.196e-05/1.945, allocations: 19.94 kB / 0.8872 GB, free: 83.43 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-05/1.945, allocations: 17.02 kB / 0.8872 GB, free: 83.43 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03631/1.981, allocations: 17.95 MB / 0.9048 GB, free: 69.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.27e-05/1.981, allocations: 8 kB / 0.9048 GB, free: 69.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002885/1.984, allocations: 480 kB / 0.9052 GB, free: 68.67 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01208/1.996, allocations: 3.409 MB / 0.9085 GB, free: 66.31 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000841/1.997, allocations: 9.344 kB / 0.9086 GB, free: 66.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02702/2.024, allocations: 18.38 MB / 0.9265 GB, free: 48.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/2.024, allocations: 0 / 0.9265 GB, free: 48.7 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02552/2.05, allocations: 14.26 MB / 0.9404 GB, free: 34.37 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001545/2.051, allocations: 0.5331 MB / 0.941 GB, free: 33.81 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001628/2.053, allocations: 4 kB / 0.941 GB, free: 33.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00322/2.056, allocations: 119.7 kB / 0.9411 GB, free: 33.69 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005306/2.057, allocations: 162.2 kB / 0.9412 GB, free: 33.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003262/2.057, allocations: 103.9 kB / 0.9413 GB, free: 33.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.004792/2.062, allocations: 3.175 MB / 0.9444 GB, free: 30.29 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009168/2.071, allocations: 1.577 MB / 0.946 GB, free: 28.72 MB / 474.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.0009014/2.072, allocations: 194.4 kB / 0.9461 GB, free: 28.54 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.2002/2.272, allocations: 9.205 MB / 0.9551 GB, free: 130.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/2.272, allocations: 2.422 kB / 0.9551 GB, free: 130.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005156/2.277, allocations: 3.593 MB / 0.9586 GB, free: 130.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003403/2.281, allocations: 0.5617 MB / 0.9592 GB, free: 130.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02963/2.31, allocations: 13.36 MB / 0.9722 GB, free: 128.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009675/2.32, allocations: 5.368 MB / 0.9775 GB, free: 127.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.463e-06/2.32, allocations: 5.875 kB / 0.9775 GB, free: 127.5 MB / 474.7 MB Notification: Performance of Templates: time 0.1406/2.461, allocations: 76.64 MB / 1.052 GB, free: 108.9 MB / 474.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches