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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001207/0.001206, allocations: 196.3 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008651/0.0008651, allocations: 91.72 kB / 292.1 MB, free: 5.914 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2077/0.2077, allocations: 45.14 MB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.907e-05/2.907e-05, allocations: 4 kB / 460.4 MB, free: 70.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1423, allocations: 63.24 MB / 0.5114 GB, free: 6.816 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4744/0.6168, allocations: 115.4 MB / 0.624 GB, free: 10.92 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.6171, allocations: 79.95 kB / 0.6241 GB, free: 10.88 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7089/1.326, allocations: 143.2 MB / 0.7639 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.456e-06/1.326, allocations: 0 / 0.7639 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.001067/1.327, allocations: 136.6 kB / 0.764 GB, free: 109.9 MB / 0.5261 GB 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.03023/1.357, allocations: 7.074 MB / 0.771 GB, free: 107.4 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/1.357, allocations: 9.312 kB / 0.771 GB, free: 107.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03313/1.391, allocations: 7.564 MB / 0.7784 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0239/1.414, allocations: 8.308 MB / 0.7865 GB, free: 106 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006198/1.415, allocations: 488.5 kB / 0.7869 GB, free: 106 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00398/1.419, allocations: 0.6597 MB / 0.7876 GB, free: 106 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04323/1.462, allocations: 16.58 MB / 0.8038 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006282/1.463, allocations: 95.67 kB / 0.8039 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004218/1.467, allocations: 313.2 kB / 0.8042 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002672/1.47, allocations: 1.581 MB / 0.8057 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03373/1.504, allocations: 13.49 MB / 0.8189 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0849/1.589, allocations: 74.25 MB / 0.8914 GB, free: 43.92 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02116/1.61, allocations: 7.656 MB / 0.8989 GB, free: 37.55 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005461/1.615, allocations: 3.915 MB / 0.9027 GB, free: 33.94 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02959/1.645, allocations: 18.55 MB / 0.9208 GB, free: 17.47 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.379e-05/1.645, allocations: 72.5 kB / 0.9209 GB, free: 17.39 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 7.424e-06/1.645, allocations: 0 / 0.9209 GB, free: 17.39 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.4519/2.097, allocations: 38.59 MB / 0.9586 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/2.097, allocations: 271.1 kB / 0.9588 GB, free: 116.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01505/2.112, allocations: 5.275 MB / 0.964 GB, free: 116.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0009493/2.113, allocations: 80.81 kB / 0.964 GB, free: 116.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.004278/2.118, allocations: 4.759 MB / 0.9687 GB, free: 115.2 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002038/2.12, allocations: 1.342 MB / 0.97 GB, free: 114.6 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008678/2.121, allocations: 183.9 kB / 0.9702 GB, free: 114.6 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0006067/2.121, allocations: 0.691 MB / 0.9708 GB, free: 114.3 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006774/2.128, allocations: 3.646 MB / 0.9744 GB, free: 114.2 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009934/2.138, allocations: 8.835 MB / 0.983 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008367/2.146, allocations: 5.556 MB / 0.9885 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001842/2.147, allocations: 51.12 kB / 0.9885 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.03343/2.18, allocations: 15.85 MB / 1.004 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002896/2.18, allocations: 82.31 kB / 1.004 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003723/2.181, allocations: 183.6 kB / 1.004 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01273/2.194, allocations: 4.026 MB / 1.008 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007172/2.201, allocations: 2.043 MB / 1.01 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0282/2.229, allocations: 20.8 MB / 1.03 GB, free: 97.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009062/2.238, allocations: 0.539 MB / 1.031 GB, free: 97.19 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002249/2.24, allocations: 0.5265 MB / 1.032 GB, free: 97.12 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1081): * Single equations (assignments): 1076 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003336/2.244, allocations: 0.8109 MB / 1.032 GB, free: 96.51 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001772/2.245, allocations: 0.5741 MB / 1.033 GB, free: 96.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02122/2.267, allocations: 9.429 MB / 1.042 GB, free: 93.21 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.556e-05/2.267, allocations: 40.16 kB / 1.042 GB, free: 93.21 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.163e-05/2.267, allocations: 15.53 kB / 1.042 GB, free: 93.21 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.656e-05/2.267, allocations: 20.86 kB / 1.042 GB, free: 93.21 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04005/2.307, allocations: 18.87 MB / 1.061 GB, free: 86.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-05/2.307, allocations: 3.562 kB / 1.061 GB, free: 86.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00262/2.31, allocations: 0.4946 MB / 1.061 GB, free: 86.71 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01124/2.321, allocations: 3.629 MB / 1.065 GB, free: 85.14 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008108/2.322, allocations: 63.61 kB / 1.065 GB, free: 85.08 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02586/2.348, allocations: 18.71 MB / 1.083 GB, free: 69.03 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/2.348, allocations: 0 / 1.083 GB, free: 69.03 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02553/2.373, allocations: 13.9 MB / 1.097 GB, free: 57.45 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002048/2.375, allocations: 0.5793 MB / 1.097 GB, free: 56.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002292/2.378, allocations: 56 kB / 1.097 GB, free: 56.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004245/2.382, allocations: 232.7 kB / 1.097 GB, free: 56.66 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001177/2.383, allocations: 229.1 kB / 1.098 GB, free: 56.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005816/2.384, allocations: 87.38 kB / 1.098 GB, free: 56.43 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.007651/2.392, allocations: 3.676 MB / 1.101 GB, free: 53.19 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.41e-07/2.392, allocations: 0 / 1.101 GB, free: 53.19 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01122/2.403, allocations: 1.839 MB / 1.103 GB, free: 51.36 MB / 0.5417 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001268/2.404, allocations: 243.9 kB / 1.103 GB, free: 51.14 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01759/2.422, allocations: 9.386 MB / 1.112 GB, free: 42.55 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/2.422, allocations: 4 kB / 1.112 GB, free: 42.54 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005774/2.428, allocations: 3.678 MB / 1.116 GB, free: 39.18 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005087/2.433, allocations: 0.7227 MB / 1.117 GB, free: 38.57 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03021/2.463, allocations: 13.06 MB / 1.13 GB, free: 26.49 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008331/2.471, allocations: 4.986 MB / 1.134 GB, free: 21.51 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007896/2.479, allocations: 2.788 MB / 1.137 GB, free: 18.74 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/2.481, allocations: 375.4 kB / 1.137 GB, free: 18.38 MB / 0.5417 GB Notification: Performance of SimCode: time 3.056e-06/2.481, allocations: 0 / 1.137 GB, free: 18.38 MB / 0.5417 GB Notification: Performance of Templates: time 0.4421/2.923, allocations: 74.36 MB / 1.21 GB, free: 107.2 MB / 0.5573 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","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches