Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001393/0.001394, allocations: 109.8 kB / 18.3 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001379/0.001379, allocations: 207.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 247.5 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.227/0.227, allocations: 46.11 MB / 344.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002171/0.002171, allocations: 73.91 kB / 418.3 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1196, allocations: 62.46 MB / 480.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.02039/0.14, allocations: 17.25 MB / 498 MB, free: 3.914 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01408/0.1541, allocations: 5.498 MB / 0.4917 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00481/0.159, allocations: 119.6 kB / 0.4918 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009159/0.1682, allocations: 4.345 MB / 0.4961 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007945/0.1762, allocations: 2.704 MB / 0.4987 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003798/0.1801, allocations: 1.459 MB / 0.5001 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2461/0.4262, allocations: 8.644 MB / 0.5086 GB, free: 13.51 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008677/0.4349, allocations: 5.37 MB / 0.5138 GB, free: 12.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00595/0.4409, allocations: 2.664 MB / 0.5164 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007552/0.4485, allocations: 3.826 MB / 0.5202 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002921/0.4514, allocations: 0.5396 MB / 0.5207 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006112/0.4576, allocations: 1.612 MB / 0.5223 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005489/0.4631, allocations: 3.302 MB / 0.5255 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007319/0.4705, allocations: 3.633 MB / 0.529 GB, free: 9.258 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01284/0.4833, allocations: 10.81 MB / 0.5396 GB, free: 3.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.4834, allocations: 0 / 0.5396 GB, free: 3.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4834, allocations: 0 / 0.5396 GB, free: 3.465 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004608/0.4839, allocations: 4 kB / 0.5396 GB, free: 3.461 MB / 382.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.02154/0.5054, allocations: 8.187 MB / 0.5476 GB, free: 13.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.5055, allocations: 8.031 kB / 0.5476 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.031/0.5365, allocations: 3.685 MB / 0.5512 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01365/0.5502, allocations: 5.177 MB / 0.5563 GB, free: 5.145 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003887/0.5506, allocations: 368 kB / 0.5566 GB, free: 4.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002164/0.5528, allocations: 0.5116 MB / 0.5571 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0356/0.5884, allocations: 16.26 MB / 0.573 GB, free: 3.344 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002891/0.5887, allocations: 82.08 kB / 0.5731 GB, free: 3.293 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001131/0.5899, allocations: 243.2 kB / 0.5733 GB, free: 3.109 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005305/0.5952, allocations: 2.914 MB / 0.5761 GB, free: 240 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03125/0.6265, allocations: 13.73 MB / 0.5896 GB, free: 2.773 MB / 430.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.09976/0.7263, allocations: 64.81 MB / 0.6528 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02435/0.7507, allocations: 7.881 MB / 0.6605 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00723/0.758, allocations: 4.349 MB / 0.6648 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03823/0.7962, allocations: 19.46 MB / 0.6838 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.344e-05/0.7964, allocations: 60.56 kB / 0.6838 GB, free: 488 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=290): time 6.131e-06/0.7964, allocations: 0 / 0.6838 GB, free: 488 kB / 0.5137 GB Notification: Performance of matching and sorting (n=372): time 0.4279/1.224, allocations: 49.83 MB / 0.7325 GB, free: 185.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/1.224, allocations: 270.6 kB / 0.7328 GB, free: 184.8 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01051/1.235, allocations: 6.047 MB / 0.7387 GB, free: 182.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009881/1.236, allocations: 86.25 kB / 0.7388 GB, free: 182.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002894/1.239, allocations: 4.667 MB / 0.7433 GB, free: 179 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001923/1.241, allocations: 1.369 MB / 0.7446 GB, free: 178 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003216/1.244, allocations: 1.912 MB / 0.7465 GB, free: 177.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.234e-05/1.244, allocations: 301.1 kB / 0.7468 GB, free: 176.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006083/1.25, allocations: 4.234 MB / 0.7509 GB, free: 175.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01058/1.261, allocations: 9.462 MB / 0.7602 GB, free: 167 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01649/1.277, allocations: 14.65 MB / 0.7745 GB, free: 155.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002026/1.278, allocations: 53.22 kB / 0.7745 GB, free: 155.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03635/1.314, allocations: 17.56 MB / 0.7917 GB, free: 139.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/1.314, allocations: 84 kB / 0.7918 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002155/1.314, allocations: 181.5 kB / 0.7919 GB, free: 139.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01345/1.328, allocations: 4.561 MB / 0.7964 GB, free: 134.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007352/1.335, allocations: 2.129 MB / 0.7985 GB, free: 132.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03082/1.366, allocations: 25.38 MB / 0.8232 GB, free: 107.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008734/1.375, allocations: 0.5381 MB / 0.8238 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00204/1.377, allocations: 0.5434 MB / 0.8243 GB, free: 106.1 MB / 0.545 GB 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.006947/1.384, allocations: 3.12 MB / 0.8274 GB, free: 102.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001812/1.386, allocations: 0.5592 MB / 0.8279 GB, free: 102.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02275/1.409, allocations: 10.72 MB / 0.8384 GB, free: 91.57 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-05/1.409, allocations: 49.31 kB / 0.8384 GB, free: 91.53 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.712e-05/1.409, allocations: 16 kB / 0.8384 GB, free: 91.51 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.031e-05/1.409, allocations: 19.92 kB / 0.8384 GB, free: 91.49 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04068/1.45, allocations: 20.51 MB / 0.8585 GB, free: 70.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.674e-05/1.45, allocations: 4.797 kB / 0.8585 GB, free: 70.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002902/1.453, allocations: 0.5382 MB / 0.859 GB, free: 70.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01253/1.465, allocations: 4.192 MB / 0.8631 GB, free: 66.14 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009898/1.466, allocations: 67.73 kB / 0.8632 GB, free: 66.08 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02829/1.494, allocations: 23.13 MB / 0.8858 GB, free: 42.67 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.494, allocations: 4 kB / 0.8858 GB, free: 42.67 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02678/1.521, allocations: 15.65 MB / 0.901 GB, free: 26.94 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001971/1.523, allocations: 0.5944 MB / 0.9016 GB, free: 26.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002168/1.525, allocations: 63.69 kB / 0.9017 GB, free: 26.26 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004185/1.53, allocations: 227.6 kB / 0.9019 GB, free: 26.04 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001205/1.531, allocations: 222.2 kB / 0.9021 GB, free: 25.82 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003139/1.531, allocations: 95.98 kB / 0.9022 GB, free: 25.73 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006076/1.537, allocations: 3.765 MB / 0.9059 GB, free: 21.96 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.31e-07/1.537, allocations: 4 kB / 0.9059 GB, free: 21.96 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01127/1.549, allocations: 1.904 MB / 0.9077 GB, free: 20.06 MB / 0.545 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.001189/1.55, allocations: 210.3 kB / 0.9079 GB, free: 19.86 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.241/1.791, allocations: 15.44 MB / 0.923 GB, free: 179.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/1.791, allocations: 1.094 kB / 0.923 GB, free: 179.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007615/1.799, allocations: 4.125 MB / 0.9271 GB, free: 177.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006841/1.805, allocations: 0.7751 MB / 0.9278 GB, free: 177.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03013/1.836, allocations: 17.03 MB / 0.9444 GB, free: 170.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006756/1.842, allocations: 4.828 MB / 0.9492 GB, free: 168.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/1.844, allocations: 448.5 kB / 0.9496 GB, free: 168.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.122e-06/1.844, allocations: 0 / 0.9496 GB, free: 168.8 MB / 0.545 GB Notification: Performance of Templates: time 0.1664/2.011, allocations: 152.9 MB / 1.099 GB, free: 22.35 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches