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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 107.5 kB / 18.4 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001912/0.001911, allocations: 187.1 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.539/1.539, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 59.91 kB / 329.2 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1237, allocations: 46.61 MB / 375.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2808/0.4046, allocations: 17.34 MB / 393.2 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01433/0.419, allocations: 5.488 MB / 398.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00541/0.4245, allocations: 117.5 kB / 398.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009844/0.4343, allocations: 4.373 MB / 403.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.4445, allocations: 2.764 MB / 405.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00436/0.4489, allocations: 1.46 MB / 407.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01437/0.4633, allocations: 8.151 MB / 415.5 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009338/0.4727, allocations: 5.388 MB / 420.9 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006028/0.4788, allocations: 2.679 MB / 423.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006725/0.4856, allocations: 3.867 MB / 427.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002481/0.4881, allocations: 0.5391 MB / 428 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005268/0.4934, allocations: 1.619 MB / 429.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005986/0.4994, allocations: 3.402 MB / 433 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009271/0.5087, allocations: 3.663 MB / 436.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01868/0.5274, allocations: 11.24 MB / 447.9 MB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.5275, allocations: 0 / 447.9 MB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5275, allocations: 0 / 447.9 MB, free: 7.238 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003984/0.5279, allocations: 0 / 447.9 MB, free: 7.238 MB / 366.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.02254/0.5504, allocations: 8.23 MB / 456.1 MB, free: 14.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.5505, allocations: 8.031 kB / 456.1 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03027/0.5808, allocations: 3.677 MB / 459.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01399/0.5948, allocations: 5.61 MB / 465.4 MB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003887/0.5953, allocations: 373.4 kB / 465.8 MB, free: 5.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002315/0.5976, allocations: 0.5112 MB / 466.3 MB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03481/0.6324, allocations: 16.24 MB / 482.5 MB, free: 3.348 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003039/0.6328, allocations: 79.36 kB / 482.6 MB, free: 3.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001288/0.6341, allocations: 239.8 kB / 482.9 MB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004931/0.639, allocations: 2.927 MB / 485.8 MB, free: 108 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03069/0.6697, allocations: 13.7 MB / 499.5 MB, free: 2.375 MB / 414.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.3283/0.9981, allocations: 64.55 MB / 0.5508 GB, free: 133.6 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02445/1.023, allocations: 7.857 MB / 0.5585 GB, free: 132.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007315/1.03, allocations: 4.343 MB / 0.5627 GB, free: 132.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03224/1.062, allocations: 19.37 MB / 0.5816 GB, free: 122.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.111e-05/1.062, allocations: 70.78 kB / 0.5817 GB, free: 122.8 MB / 478.1 MB Notification: Performance of pre-optimization done (n=290): time 6.342e-06/1.062, allocations: 0 / 0.5817 GB, free: 122.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=372): time 0.1584/1.221, allocations: 49.91 MB / 0.6305 GB, free: 87.52 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.45e-05/1.221, allocations: 273.3 kB / 0.6307 GB, free: 87.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00796/1.229, allocations: 6.091 MB / 0.6367 GB, free: 81.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001149/1.23, allocations: 89.7 kB / 0.6368 GB, free: 81.01 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00247/1.233, allocations: 4.675 MB / 0.6413 GB, free: 76.34 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001815/1.234, allocations: 1.373 MB / 0.6427 GB, free: 74.98 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002483/1.237, allocations: 1.912 MB / 0.6445 GB, free: 73.05 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.403e-05/1.237, allocations: 309.1 kB / 0.6448 GB, free: 72.75 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005528/1.242, allocations: 4.216 MB / 0.6489 GB, free: 68.53 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008319/1.251, allocations: 9.456 MB / 0.6582 GB, free: 56.61 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01505/1.266, allocations: 14.63 MB / 0.6725 GB, free: 39.51 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001796/1.266, allocations: 52 kB / 0.6725 GB, free: 39.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03406/1.3, allocations: 17.54 MB / 0.6896 GB, free: 21.87 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/1.3, allocations: 84.19 kB / 0.6897 GB, free: 21.79 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002245/1.301, allocations: 184 kB / 0.6899 GB, free: 21.61 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01333/1.314, allocations: 4.543 MB / 0.6943 GB, free: 17.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007589/1.322, allocations: 2.133 MB / 0.6964 GB, free: 14.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03562/1.357, allocations: 25.38 MB / 0.7212 GB, free: 5.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008807/1.366, allocations: 0.5189 MB / 0.7217 GB, free: 4.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00214/1.368, allocations: 0.539 MB / 0.7222 GB, free: 4.211 MB / 494.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.007411/1.376, allocations: 3.123 MB / 0.7253 GB, free: 1.07 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/1.377, allocations: 0.5708 MB / 0.7258 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2772/1.654, allocations: 10.71 MB / 0.7363 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.165e-05/1.655, allocations: 38.98 kB / 0.7363 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.339e-05/1.655, allocations: 22.38 kB / 0.7364 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001098/1.655, allocations: 18.62 kB / 0.7364 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04704/1.702, allocations: 20.37 MB / 0.7563 GB, free: 153.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.935e-05/1.702, allocations: 7.625 kB / 0.7563 GB, free: 153.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003154/1.705, allocations: 0.533 MB / 0.7568 GB, free: 153.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01334/1.719, allocations: 4.179 MB / 0.7609 GB, free: 152.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009465/1.72, allocations: 63.67 kB / 0.7609 GB, free: 152.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02944/1.749, allocations: 23.14 MB / 0.7835 GB, free: 141.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/1.749, allocations: 0 / 0.7835 GB, free: 141.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02695/1.776, allocations: 15.62 MB / 0.7988 GB, free: 128.4 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003747/1.78, allocations: 1.181 MB / 0.7999 GB, free: 127.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00153/1.781, allocations: 56 kB / 0.8 GB, free: 127.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003561/1.785, allocations: 223.4 kB / 0.8002 GB, free: 127.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008369/1.786, allocations: 226.1 kB / 0.8004 GB, free: 127 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002712/1.786, allocations: 95.98 kB / 0.8005 GB, free: 126.9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005496/1.792, allocations: 3.806 MB / 0.8042 GB, free: 123.1 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.31e-07/1.792, allocations: 3.844 kB / 0.8042 GB, free: 123.1 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008849/1.8, allocations: 1.932 MB / 0.8061 GB, free: 121.2 MB / 0.4981 GB 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.0008529/1.801, allocations: 223.2 kB / 0.8063 GB, free: 120.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01429/1.816, allocations: 10.52 MB / 0.8166 GB, free: 110.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/1.816, allocations: 2.25 kB / 0.8166 GB, free: 110.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005401/1.821, allocations: 4.122 MB / 0.8206 GB, free: 106.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00519/1.826, allocations: 0.7865 MB / 0.8214 GB, free: 105.6 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02644/1.853, allocations: 16.87 MB / 0.8379 GB, free: 88.87 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005076/1.858, allocations: 4.835 MB / 0.8426 GB, free: 84.01 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001994/1.86, allocations: 451.4 kB / 0.843 GB, free: 83.57 MB / 0.4981 GB Notification: Performance of SimCode: time 1.232e-06/1.86, allocations: 0 / 0.843 GB, free: 83.57 MB / 0.4981 GB Notification: Performance of Templates: time 0.4187/2.279, allocations: 154.6 MB / 0.994 GB, free: 107 MB / 0.4981 GB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches