Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001167/0.001167, allocations: 115.8 kB / 18.4 MB, free: 4.754 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: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1984/0.1984, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 75.88 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.129, allocations: 62.45 MB / 481.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.01681/0.1458, allocations: 17.24 MB / 498.7 MB, free: 3.203 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01305/0.1589, allocations: 5.493 MB / 0.4924 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004535/0.1635, allocations: 119.6 kB / 0.4925 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007787/0.1714, allocations: 4.345 MB / 0.4967 GB, free: 9.219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00757/0.179, allocations: 2.699 MB / 0.4994 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003711/0.1827, allocations: 1.462 MB / 0.5008 GB, free: 5.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2932/0.476, allocations: 8.629 MB / 0.5092 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01026/0.4863, allocations: 5.365 MB / 0.5145 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007291/0.4936, allocations: 2.663 MB / 0.5171 GB, free: 13.49 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008442/0.5021, allocations: 3.809 MB / 0.5208 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003018/0.5052, allocations: 0.537 MB / 0.5213 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005351/0.5105, allocations: 1.615 MB / 0.5229 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005325/0.5159, allocations: 3.296 MB / 0.5261 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007407/0.5233, allocations: 3.619 MB / 0.5296 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01515/0.5385, allocations: 11.13 MB / 0.5405 GB, free: 3.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.5385, allocations: 0 / 0.5405 GB, free: 3.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.5386, allocations: 0 / 0.5405 GB, free: 3.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004617/0.539, allocations: 0 / 0.5405 GB, free: 3.539 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02214/0.5612, allocations: 8.18 MB / 0.5485 GB, free: 13.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.5612, allocations: 12.03 kB / 0.5485 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02704/0.5883, allocations: 3.672 MB / 0.5521 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01317/0.6015, allocations: 5.286 MB / 0.5573 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000322/0.6019, allocations: 369.4 kB / 0.5576 GB, free: 4.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002369/0.6042, allocations: 0.5156 MB / 0.5581 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03441/0.6386, allocations: 16.25 MB / 0.574 GB, free: 2.695 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002743/0.639, allocations: 82.27 kB / 0.5741 GB, free: 2.645 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008479/0.6398, allocations: 231 kB / 0.5743 GB, free: 2.473 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004397/0.6442, allocations: 2.922 MB / 0.5771 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02765/0.6719, allocations: 13.7 MB / 0.5905 GB, free: 2.152 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.08708/0.759, allocations: 64.45 MB / 0.6534 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02194/0.781, allocations: 7.847 MB / 0.6611 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005735/0.7868, allocations: 4.275 MB / 0.6653 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03169/0.8185, allocations: 19.37 MB / 0.6842 GB, free: 488 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.681e-05/0.8186, allocations: 60.56 kB / 0.6843 GB, free: 416 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=284): time 5.4e-06/0.8186, allocations: 4 kB / 0.6843 GB, free: 412 kB / 0.5137 GB Notification: Performance of matching and sorting (n=366): time 0.4214/1.24, allocations: 51.84 MB / 0.7349 GB, free: 184.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.666e-05/1.24, allocations: 274.6 kB / 0.7351 GB, free: 184.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01011/1.25, allocations: 6.05 MB / 0.7411 GB, free: 182.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001038/1.251, allocations: 80.36 kB / 0.7411 GB, free: 182.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003015/1.254, allocations: 4.66 MB / 0.7457 GB, free: 178.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001821/1.256, allocations: 1.351 MB / 0.747 GB, free: 177.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00252/1.259, allocations: 1.904 MB / 0.7489 GB, free: 176.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.393e-05/1.259, allocations: 301.1 kB / 0.7492 GB, free: 176.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005286/1.264, allocations: 4.216 MB / 0.7533 GB, free: 175 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008101/1.272, allocations: 9.434 MB / 0.7625 GB, free: 166.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01524/1.287, allocations: 14.58 MB / 0.7767 GB, free: 155 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001514/1.288, allocations: 55.94 kB / 0.7768 GB, free: 154.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03236/1.32, allocations: 17.56 MB / 0.7939 GB, free: 137.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.659e-05/1.32, allocations: 84 kB / 0.794 GB, free: 137.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001577/1.32, allocations: 180 kB / 0.7942 GB, free: 137.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01279/1.333, allocations: 4.579 MB / 0.7986 GB, free: 133 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006473/1.34, allocations: 2.125 MB / 0.8007 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0284/1.368, allocations: 25.43 MB / 0.8256 GB, free: 105.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007833/1.376, allocations: 0.5344 MB / 0.8261 GB, free: 104.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00139/1.377, allocations: 0.5351 MB / 0.8266 GB, free: 104.2 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 (1130): * Single equations (assignments): 1125 * 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 {(1,45,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008381/1.386, allocations: 3.121 MB / 0.8296 GB, free: 101 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001732/1.387, allocations: 0.5669 MB / 0.8302 GB, free: 100.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02001/1.407, allocations: 10.7 MB / 0.8407 GB, free: 89.68 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.342e-05/1.408, allocations: 46.2 kB / 0.8407 GB, free: 89.64 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.569e-05/1.408, allocations: 20 kB / 0.8407 GB, free: 89.62 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.179e-05/1.408, allocations: 15.94 kB / 0.8407 GB, free: 89.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03721/1.445, allocations: 20.31 MB / 0.8606 GB, free: 69.28 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.252e-05/1.445, allocations: 7.078 kB / 0.8606 GB, free: 69.28 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002893/1.448, allocations: 0.5343 MB / 0.8611 GB, free: 68.74 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01223/1.46, allocations: 4.227 MB / 0.8652 GB, free: 64.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008893/1.461, allocations: 63.98 kB / 0.8653 GB, free: 64.44 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02788/1.489, allocations: 23.17 MB / 0.8879 GB, free: 40.98 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.489, allocations: 0 / 0.8879 GB, free: 40.98 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0264/1.515, allocations: 15.6 MB / 0.9032 GB, free: 25.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001971/1.517, allocations: 0.5835 MB / 0.9037 GB, free: 24.69 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001454/1.519, allocations: 59.94 kB / 0.9038 GB, free: 24.63 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003097/1.522, allocations: 241.4 kB / 0.904 GB, free: 24.39 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007963/1.523, allocations: 218.2 kB / 0.9042 GB, free: 24.18 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002784/1.523, allocations: 95.98 kB / 0.9043 GB, free: 24.09 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005364/1.528, allocations: 3.765 MB / 0.908 GB, free: 20.32 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.51e-07/1.528, allocations: 0 / 0.908 GB, free: 20.32 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009559/1.538, allocations: 1.903 MB / 0.9098 GB, free: 18.43 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 (266): * Single equations (assignments): 261 * 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.001095/1.539, allocations: 215.9 kB / 0.9101 GB, free: 18.22 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2531/1.792, allocations: 10.46 MB / 0.9203 GB, free: 179 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/1.792, allocations: 0 / 0.9203 GB, free: 179 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007873/1.8, allocations: 4.101 MB / 0.9243 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.005723/1.806, allocations: 0.7719 MB / 0.925 GB, free: 177.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03206/1.838, allocations: 16.18 MB / 0.9408 GB, free: 170.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005068/1.843, allocations: 4.853 MB / 0.9456 GB, free: 169.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005686/1.849, allocations: 2.772 MB / 0.9483 GB, free: 169.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001157/1.85, allocations: 372.5 kB / 0.9486 GB, free: 169.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.322e-06/1.85, allocations: 0 / 0.9486 GB, free: 169.1 MB / 0.545 GB Notification: Performance of Templates: time 0.112/1.962, allocations: 76.82 MB / 1.024 GB, free: 99.89 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches