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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009873/0.0009873, allocations: 94.39 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 200.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003442/0.0003441, allocations: 8 kB / 307.8 MB, free: 0.7969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.09529, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2527/0.3481, allocations: 70.9 MB / 430.2 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0351/0.3832, allocations: 14.44 MB / 444.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0136/0.3968, allocations: 323.2 kB / 444.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002666/0.3995, allocations: 0.6295 MB / 445.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007425/0.407, allocations: 2.577 MB / 448.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003307/0.4103, allocations: 1.346 MB / 449.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01636/0.4267, allocations: 12.06 MB / 461.5 MB, free: 4.469 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01217/0.4389, allocations: 7.1 MB / 468.6 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004609/0.4436, allocations: 2.062 MB / 470.7 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006308/0.4499, allocations: 3.672 MB / 474.4 MB, free: 7.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001583/0.4515, allocations: 244 kB / 474.6 MB, free: 7.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004113/0.4556, allocations: 1.404 MB / 476 MB, free: 5.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004339/0.46, allocations: 3.011 MB / 479 MB, free: 2.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004721/0.4648, allocations: 3.258 MB / 482.3 MB, free: 15.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0104/0.4752, allocations: 10.37 MB / 492.7 MB, free: 5.172 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4752, allocations: 0 / 492.7 MB, free: 5.172 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4752, allocations: 0 / 492.7 MB, free: 5.172 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002366/0.4755, allocations: 0 / 492.7 MB, free: 5.172 MB / 398.1 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.01457/0.49, allocations: 6.788 MB / 499.4 MB, free: 14.3 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.4901, allocations: 12.03 kB / 499.5 MB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03083/0.5209, allocations: 3.759 MB / 0.4914 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01232/0.5333, allocations: 5.177 MB / 0.4965 GB, free: 5.258 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003528/0.5337, allocations: 377.4 kB / 0.4968 GB, free: 4.887 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001946/0.5356, allocations: 0.515 MB / 0.4973 GB, free: 4.371 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02872/0.5644, allocations: 16.32 MB / 0.5133 GB, free: 2.98 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001953/0.5646, allocations: 79.22 kB / 0.5134 GB, free: 2.902 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006097/0.5652, allocations: 239.8 kB / 0.5136 GB, free: 2.668 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004706/0.5699, allocations: 2.919 MB / 0.5164 GB, free: 15.74 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02886/0.5988, allocations: 13.78 MB / 0.5299 GB, free: 1.938 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2697/0.8685, allocations: 64.81 MB / 0.5932 GB, free: 93.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0209/0.8894, allocations: 7.991 MB / 0.601 GB, free: 88.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004728/0.8942, allocations: 4.344 MB / 0.6052 GB, free: 84.24 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02274/0.917, allocations: 19.45 MB / 0.6242 GB, free: 64.29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.917, allocations: 64.5 kB / 0.6243 GB, free: 64.22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 4.739e-06/0.917, allocations: 0 / 0.6243 GB, free: 64.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1532/1.07, allocations: 50.55 MB / 0.6737 GB, free: 13.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.252e-05/1.07, allocations: 265.8 kB / 0.6739 GB, free: 13.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007618/1.078, allocations: 6.038 MB / 0.6798 GB, free: 7.152 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007852/1.079, allocations: 82.56 kB / 0.6799 GB, free: 7.066 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002269/1.081, allocations: 4.664 MB / 0.6844 GB, free: 2.402 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001574/1.083, allocations: 1.371 MB / 0.6858 GB, free: 1.043 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008772/1.084, allocations: 0.8241 MB / 0.6866 GB, free: 216 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.364e-05/1.084, allocations: 301.1 kB / 0.6869 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006255/1.09, allocations: 4.239 MB / 0.691 GB, free: 11.66 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2039/1.294, allocations: 9.459 MB / 0.7002 GB, free: 142.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01971/1.314, allocations: 14.66 MB / 0.7146 GB, free: 132.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000259/1.314, allocations: 52.09 kB / 0.7146 GB, free: 132.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.04046/1.354, allocations: 17.61 MB / 0.7318 GB, free: 127.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002162/1.355, allocations: 87.41 kB / 0.7319 GB, free: 127.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000275/1.355, allocations: 186.4 kB / 0.7321 GB, free: 127.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01477/1.37, allocations: 4.578 MB / 0.7365 GB, free: 126.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007055/1.377, allocations: 2.143 MB / 0.7386 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03005/1.407, allocations: 23.74 MB / 0.7618 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00747/1.414, allocations: 0.5318 MB / 0.7623 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00159/1.416, allocations: 0.5399 MB / 0.7629 GB, free: 102.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1136): * Single equations (assignments): 1131 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,44,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005714/1.422, allocations: 3.123 MB / 0.7659 GB, free: 99.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001242/1.423, allocations: 0.5596 MB / 0.7665 GB, free: 99.49 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02266/1.446, allocations: 10.77 MB / 0.777 GB, free: 88.66 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.631e-05/1.446, allocations: 36 kB / 0.777 GB, free: 88.62 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.043e-05/1.446, allocations: 20 kB / 0.777 GB, free: 88.61 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.268e-05/1.446, allocations: 19.88 kB / 0.7771 GB, free: 88.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03789/1.484, allocations: 20.58 MB / 0.7972 GB, free: 68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.941e-05/1.484, allocations: 4 kB / 0.7972 GB, free: 68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002944/1.487, allocations: 0.546 MB / 0.7977 GB, free: 67.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01354/1.5, allocations: 4.221 MB / 0.8018 GB, free: 63.22 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006396/1.501, allocations: 60.69 kB / 0.8019 GB, free: 63.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02786/1.529, allocations: 21.55 MB / 0.8229 GB, free: 41.48 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/1.529, allocations: 7.875 kB / 0.8229 GB, free: 41.47 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0272/1.556, allocations: 15.71 MB / 0.8383 GB, free: 25.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001487/1.558, allocations: 0.5874 MB / 0.8388 GB, free: 25.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001343/1.559, allocations: 61.8 kB / 0.8389 GB, free: 25.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003659/1.563, allocations: 223.7 kB / 0.8391 GB, free: 24.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009924/1.564, allocations: 234.1 kB / 0.8393 GB, free: 24.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002626/1.564, allocations: 101.2 kB / 0.8394 GB, free: 24.46 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005174/1.569, allocations: 3.765 MB / 0.8431 GB, free: 20.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.81e-07/1.569, allocations: 0 / 0.8431 GB, free: 20.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007816/1.577, allocations: 1.906 MB / 0.845 GB, free: 18.8 MB / 462.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 267 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007988/1.578, allocations: 215.4 kB / 0.8452 GB, free: 18.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01414/1.592, allocations: 10.53 MB / 0.8555 GB, free: 8.043 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/1.592, allocations: 0 / 0.8555 GB, free: 8.043 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005701/1.598, allocations: 4.142 MB / 0.8595 GB, free: 3.871 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004642/1.602, allocations: 0.7299 MB / 0.8602 GB, free: 3.148 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.208/1.81, allocations: 19.73 MB / 0.8795 GB, free: 146.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007179/1.818, allocations: 4.868 MB / 0.8842 GB, free: 146 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00786/1.825, allocations: 2.791 MB / 0.887 GB, free: 145.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001343/1.827, allocations: 375.9 kB / 0.8873 GB, free: 145.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.313e-06/1.827, allocations: 1.625 kB / 0.8873 GB, free: 145.9 MB / 478.1 MB Notification: Performance of Templates: time 0.1118/1.939, allocations: 79.88 MB / 0.9653 GB, free: 82.11 MB / 478.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches