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.001678/0.001678, allocations: 110.3 kB / 18.45 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002398/0.002399, allocations: 210.8 kB / 19.4 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.377/2.377, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4511/0.4511, allocations: 46.09 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002548/0.002549, allocations: 75.88 kB / 482 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5867/0.5893, allocations: 62.43 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.043/0.6323, allocations: 17.26 MB / 0.5485 GB, free: 32 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02235/0.6547, allocations: 5.491 MB / 0.5539 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006884/0.6617, allocations: 115.6 kB / 0.554 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01513/0.6769, allocations: 4.345 MB / 0.5582 GB, free: 6.461 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01375/0.6907, allocations: 2.793 MB / 0.561 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006869/0.6976, allocations: 1.462 MB / 0.5624 GB, free: 2.195 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02053/0.7182, allocations: 8.638 MB / 0.5708 GB, free: 9.547 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01254/0.7308, allocations: 5.371 MB / 0.5761 GB, free: 4.098 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008265/0.7391, allocations: 2.652 MB / 0.5787 GB, free: 1.438 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01032/0.7495, allocations: 3.821 MB / 0.5824 GB, free: 13.61 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002948/0.7525, allocations: 0.5352 MB / 0.5829 GB, free: 13.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008526/0.7611, allocations: 1.607 MB / 0.5845 GB, free: 11.46 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007316/0.7684, allocations: 3.363 MB / 0.5878 GB, free: 8.09 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009588/0.7781, allocations: 3.62 MB / 0.5913 GB, free: 4.449 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02751/0.8056, allocations: 11.17 MB / 0.6022 GB, free: 9.23 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.8057, allocations: 0 / 0.6022 GB, free: 9.23 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.8057, allocations: 0 / 0.6022 GB, free: 9.23 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004016/0.8061, allocations: 0 / 0.6022 GB, free: 9.23 MB / 462.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.04052/0.8467, allocations: 8.394 MB / 0.6104 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001335/0.8469, allocations: 12.03 kB / 0.6104 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06872/0.9157, allocations: 3.713 MB / 0.614 GB, free: 13 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02957/0.9453, allocations: 5.307 MB / 0.6192 GB, free: 7.617 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005689/0.9459, allocations: 373.8 kB / 0.6196 GB, free: 7.25 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003078/0.949, allocations: 0.5153 MB / 0.6201 GB, free: 6.734 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06012/1.009, allocations: 16.24 MB / 0.6359 GB, free: 5.426 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004488/1.01, allocations: 83.36 kB / 0.636 GB, free: 5.344 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002178/1.012, allocations: 235.8 kB / 0.6362 GB, free: 5.113 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008764/1.021, allocations: 2.926 MB / 0.6391 GB, free: 2.176 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04927/1.07, allocations: 13.69 MB / 0.6525 GB, free: 4.461 MB / 0.4981 GB 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.1316/1.202, allocations: 64.56 MB / 0.7155 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4159/1.618, allocations: 7.837 MB / 0.7232 GB, free: 161.3 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009248/1.627, allocations: 4.281 MB / 0.7274 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04905/1.676, allocations: 19.39 MB / 0.7463 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.998e-05/1.676, allocations: 63.97 kB / 0.7464 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=284): time 9.408e-06/1.676, allocations: 0 / 0.7464 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=366): time 0.3112/1.987, allocations: 52.23 MB / 0.7974 GB, free: 98.52 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/1.988, allocations: 269.8 kB / 0.7976 GB, free: 98.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01361/2.001, allocations: 6.055 MB / 0.8035 GB, free: 92.24 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001215/2.002, allocations: 89.64 kB / 0.8036 GB, free: 92.15 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00475/2.007, allocations: 4.837 MB / 0.8083 GB, free: 87.65 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002494/2.01, allocations: 1.42 MB / 0.8097 GB, free: 86.25 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005652/2.015, allocations: 1.917 MB / 0.8116 GB, free: 84.32 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.154e-05/2.016, allocations: 305.1 kB / 0.8119 GB, free: 84.02 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01094/2.027, allocations: 4.204 MB / 0.816 GB, free: 79.81 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01464/2.041, allocations: 9.434 MB / 0.8252 GB, free: 67.83 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03246/2.074, allocations: 14.6 MB / 0.8395 GB, free: 50.68 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002725/2.074, allocations: 52.56 kB / 0.8395 GB, free: 50.62 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.07661/2.151, allocations: 17.58 MB / 0.8567 GB, free: 33 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001595/2.151, allocations: 80 kB / 0.8568 GB, free: 32.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002554/2.151, allocations: 184 kB / 0.8569 GB, free: 32.74 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02974/2.181, allocations: 4.577 MB / 0.8614 GB, free: 28.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01423/2.195, allocations: 2.129 MB / 0.8635 GB, free: 26.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06378/2.259, allocations: 25.46 MB / 0.8883 GB, free: 300 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01503/2.274, allocations: 0.5286 MB / 0.8889 GB, free: 15.77 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002729/2.277, allocations: 0.539 MB / 0.8894 GB, free: 15.23 MB / 0.5763 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.01097/2.288, allocations: 3.109 MB / 0.8924 GB, free: 12.11 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002287/2.29, allocations: 0.5937 MB / 0.893 GB, free: 11.51 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05148/2.342, allocations: 10.72 MB / 0.9035 GB, free: 0.7266 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001184/2.342, allocations: 19.94 kB / 0.9035 GB, free: 0.707 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/2.342, allocations: 0 / 0.9035 GB, free: 0.707 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002727/2.345, allocations: 0.618 MB / 0.9041 GB, free: 68 kB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002762/2.347, allocations: 64 kB / 0.9041 GB, free: 4 kB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007544/2.355, allocations: 231.7 kB / 0.9044 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002035/2.357, allocations: 297.9 kB / 0.9047 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.04938/2.407, allocations: 10.32 MB / 0.9147 GB, free: 5.184 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0341/2.441, allocations: 11.44 MB / 0.9259 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.009313/2.45, allocations: 3.217 MB / 0.9291 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.01216/2.462, allocations: 3.769 MB / 0.9327 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of Backend: time 1.182e-06/2.462, allocations: 0 / 0.9327 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.03122/2.494, allocations: 7.886 MB / 0.9404 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of SimCode: time 0.3765/2.87, allocations: 15.23 MB / 0.9553 GB, free: 207.4 MB / 0.6231 GB Notification: Performance of Templates: time 0.5108/3.381, allocations: 93.54 MB / 1.047 GB, free: 133.1 MB / 0.6231 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 -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