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.001229/0.001229, allocations: 121.6 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001749/0.001748, allocations: 203.9 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.9 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.2124/0.2124, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 87.84 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4276/0.429, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.0193/0.4484, allocations: 17.25 MB / 0.5479 GB, free: 52 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01574/0.4642, allocations: 5.495 MB / 0.5532 GB, free: 10.94 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004948/0.4691, allocations: 115.6 kB / 0.5533 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008122/0.4773, allocations: 4.349 MB / 0.5576 GB, free: 6.461 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009132/0.4865, allocations: 2.778 MB / 0.5603 GB, free: 3.672 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003712/0.4902, allocations: 1.462 MB / 0.5617 GB, free: 2.207 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01285/0.5031, allocations: 8.642 MB / 0.5702 GB, free: 9.551 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01019/0.5133, allocations: 5.365 MB / 0.5754 GB, free: 4.109 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00737/0.5207, allocations: 2.652 MB / 0.578 GB, free: 1.449 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008253/0.529, allocations: 3.817 MB / 0.5817 GB, free: 13.62 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002661/0.5317, allocations: 0.5352 MB / 0.5822 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005908/0.5377, allocations: 1.615 MB / 0.5838 GB, free: 11.47 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004901/0.5426, allocations: 3.355 MB / 0.5871 GB, free: 8.105 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008604/0.5512, allocations: 3.624 MB / 0.5906 GB, free: 4.461 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01989/0.5712, allocations: 11.12 MB / 0.6015 GB, free: 9.297 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.07e-05/0.5712, allocations: 3.984 kB / 0.6015 GB, free: 9.293 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5713, allocations: 0 / 0.6015 GB, free: 9.293 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004537/0.5717, allocations: 0 / 0.6015 GB, free: 9.293 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.02377/0.5955, allocations: 8.191 MB / 0.6095 GB, free: 1.016 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.5956, allocations: 12.03 kB / 0.6095 GB, free: 1.004 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02879/0.6244, allocations: 3.666 MB / 0.6131 GB, free: 13.32 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01484/0.6393, allocations: 5.289 MB / 0.6182 GB, free: 7.953 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000315/0.6396, allocations: 369.8 kB / 0.6186 GB, free: 7.59 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001962/0.6416, allocations: 0.5152 MB / 0.6191 GB, free: 7.074 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0371/0.6787, allocations: 16.25 MB / 0.635 GB, free: 5.758 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003185/0.6791, allocations: 79.3 kB / 0.635 GB, free: 5.68 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001204/0.6803, allocations: 231.8 kB / 0.6353 GB, free: 5.453 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005087/0.6854, allocations: 2.923 MB / 0.6381 GB, free: 2.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03127/0.7167, allocations: 13.7 MB / 0.6515 GB, free: 4.797 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.09242/0.8091, allocations: 64.46 MB / 0.7144 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3648/1.174, allocations: 7.823 MB / 0.7221 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006344/1.18, allocations: 4.274 MB / 0.7263 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02495/1.205, allocations: 19.38 MB / 0.7452 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.634e-05/1.205, allocations: 67.72 kB / 0.7452 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=284): time 5.561e-06/1.206, allocations: 0 / 0.7452 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=366): time 0.1589/1.364, allocations: 51.86 MB / 0.7959 GB, free: 99.15 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/1.365, allocations: 273.7 kB / 0.7962 GB, free: 98.82 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007915/1.373, allocations: 6.039 MB / 0.802 GB, free: 92.77 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001093/1.374, allocations: 77.7 kB / 0.8021 GB, free: 92.69 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002445/1.376, allocations: 4.671 MB / 0.8067 GB, free: 88.02 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001541/1.378, allocations: 1.355 MB / 0.808 GB, free: 86.68 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002441/1.38, allocations: 1.904 MB / 0.8099 GB, free: 84.76 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.542e-05/1.38, allocations: 305.1 kB / 0.8102 GB, free: 84.46 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004987/1.385, allocations: 4.204 MB / 0.8143 GB, free: 80.25 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007771/1.393, allocations: 9.438 MB / 0.8235 GB, free: 68.27 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01717/1.41, allocations: 14.59 MB / 0.8377 GB, free: 51.12 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002264/1.41, allocations: 56 kB / 0.8378 GB, free: 51.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03729/1.448, allocations: 17.54 MB / 0.8549 GB, free: 33.47 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/1.448, allocations: 84 kB / 0.855 GB, free: 33.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001534/1.448, allocations: 180 kB / 0.8552 GB, free: 33.21 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01321/1.461, allocations: 4.581 MB / 0.8596 GB, free: 28.62 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007198/1.468, allocations: 2.121 MB / 0.8617 GB, free: 26.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03138/1.5, allocations: 25.44 MB / 0.8866 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01142/1.511, allocations: 0.5266 MB / 0.8871 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002773/1.514, allocations: 0.5429 MB / 0.8876 GB, free: 15.71 MB / 0.5762 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.00848/1.523, allocations: 3.107 MB / 0.8906 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001822/1.525, allocations: 0.5669 MB / 0.8912 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02394/1.548, allocations: 10.71 MB / 0.9017 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.788e-05/1.549, allocations: 40 kB / 0.9017 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.126e-05/1.549, allocations: 16 kB / 0.9017 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.127e-05/1.549, allocations: 19.92 kB / 0.9017 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04308/1.592, allocations: 20.32 MB / 0.9216 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-05/1.592, allocations: 3.938 kB / 0.9216 GB, free: 12.81 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003745/1.596, allocations: 0.5344 MB / 0.9221 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0144/1.61, allocations: 4.23 MB / 0.9262 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009495/1.611, allocations: 59.98 kB / 0.9263 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4196/2.031, allocations: 23.17 MB / 0.9489 GB, free: 202.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/2.031, allocations: 2.062 kB / 0.9489 GB, free: 202.8 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03498/2.066, allocations: 15.61 MB / 0.9642 GB, free: 200.1 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001946/2.068, allocations: 0.5853 MB / 0.9647 GB, free: 200 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001742/2.07, allocations: 55.56 kB / 0.9648 GB, free: 200 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003263/2.073, allocations: 226.3 kB / 0.965 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009676/2.074, allocations: 219.9 kB / 0.9652 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002952/2.074, allocations: 96.52 kB / 0.9653 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.005722/2.08, allocations: 3.773 MB / 0.969 GB, free: 198.6 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.162e-06/2.08, allocations: 0 / 0.969 GB, free: 198.6 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.008877/2.089, allocations: 1.901 MB / 0.9708 GB, free: 198.4 MB / 0.6231 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.0007434/2.09, allocations: 207.6 kB / 0.971 GB, free: 198.3 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01623/2.106, allocations: 10.48 MB / 0.9813 GB, free: 194.4 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/2.106, allocations: 0 / 0.9813 GB, free: 194.4 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005487/2.111, allocations: 4.102 MB / 0.9853 GB, free: 192.6 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004595/2.116, allocations: 0.7708 MB / 0.986 GB, free: 191.9 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02801/2.144, allocations: 16.18 MB / 1.002 GB, free: 177.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005476/2.15, allocations: 4.843 MB / 1.007 GB, free: 173.4 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006232/2.156, allocations: 2.776 MB / 1.009 GB, free: 170.8 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00133/2.157, allocations: 379.4 kB / 1.01 GB, free: 170.4 MB / 0.6231 GB Notification: Performance of SimCode: time 1.273e-06/2.157, allocations: 0 / 1.01 GB, free: 170.4 MB / 0.6231 GB Notification: Performance of Templates: time 0.1218/2.279, allocations: 79.82 MB / 1.088 GB, free: 91.01 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches