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.001336/0.001336, allocations: 112.5 kB / 17.86 MB, free: 5.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001583/0.001584, allocations: 209.7 kB / 18.79 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 9.031 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 67.52 kB / 306.9 MB, free: 0.7969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09315/0.0946, allocations: 50.53 MB / 357.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2252/0.3199, allocations: 72.69 MB / 430.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03516/0.3551, allocations: 14.51 MB / 444.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01489/0.37, allocations: 331.1 kB / 445 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008989/0.3791, allocations: 4.327 MB / 449.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007251/0.3864, allocations: 2.561 MB / 451.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003344/0.3898, allocations: 1.338 MB / 453.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01433/0.4042, allocations: 12.07 MB / 465.3 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008034/0.4123, allocations: 5.294 MB / 470.6 MB, free: 10.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005207/0.4175, allocations: 2.386 MB / 472.9 MB, free: 7.848 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006444/0.424, allocations: 4.097 MB / 477 MB, free: 3.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002098/0.4261, allocations: 384 kB / 477.4 MB, free: 3.363 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004336/0.4305, allocations: 1.541 MB / 479 MB, free: 1.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005101/0.4356, allocations: 3.195 MB / 482.2 MB, free: 14.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006245/0.4419, allocations: 3.479 MB / 485.6 MB, free: 11.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009752/0.4517, allocations: 8.669 MB / 494.3 MB, free: 2.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.4518, allocations: 0 / 494.3 MB, free: 2.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4518, allocations: 0 / 494.3 MB, free: 2.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003852/0.4522, allocations: 0 / 494.3 MB, free: 2.43 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.02087/0.473, allocations: 8.179 MB / 0.4907 GB, free: 10.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.4731, allocations: 12.03 kB / 0.4907 GB, free: 10.15 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02757/0.5007, allocations: 3.673 MB / 0.4943 GB, free: 6.461 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01291/0.5136, allocations: 5.188 MB / 0.4994 GB, free: 1.191 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003599/0.514, allocations: 373.5 kB / 0.4997 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002051/0.5161, allocations: 0.5112 MB / 0.5002 GB, free: 320 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03306/0.5492, allocations: 16.25 MB / 0.5161 GB, free: 14.99 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003465/0.5495, allocations: 79.22 kB / 0.5162 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001668/0.5512, allocations: 235.8 kB / 0.5164 GB, free: 14.68 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004999/0.5562, allocations: 2.938 MB / 0.5193 GB, free: 11.74 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1923/0.7485, allocations: 13.71 MB / 0.5327 GB, free: 138.9 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.07644/0.825, allocations: 64.81 MB / 0.5959 GB, free: 92.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02078/0.8458, allocations: 7.874 MB / 0.6036 GB, free: 85.86 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005496/0.8514, allocations: 4.349 MB / 0.6079 GB, free: 81.49 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03069/0.8821, allocations: 19.45 MB / 0.6269 GB, free: 61.55 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.348e-05/0.8822, allocations: 72.48 kB / 0.6269 GB, free: 61.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 6.873e-06/0.8822, allocations: 4 kB / 0.6269 GB, free: 61.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1602/1.042, allocations: 49.83 MB / 0.6756 GB, free: 11.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.609e-05/1.043, allocations: 269.8 kB / 0.6759 GB, free: 11.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009531/1.052, allocations: 6.038 MB / 0.6818 GB, free: 5.129 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009236/1.053, allocations: 81.7 kB / 0.6818 GB, free: 5.043 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003284/1.056, allocations: 4.671 MB / 0.6864 GB, free: 340 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002493/1.059, allocations: 1.373 MB / 0.6877 GB, free: 14.94 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004882/1.064, allocations: 1.915 MB / 0.6896 GB, free: 13.01 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/1.064, allocations: 301.1 kB / 0.6899 GB, free: 12.71 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007407/1.071, allocations: 4.235 MB / 0.694 GB, free: 8.469 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1887/1.26, allocations: 9.454 MB / 0.7033 GB, free: 141.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01827/1.278, allocations: 14.65 MB / 0.7176 GB, free: 132.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003362/1.279, allocations: 51.56 kB / 0.7176 GB, free: 132.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03797/1.317, allocations: 17.56 MB / 0.7348 GB, free: 126.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001585/1.317, allocations: 84.78 kB / 0.7349 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002349/1.317, allocations: 183.5 kB / 0.735 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01385/1.331, allocations: 4.537 MB / 0.7395 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007626/1.339, allocations: 2.141 MB / 0.7415 GB, free: 125.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03238/1.371, allocations: 23.64 MB / 0.7646 GB, free: 104.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008372/1.38, allocations: 0.5255 MB / 0.7652 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002147/1.382, allocations: 0.5351 MB / 0.7657 GB, free: 103.3 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.007005/1.389, allocations: 3.128 MB / 0.7687 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001511/1.39, allocations: 0.5605 MB / 0.7693 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02136/1.412, allocations: 10.72 MB / 0.7798 GB, free: 89.23 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.398e-05/1.412, allocations: 40.19 kB / 0.7798 GB, free: 89.19 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-05/1.412, allocations: 16 kB / 0.7798 GB, free: 89.17 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-05/1.412, allocations: 23.88 kB / 0.7798 GB, free: 89.15 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03579/1.448, allocations: 20.52 MB / 0.7999 GB, free: 68.63 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.738e-05/1.448, allocations: 4.875 kB / 0.7999 GB, free: 68.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002965/1.451, allocations: 0.5382 MB / 0.8004 GB, free: 68.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01292/1.464, allocations: 4.176 MB / 0.8045 GB, free: 63.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008097/1.465, allocations: 63.98 kB / 0.8045 GB, free: 63.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02728/1.492, allocations: 21.47 MB / 0.8255 GB, free: 42.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/1.492, allocations: 3.938 kB / 0.8255 GB, free: 42.25 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02658/1.518, allocations: 15.65 MB / 0.8408 GB, free: 26.53 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001421/1.52, allocations: 0.5874 MB / 0.8414 GB, free: 25.92 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001869/1.522, allocations: 56 kB / 0.8414 GB, free: 25.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003695/1.526, allocations: 219.7 kB / 0.8416 GB, free: 25.65 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001195/1.527, allocations: 226.1 kB / 0.8418 GB, free: 25.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000549/1.527, allocations: 103.9 kB / 0.8419 GB, free: 25.32 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005796/1.533, allocations: 3.769 MB / 0.8456 GB, free: 21.56 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.232e-06/1.533, allocations: 0 / 0.8456 GB, free: 21.56 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008701/1.542, allocations: 1.909 MB / 0.8475 GB, free: 19.66 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.0009072/1.543, allocations: 212.4 kB / 0.8477 GB, free: 19.45 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01454/1.557, allocations: 10.51 MB / 0.8579 GB, free: 8.922 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.034e-06/1.557, allocations: 4 kB / 0.8579 GB, free: 8.918 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005737/1.563, allocations: 4.126 MB / 0.862 GB, free: 4.762 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005476/1.569, allocations: 0.7381 MB / 0.8627 GB, free: 4.035 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1793/1.748, allocations: 20.22 MB / 0.8824 GB, free: 147.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006989/1.755, allocations: 4.825 MB / 0.8872 GB, free: 146.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001872/1.757, allocations: 449.3 kB / 0.8876 GB, free: 146.8 MB / 478.1 MB Notification: Performance of SimCode: time 8.52e-07/1.757, allocations: 0 / 0.8876 GB, free: 146.8 MB / 478.1 MB Notification: Performance of Templates: time 0.1454/1.902, allocations: 152.9 MB / 1.037 GB, free: 11.95 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/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