Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001229/0.001229, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2022/0.2022, allocations: 46.1 MB / 345 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 83.86 kB / 482 MB, free: 4.004 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3022, allocations: 62.43 MB / 0.5317 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01104/0.3132, allocations: 10.36 MB / 0.5418 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00831/0.3216, allocations: 3.884 MB / 0.5456 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001955/0.3236, allocations: 57.06 kB / 0.5456 GB, free: 2.422 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004215/0.3279, allocations: 2.065 MB / 0.5476 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004742/0.3326, allocations: 1.667 MB / 0.5493 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0017/0.3344, allocations: 0.7056 MB / 0.55 GB, free: 14.89 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005595/0.34, allocations: 4 MB / 0.5539 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003709/0.3437, allocations: 2.597 MB / 0.5564 GB, free: 8.234 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002236/0.346, allocations: 1.289 MB / 0.5577 GB, free: 6.941 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003512/0.3495, allocations: 1.85 MB / 0.5595 GB, free: 5.086 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000932/0.3505, allocations: 268 kB / 0.5597 GB, free: 4.824 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002636/0.3531, allocations: 1.178 MB / 0.5609 GB, free: 3.645 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00197/0.3551, allocations: 1.675 MB / 0.5625 GB, free: 1.965 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00287/0.358, allocations: 1.883 MB / 0.5643 GB, free: 72 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007319/0.3654, allocations: 6.157 MB / 0.5704 GB, free: 9.895 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.3654, allocations: 3.938 kB / 0.5704 GB, free: 9.891 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3654, allocations: 0 / 0.5704 GB, free: 9.891 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000193/0.3656, allocations: 0 / 0.5704 GB, free: 9.891 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.009939/0.3756, allocations: 4.206 MB / 0.5745 GB, free: 5.617 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.3756, allocations: 8.031 kB / 0.5745 GB, free: 5.609 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01669/0.3923, allocations: 2.433 MB / 0.5769 GB, free: 3.168 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005445/0.3978, allocations: 2.406 MB / 0.5792 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.398, allocations: 197.3 kB / 0.5794 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000973/0.399, allocations: 279.8 kB / 0.5797 GB, free: 236 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01535/0.4144, allocations: 8.583 MB / 0.588 GB, free: 7.016 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001415/0.4145, allocations: 47.58 kB / 0.5881 GB, free: 6.969 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000707/0.4153, allocations: 127.9 kB / 0.5882 GB, free: 6.844 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002919/0.4182, allocations: 1.735 MB / 0.5899 GB, free: 5.105 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01375/0.432, allocations: 7.292 MB / 0.597 GB, free: 13.8 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03981/0.4718, allocations: 34.02 MB / 0.6302 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009161/0.481, allocations: 3.502 MB / 0.6337 GB, free: 7.043 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00252/0.4836, allocations: 1.709 MB / 0.6353 GB, free: 5.324 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01241/0.496, allocations: 7.515 MB / 0.6427 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.655e-05/0.4961, allocations: 51.5 kB / 0.6427 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 4.679e-06/0.4961, allocations: 0 / 0.6427 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06722/0.5634, allocations: 19.62 MB / 0.6619 GB, free: 9.688 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.5635, allocations: 205.2 kB / 0.6621 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007167/0.5707, allocations: 3.73 MB / 0.6657 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005467/0.5713, allocations: 57.69 kB / 0.6658 GB, free: 5.66 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002567/0.5739, allocations: 2.795 MB / 0.6685 GB, free: 2.828 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001039/0.5749, allocations: 0.7174 MB / 0.6692 GB, free: 2.102 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002537/0.5775, allocations: 1.198 MB / 0.6704 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.5776, allocations: 301.1 kB / 0.6707 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003564/0.5812, allocations: 2.218 MB / 0.6728 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005769/0.587, allocations: 5.778 MB / 0.6785 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/0.5975, allocations: 8.595 MB / 0.6869 GB, free: 12.46 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001077/0.5976, allocations: 36 kB / 0.6869 GB, free: 12.43 MB / 0.545 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01931/0.6169, allocations: 9.192 MB / 0.6959 GB, free: 3.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002246/0.6172, allocations: 63.94 kB / 0.6959 GB, free: 3.168 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000235/0.6175, allocations: 128.1 kB / 0.6961 GB, free: 3.043 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006003/0.6235, allocations: 1.657 MB / 0.6977 GB, free: 1.383 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004722/0.6282, allocations: 1.322 MB / 0.699 GB, free: 60 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01543/0.6437, allocations: 9.921 MB / 0.7086 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004517/0.6483, allocations: 315.4 kB / 0.7089 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/0.6494, allocations: 360 kB / 0.7093 GB, free: 5.324 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (714): * Single equations (assignments): 710 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003897/0.6533, allocations: 1.908 MB / 0.7112 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008158/0.6541, allocations: 323.8 kB / 0.7115 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00977/0.6639, allocations: 4.153 MB / 0.7155 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.634e-05/0.664, allocations: 20 kB / 0.7155 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.411e-05/0.6641, allocations: 12 kB / 0.7156 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.163e-05/0.6641, allocations: 11.97 kB / 0.7156 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01897/0.6831, allocations: 8.506 MB / 0.7239 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.779e-05/0.6831, allocations: 480 / 0.7239 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/0.6845, allocations: 263.6 kB / 0.7241 GB, free: 6.039 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005204/0.6897, allocations: 1.429 MB / 0.7255 GB, free: 4.605 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002725/0.69, allocations: 31.98 kB / 0.7255 GB, free: 4.574 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3219/1.012, allocations: 9.205 MB / 0.7345 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.012, allocations: 6.641 kB / 0.7345 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/1.024, allocations: 6.74 MB / 0.7411 GB, free: 173.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/1.026, allocations: 375.7 kB / 0.7415 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006247/1.026, allocations: 31.03 kB / 0.7415 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001483/1.028, allocations: 96.72 kB / 0.7416 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004168/1.028, allocations: 113.5 kB / 0.7417 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/1.028, allocations: 49.59 kB / 0.7418 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003533/1.032, allocations: 2.316 MB / 0.744 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.61e-07/1.032, allocations: 2.297 kB / 0.744 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004427/1.036, allocations: 0.9773 MB / 0.745 GB, free: 172.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (130): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0004432/1.037, allocations: 158.8 kB / 0.7451 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006712/1.043, allocations: 5.444 MB / 0.7504 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/1.043, allocations: 0 / 0.7504 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002075/1.046, allocations: 1.796 MB / 0.7522 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002211/1.048, allocations: 395.1 kB / 0.7526 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/1.06, allocations: 8.916 MB / 0.7613 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002362/1.062, allocations: 2.953 MB / 0.7642 GB, free: 160 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008493/1.063, allocations: 267.2 kB / 0.7644 GB, free: 159.7 MB / 0.5762 GB Notification: Performance of SimCode: time 6.62e-07/1.063, allocations: 0 / 0.7644 GB, free: 159.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.07524/1.138, allocations: 69.59 MB / 0.8324 GB, free: 90.27 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches