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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 172.7 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.714/1.714, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.00108/0.00108, allocations: 86.62 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.721e-05/4.723e-05, allocations: 3.984 kB / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09574, allocations: 47.57 MB / 370 MB, free: 1.707 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3525/0.4483, allocations: 103.1 MB / 473.1 MB, free: 6.477 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.4486, allocations: 91.62 kB / 473.2 MB, free: 6.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5557/1.004, allocations: 136.4 MB / 0.5954 GB, free: 86.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/1.004, allocations: 0 / 0.5954 GB, free: 86.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003537/1.005, allocations: 137.4 kB / 0.5955 GB, free: 86.71 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.01917/1.024, allocations: 7.054 MB / 0.6024 GB, free: 81.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/1.024, allocations: 8.031 kB / 0.6024 GB, free: 81.28 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02879/1.053, allocations: 7.569 MB / 0.6098 GB, free: 73.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02037/1.073, allocations: 9.705 MB / 0.6193 GB, free: 64.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003578/1.074, allocations: 495 kB / 0.6197 GB, free: 63.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002665/1.076, allocations: 0.6523 MB / 0.6204 GB, free: 62.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0362/1.112, allocations: 16.57 MB / 0.6365 GB, free: 45.08 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004517/1.113, allocations: 99.17 kB / 0.6366 GB, free: 44.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001913/1.115, allocations: 315 kB / 0.6369 GB, free: 44.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002048/1.117, allocations: 1.58 MB / 0.6385 GB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0257/1.143, allocations: 13.51 MB / 0.6517 GB, free: 29.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3183/1.461, allocations: 74.4 MB / 0.7243 GB, free: 45.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02137/1.482, allocations: 7.696 MB / 0.7319 GB, free: 44.69 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004557/1.487, allocations: 3.985 MB / 0.7357 GB, free: 44.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02649/1.514, allocations: 18.71 MB / 0.754 GB, free: 39.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.774e-05/1.514, allocations: 66.34 kB / 0.7541 GB, free: 39.01 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 6.142e-06/1.514, allocations: 0 / 0.7541 GB, free: 39.01 MB / 426.7 MB Notification: Performance of matching and sorting (n=370): time 0.1152/1.629, allocations: 38.95 MB / 0.7921 GB, free: 27.17 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.362e-05/1.629, allocations: 273.3 kB / 0.7924 GB, free: 26.85 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00686/1.636, allocations: 5.318 MB / 0.7976 GB, free: 22.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006737/1.637, allocations: 79.34 kB / 0.7976 GB, free: 22.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002061/1.639, allocations: 4.775 MB / 0.8023 GB, free: 17.76 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001241/1.64, allocations: 1.368 MB / 0.8036 GB, free: 16.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004058/1.64, allocations: 180 kB / 0.8038 GB, free: 16.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003293/1.641, allocations: 0.6996 MB / 0.8045 GB, free: 15.78 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004418/1.645, allocations: 3.66 MB / 0.8081 GB, free: 12.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006578/1.652, allocations: 8.875 MB / 0.8167 GB, free: 1.777 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01031/1.662, allocations: 5.788 MB / 0.8224 GB, free: 13.67 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001499/1.662, allocations: 52 kB / 0.8224 GB, free: 13.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.0329/1.695, allocations: 15.86 MB / 0.8379 GB, free: 380 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/1.695, allocations: 84 kB / 0.838 GB, free: 296 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001852/1.695, allocations: 180 kB / 0.8382 GB, free: 116 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01259/1.708, allocations: 4.02 MB / 0.8421 GB, free: 12.08 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007142/1.715, allocations: 2.051 MB / 0.8441 GB, free: 10.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03168/1.747, allocations: 20.78 MB / 0.8644 GB, free: 4.996 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008625/1.756, allocations: 0.5462 MB / 0.8649 GB, free: 4.449 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001986/1.758, allocations: 0.5312 MB / 0.8655 GB, free: 3.918 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * 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 (1088): * Single equations (assignments): 1083 * 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,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001792/1.759, allocations: 0.8033 MB / 0.8662 GB, free: 3.113 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001445/1.761, allocations: 0.5785 MB / 0.8668 GB, free: 2.527 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2476/2.008, allocations: 9.455 MB / 0.876 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.561e-05/2.009, allocations: 37.59 kB / 0.8761 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.454e-05/2.009, allocations: 21.88 kB / 0.8761 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.494e-05/2.009, allocations: 18.7 kB / 0.8761 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03983/2.049, allocations: 18.93 MB / 0.8946 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.33e-05/2.049, allocations: 2.406 kB / 0.8946 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002641/2.051, allocations: 0.5048 MB / 0.8951 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01072/2.062, allocations: 3.575 MB / 0.8986 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007328/2.063, allocations: 66.17 kB / 0.8987 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02494/2.088, allocations: 18.7 MB / 0.9169 GB, free: 121 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/2.088, allocations: 3.594 kB / 0.9169 GB, free: 121 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02306/2.111, allocations: 13.98 MB / 0.9306 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003524/2.114, allocations: 1.125 MB / 0.9317 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001257/2.116, allocations: 59 kB / 0.9317 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003187/2.119, allocations: 218.8 kB / 0.9319 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007333/2.12, allocations: 224.6 kB / 0.9322 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002688/2.12, allocations: 94.33 kB / 0.9322 GB, free: 115.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00798/2.128, allocations: 3.717 MB / 0.9359 GB, free: 114.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.11e-07/2.128, allocations: 2.531 kB / 0.9359 GB, free: 114.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01002/2.138, allocations: 1.849 MB / 0.9377 GB, free: 114.4 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 (270): * Single equations (assignments): 265 * 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%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001035/2.139, allocations: 239.2 kB / 0.9379 GB, free: 114.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01376/2.153, allocations: 9.482 MB / 0.9472 GB, free: 107 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/2.153, allocations: 2.656 kB / 0.9472 GB, free: 107 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00492/2.158, allocations: 3.739 MB / 0.9508 GB, free: 103.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003574/2.161, allocations: 0.7175 MB / 0.9515 GB, free: 103 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02245/2.184, allocations: 13.17 MB / 0.9644 GB, free: 91.43 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00579/2.19, allocations: 5.016 MB / 0.9693 GB, free: 87.78 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007015/2.197, allocations: 2.814 MB / 0.972 GB, free: 86.09 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/2.198, allocations: 378.8 kB / 0.9724 GB, free: 85.73 MB / 474.7 MB Notification: Performance of SimCode: time 1.162e-06/2.198, allocations: 4 kB / 0.9724 GB, free: 85.73 MB / 474.7 MB Notification: Performance of Templates: time 0.3269/2.525, allocations: 74.6 MB / 1.045 GB, free: 118.5 MB / 474.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