Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002553/0.002552, allocations: 188.9 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001077/0.001076, allocations: 90.22 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.513/0.513, allocations: 43.55 MB / 362.7 MB, free: 52.26 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006466/0.0006468, allocations: 16 kB / 431.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1301, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.508/0.6381, allocations: 112.7 MB / 0.5888 GB, free: 5.98 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003648/0.6386, allocations: 79.95 kB / 0.5889 GB, free: 5.902 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9591/1.598, allocations: 136.4 MB / 0.722 GB, free: 87.09 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.559e-06/1.598, allocations: 0 / 0.722 GB, free: 87.09 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0008623/1.599, allocations: 135.5 kB / 0.7222 GB, free: 87.08 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.05057/1.649, allocations: 7.663 MB / 0.7297 GB, free: 84.14 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.047e-05/1.649, allocations: 10.03 kB / 0.7297 GB, free: 84.14 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05787/1.707, allocations: 7.555 MB / 0.737 GB, free: 83.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03564/1.743, allocations: 9.845 MB / 0.7467 GB, free: 81.62 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007034/1.744, allocations: 493.1 kB / 0.7471 GB, free: 81.44 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004064/1.748, allocations: 0.6526 MB / 0.7478 GB, free: 81.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05443/1.802, allocations: 16.73 MB / 0.7641 GB, free: 72.91 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004859/1.803, allocations: 95.89 kB / 0.7642 GB, free: 72.86 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002866/1.806, allocations: 316.3 kB / 0.7645 GB, free: 72.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003726/1.809, allocations: 1.58 MB / 0.766 GB, free: 72.39 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04469/1.854, allocations: 13.74 MB / 0.7795 GB, free: 66.86 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1145/1.969, allocations: 74.36 MB / 0.8521 GB, free: 6.629 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.409/2.378, allocations: 7.686 MB / 0.8596 GB, free: 94.28 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04708/2.425, allocations: 18.62 MB / 0.8778 GB, free: 89.95 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.218e-05/2.425, allocations: 75.52 kB / 0.8778 GB, free: 89.91 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=281): time 6.733e-06/2.425, allocations: 0 / 0.8778 GB, free: 89.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=363): time 0.3036/2.729, allocations: 48.39 MB / 0.9251 GB, free: 80.55 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/2.729, allocations: 269.9 kB / 0.9253 GB, free: 80.26 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01329/2.742, allocations: 5.401 MB / 0.9306 GB, free: 78.47 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001007/2.743, allocations: 86.23 kB / 0.9307 GB, free: 78.39 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004208/2.747, allocations: 4.567 MB / 0.9352 GB, free: 74.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002241/2.75, allocations: 1.338 MB / 0.9365 GB, free: 73.82 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00144/2.751, allocations: 183.6 kB / 0.9366 GB, free: 73.67 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0007288/2.752, allocations: 0.6939 MB / 0.9373 GB, free: 73.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01/2.762, allocations: 3.754 MB / 0.941 GB, free: 71.93 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01398/2.776, allocations: 8.952 MB / 0.9497 GB, free: 63.61 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01482/2.791, allocations: 5.614 MB / 0.9552 GB, free: 61.43 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001708/2.791, allocations: 51.31 kB / 0.9553 GB, free: 61.43 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.06/2.851, allocations: 15.89 MB / 0.9708 GB, free: 55.77 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001618/2.851, allocations: 80 kB / 0.9709 GB, free: 55.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002713/2.852, allocations: 184 kB / 0.971 GB, free: 55.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02431/2.876, allocations: 4.076 MB / 0.975 GB, free: 52.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01265/2.889, allocations: 2.03 MB / 0.977 GB, free: 50.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05169/2.94, allocations: 21.76 MB / 0.9982 GB, free: 32.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01148/2.952, allocations: 0.5412 MB / 0.9988 GB, free: 31.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002253/2.954, allocations: 0.535 MB / 0.9993 GB, free: 31.36 MB / 0.4948 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.008903/2.963, allocations: 3.123 MB / 1.002 GB, free: 28.62 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001623/2.965, allocations: 0.5747 MB / 1.003 GB, free: 28.04 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03922/3.004, allocations: 9.547 MB / 1.012 GB, free: 20.71 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-05/3.004, allocations: 42.66 kB / 1.012 GB, free: 20.68 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-05/3.004, allocations: 16 kB / 1.012 GB, free: 20.66 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.84e-05/3.004, allocations: 17.81 kB / 1.012 GB, free: 20.66 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06575/3.07, allocations: 18.99 MB / 1.031 GB, free: 1.629 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-05/3.07, allocations: 0 / 1.031 GB, free: 1.629 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005038/3.075, allocations: 0.4993 MB / 1.031 GB, free: 1.129 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02442/3.1, allocations: 3.675 MB / 1.035 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009808/3.101, allocations: 63.98 kB / 1.035 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4385/3.539, allocations: 19.64 MB / 1.054 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.84e-06/3.539, allocations: 2.188 kB / 1.054 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05022/3.59, allocations: 14.06 MB / 1.068 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004642/3.594, allocations: 1.118 MB / 1.069 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002393/3.597, allocations: 56.53 kB / 1.069 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006813/3.604, allocations: 231.2 kB / 1.069 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001806/3.605, allocations: 226.5 kB / 1.069 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006056/3.606, allocations: 94.62 kB / 1.07 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01112/3.617, allocations: 3.806 MB / 1.073 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.41e-07/3.617, allocations: 0 / 1.073 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01324/3.63, allocations: 1.843 MB / 1.075 GB, free: 110.5 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 () * 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.001547/3.632, allocations: 232.3 kB / 1.075 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02519/3.657, allocations: 9.568 MB / 1.085 GB, free: 110 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/3.657, allocations: 1.281 kB / 1.085 GB, free: 110 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.011/3.668, allocations: 3.744 MB / 1.088 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007233/3.676, allocations: 0.7208 MB / 1.089 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05084/3.727, allocations: 19.09 MB / 1.108 GB, free: 98.88 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01394/3.741, allocations: 5.005 MB / 1.113 GB, free: 97.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002878/3.743, allocations: 447 kB / 1.113 GB, free: 97.29 MB / 0.5261 GB Notification: Performance of SimCode: time 1.503e-06/3.743, allocations: 0 / 1.113 GB, free: 97.29 MB / 0.5261 GB Notification: Performance of Templates: time 0.6487/4.392, allocations: 145.8 MB / 1.255 GB, free: 112.8 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches