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.001087/0.001087, allocations: 198.2 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 227.2 MB / 245 MB, free: 5.918 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008663/0.0008664, allocations: 110.9 kB / 297.3 MB, free: 5.953 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3209/0.3209, allocations: 45.23 MB / 394.7 MB, free: 31.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002791, allocations: 12 kB / 468.4 MB, free: 7.719 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3092, allocations: 63.25 MB / 0.5192 GB, free: 37.48 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1417/0.4509, allocations: 115.4 MB / 0.6319 GB, free: 3.953 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/0.4512, allocations: 75.97 kB / 0.632 GB, free: 3.879 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5735/1.025, allocations: 143.1 MB / 0.7717 GB, free: 71.46 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.406e-06/1.025, allocations: 4 kB / 0.7717 GB, free: 71.46 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005049/1.025, allocations: 128 kB / 0.7719 GB, free: 71.33 MB / 490.7 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.02247/1.048, allocations: 7.668 MB / 0.7794 GB, free: 63.58 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/1.048, allocations: 12.02 kB / 0.7794 GB, free: 63.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02786/1.076, allocations: 7.545 MB / 0.7867 GB, free: 56 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02029/1.096, allocations: 8.349 MB / 0.7949 GB, free: 47.57 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000441/1.096, allocations: 484.9 kB / 0.7953 GB, free: 47.09 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002951/1.099, allocations: 0.6597 MB / 0.796 GB, free: 46.43 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03785/1.137, allocations: 16.73 MB / 0.8123 GB, free: 28.24 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005253/1.138, allocations: 99.08 kB / 0.8124 GB, free: 28.14 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00276/1.141, allocations: 315.8 kB / 0.8127 GB, free: 27.83 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00222/1.143, allocations: 1.58 MB / 0.8143 GB, free: 26.25 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02699/1.17, allocations: 13.74 MB / 0.8277 GB, free: 12.48 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3847/1.555, allocations: 74.25 MB / 0.9002 GB, free: 71.64 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0203/1.575, allocations: 7.689 MB / 0.9077 GB, free: 70.95 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0284/1.603, allocations: 18.58 MB / 0.9259 GB, free: 66.56 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.299e-05/1.604, allocations: 72.44 kB / 0.9259 GB, free: 66.52 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 6.392e-06/1.604, allocations: 1 kB / 0.9259 GB, free: 66.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.1513/1.755, allocations: 48.19 MB / 0.973 GB, free: 57.48 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.982e-05/1.755, allocations: 273.2 kB / 0.9732 GB, free: 57.19 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006909/1.762, allocations: 5.356 MB / 0.9785 GB, free: 55.39 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006069/1.762, allocations: 75.77 kB / 0.9785 GB, free: 55.32 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002336/1.765, allocations: 4.757 MB / 0.9832 GB, free: 51.66 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001243/1.766, allocations: 1.351 MB / 0.9845 GB, free: 50.67 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003989/1.766, allocations: 179.6 kB / 0.9847 GB, free: 50.53 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003338/1.767, allocations: 0.6961 MB / 0.9854 GB, free: 50.06 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004466/1.771, allocations: 3.75 MB / 0.989 GB, free: 47.13 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006176/1.777, allocations: 8.938 MB / 0.9978 GB, free: 36.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006283/1.784, allocations: 5.616 MB / 1.003 GB, free: 31.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.316e-05/1.784, allocations: 52 kB / 1.003 GB, free: 31.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.02687/1.811, allocations: 16.1 MB / 1.019 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.945e-05/1.811, allocations: 87.27 kB / 1.019 GB, free: 18.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001311/1.811, allocations: 188 kB / 1.019 GB, free: 18.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01192/1.823, allocations: 4.08 MB / 1.023 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006067/1.829, allocations: 2.032 MB / 1.025 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02843/1.857, allocations: 21.75 MB / 1.046 GB, free: 9.355 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007783/1.865, allocations: 0.5453 MB / 1.047 GB, free: 8.812 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00178/1.867, allocations: 0.5269 MB / 1.048 GB, free: 8.289 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 () * Number of clocked 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.007269/1.874, allocations: 3.109 MB / 1.051 GB, free: 5.164 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/1.876, allocations: 0.5708 MB / 1.051 GB, free: 4.586 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02162/1.897, allocations: 9.549 MB / 1.06 GB, free: 10.98 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.808e-05/1.898, allocations: 41.62 kB / 1.06 GB, free: 10.94 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.091e-05/1.898, allocations: 19.94 kB / 1.061 GB, free: 10.93 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.765e-05/1.898, allocations: 23.92 kB / 1.061 GB, free: 10.9 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04177/1.939, allocations: 18.97 MB / 1.079 GB, free: 7.832 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.751e-05/1.939, allocations: 3.953 kB / 1.079 GB, free: 7.828 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002645/1.942, allocations: 0.4992 MB / 1.08 GB, free: 7.328 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01274/1.955, allocations: 3.673 MB / 1.083 GB, free: 3.648 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005551/1.955, allocations: 63.98 kB / 1.083 GB, free: 3.586 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02902/1.984, allocations: 19.65 MB / 1.102 GB, free: 15.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.985, allocations: 3.953 kB / 1.102 GB, free: 15.68 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02653/2.011, allocations: 14.04 MB / 1.116 GB, free: 1.531 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001865/2.013, allocations: 0.5795 MB / 1.117 GB, free: 0.9258 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001368/2.014, allocations: 62.17 kB / 1.117 GB, free: 0.8672 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002909/2.017, allocations: 231.7 kB / 1.117 GB, free: 0.6406 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006971/2.018, allocations: 218.1 kB / 1.117 GB, free: 436 kB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002693/2.018, allocations: 87.98 kB / 1.117 GB, free: 348 kB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.2732/2.291, allocations: 3.766 MB / 1.121 GB, free: 183.5 MB / 0.6042 GB Notification: Performance of sort global known variables: time 7.12e-07/2.292, allocations: 0 / 1.121 GB, free: 183.5 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01097/2.303, allocations: 1.85 MB / 1.123 GB, free: 183.5 MB / 0.6042 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 (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.0009015/2.303, allocations: 231.7 kB / 1.123 GB, free: 183.5 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01313/2.317, allocations: 9.569 MB / 1.132 GB, free: 183.1 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/2.317, allocations: 0 / 1.132 GB, free: 183.1 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.005191/2.322, allocations: 3.746 MB / 1.136 GB, free: 182.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004045/2.326, allocations: 0.7111 MB / 1.137 GB, free: 182.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02872/2.355, allocations: 18.3 MB / 1.154 GB, free: 176.1 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005235/2.36, allocations: 4.989 MB / 1.159 GB, free: 175.3 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.006548/2.366, allocations: 2.787 MB / 1.162 GB, free: 175.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/2.368, allocations: 379.6 kB / 1.162 GB, free: 175.2 MB / 0.6042 GB Notification: Performance of SimCode: time 1.133e-06/2.368, allocations: 0 / 1.162 GB, free: 175.2 MB / 0.6042 GB Notification: Performance of Templates: time 0.1072/2.475, allocations: 74.69 MB / 1.235 GB, free: 139.1 MB / 0.6042 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