Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000988/0.0009881, allocations: 180.3 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.187/1.187, allocations: 221.3 MB / 236 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000911/0.000911, allocations: 84.11 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1685/0.1685, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.554e-05/2.555e-05, allocations: 224 / 451.8 MB, free: 9.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 61.92 MB / 0.5017 GB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3771/0.4853, allocations: 114.5 MB / 0.6135 GB, free: 6.82 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.4856, allocations: 75.97 kB / 0.6136 GB, free: 6.746 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6006/1.086, allocations: 137.9 MB / 0.7483 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.824e-06/1.086, allocations: 3.562 kB / 0.7483 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003306/1.087, allocations: 136 kB / 0.7484 GB, free: 113.6 MB / 0.5105 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.02051/1.107, allocations: 7.026 MB / 0.7553 GB, free: 111 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/1.107, allocations: 10.97 kB / 0.7553 GB, free: 111 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03045/1.138, allocations: 7.564 MB / 0.7627 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02197/1.16, allocations: 9.195 MB / 0.7716 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00053/1.16, allocations: 492.4 kB / 0.7721 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003455/1.164, allocations: 0.652 MB / 0.7727 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03712/1.201, allocations: 16.57 MB / 0.7889 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004777/1.201, allocations: 97.73 kB / 0.789 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002567/1.204, allocations: 312 kB / 0.7893 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002221/1.206, allocations: 1.589 MB / 0.7909 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02806/1.234, allocations: 13.48 MB / 0.804 GB, free: 95.38 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08/1.314, allocations: 74.25 MB / 0.8765 GB, free: 22.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02073/1.335, allocations: 7.662 MB / 0.884 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005292/1.34, allocations: 3.911 MB / 0.8878 GB, free: 11.05 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03042/1.371, allocations: 18.56 MB / 0.906 GB, free: 7.969 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.143e-05/1.371, allocations: 64.56 kB / 0.906 GB, free: 7.898 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 6.672e-06/1.371, allocations: 0 / 0.906 GB, free: 7.898 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.4357/1.807, allocations: 38.59 MB / 0.9437 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.557e-05/1.807, allocations: 274.1 kB / 0.944 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007101/1.814, allocations: 5.265 MB / 0.9491 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000751/1.815, allocations: 82.77 kB / 0.9492 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002497/1.817, allocations: 4.758 MB / 0.9538 GB, free: 114 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001378/1.819, allocations: 1.339 MB / 0.9552 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004319/1.819, allocations: 186 kB / 0.9553 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003393/1.819, allocations: 0.6923 MB / 0.956 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004289/1.824, allocations: 3.638 MB / 0.9596 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006239/1.83, allocations: 8.843 MB / 0.9682 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006684/1.837, allocations: 5.567 MB / 0.9736 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.357e-05/1.837, allocations: 53 kB / 0.9737 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.02853/1.865, allocations: 15.85 MB / 0.9892 GB, free: 97.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.234e-05/1.865, allocations: 80.91 kB / 0.9892 GB, free: 97.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001547/1.866, allocations: 182.5 kB / 0.9894 GB, free: 97.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01171/1.877, allocations: 4.021 MB / 0.9933 GB, free: 97.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007538/1.885, allocations: 2.037 MB / 0.9953 GB, free: 96.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02633/1.911, allocations: 20.82 MB / 1.016 GB, free: 84.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007809/1.919, allocations: 0.5449 MB / 1.016 GB, free: 84.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001724/1.921, allocations: 0.5197 MB / 1.017 GB, free: 83.55 MB / 0.5261 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.001483/1.922, allocations: 0.809 MB / 1.017 GB, free: 82.75 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001472/1.924, allocations: 0.5708 MB / 1.018 GB, free: 82.17 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0187/1.942, allocations: 9.43 MB / 1.027 GB, free: 74.93 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.913e-05/1.943, allocations: 43.95 kB / 1.027 GB, free: 74.88 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.889e-05/1.943, allocations: 16 kB / 1.027 GB, free: 74.87 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-05/1.943, allocations: 15.14 kB / 1.027 GB, free: 74.87 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03587/1.979, allocations: 18.87 MB / 1.046 GB, free: 59.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-05/1.979, allocations: 5.812 kB / 1.046 GB, free: 59.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002672/1.981, allocations: 0.4981 MB / 1.046 GB, free: 59.48 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01142/1.993, allocations: 3.613 MB / 1.05 GB, free: 57.11 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009277/1.994, allocations: 65.39 kB / 1.05 GB, free: 57.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02427/2.018, allocations: 18.71 MB / 1.068 GB, free: 38.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/2.018, allocations: 4 kB / 1.068 GB, free: 38.29 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0245/2.043, allocations: 13.9 MB / 1.082 GB, free: 24.29 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002099/2.045, allocations: 0.5823 MB / 1.082 GB, free: 23.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001827/2.047, allocations: 59.95 kB / 1.082 GB, free: 23.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003488/2.05, allocations: 232.7 kB / 1.083 GB, free: 23.39 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000755/2.051, allocations: 222.1 kB / 1.083 GB, free: 23.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002593/2.051, allocations: 92.77 kB / 1.083 GB, free: 23.09 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006184/2.057, allocations: 3.677 MB / 1.086 GB, free: 19.41 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.01e-07/2.057, allocations: 0 / 1.086 GB, free: 19.41 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0087/2.066, allocations: 1.837 MB / 1.088 GB, free: 17.58 MB / 0.5261 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.0007182/2.067, allocations: 232 kB / 1.088 GB, free: 17.36 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01314/2.08, allocations: 9.391 MB / 1.098 GB, free: 7.953 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/2.08, allocations: 0 / 1.098 GB, free: 7.953 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004755/2.085, allocations: 3.68 MB / 1.101 GB, free: 4.234 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004021/2.089, allocations: 0.7157 MB / 1.102 GB, free: 3.547 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3151/2.404, allocations: 13.05 MB / 1.115 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01021/2.414, allocations: 4.993 MB / 1.12 GB, free: 117 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009395/2.424, allocations: 2.793 MB / 1.122 GB, free: 117 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/2.425, allocations: 377.8 kB / 1.123 GB, free: 117 MB / 0.5417 GB Notification: Performance of SimCode: time 1.513e-06/2.425, allocations: 3.469 kB / 1.123 GB, free: 117 MB / 0.5417 GB Notification: Performance of Templates: time 0.1221/2.547, allocations: 74.36 MB / 1.195 GB, free: 104.6 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches