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.002207/0.002207, allocations: 180.2 kB / 13.65 MB, free: 1.66 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.394/2.394, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001098/0.001098, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2964/0.2964, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.332e-05/3.358e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1165, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5231/0.6397, allocations: 112.6 MB / 0.5828 GB, free: 7.359 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.64, allocations: 73.72 kB / 0.5828 GB, free: 7.324 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9338/1.574, allocations: 136.5 MB / 0.7161 GB, free: 98 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.625e-06/1.574, allocations: 0 / 0.7161 GB, free: 98 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005585/1.575, allocations: 133.6 kB / 0.7162 GB, free: 98 MB / 0.4948 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.03329/1.608, allocations: 7.051 MB / 0.7231 GB, free: 95.52 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/1.608, allocations: 10.28 kB / 0.7231 GB, free: 95.52 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05998/1.668, allocations: 7.566 MB / 0.7305 GB, free: 95.06 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03565/1.704, allocations: 9.802 MB / 0.7401 GB, free: 94.15 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005469/1.704, allocations: 495.3 kB / 0.7405 GB, free: 94.14 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003464/1.708, allocations: 0.6529 MB / 0.7412 GB, free: 94.12 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05124/1.759, allocations: 16.57 MB / 0.7574 GB, free: 90.24 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004522/1.759, allocations: 104.8 kB / 0.7575 GB, free: 90.23 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003242/1.763, allocations: 313 kB / 0.7578 GB, free: 90.23 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003947/1.767, allocations: 1.579 MB / 0.7593 GB, free: 90.22 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0451/1.812, allocations: 13.48 MB / 0.7725 GB, free: 90.04 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1161/1.928, allocations: 74.36 MB / 0.8451 GB, free: 32.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0388/1.967, allocations: 7.655 MB / 0.8526 GB, free: 26.12 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008157/1.975, allocations: 3.925 MB / 0.8564 GB, free: 22.51 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04809/2.023, allocations: 18.61 MB / 0.8746 GB, free: 6.008 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.083e-05/2.023, allocations: 64.5 kB / 0.8746 GB, free: 5.938 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=281): time 8.987e-06/2.023, allocations: 3.422 kB / 0.8746 GB, free: 5.938 MB / 0.4948 GB Notification: Performance of matching and sorting (n=363): time 0.6028/2.626, allocations: 38.8 MB / 0.9125 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/2.626, allocations: 270.2 kB / 0.9128 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01463/2.641, allocations: 5.326 MB / 0.918 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001031/2.642, allocations: 77.42 kB / 0.9181 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00444/2.647, allocations: 4.566 MB / 0.9225 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002341/2.649, allocations: 1.338 MB / 0.9238 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00122/2.65, allocations: 186.7 kB / 0.924 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005753/2.651, allocations: 0.6955 MB / 0.9247 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00896/2.66, allocations: 3.641 MB / 0.9282 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01296/2.673, allocations: 8.85 MB / 0.9369 GB, free: 93.75 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0126/2.685, allocations: 5.553 MB / 0.9423 GB, free: 93.68 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001883/2.686, allocations: 53.25 kB / 0.9423 GB, free: 93.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.0536/2.739, allocations: 15.63 MB / 0.9576 GB, free: 92.29 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000138/2.739, allocations: 84 kB / 0.9577 GB, free: 92.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002308/2.74, allocations: 182.8 kB / 0.9579 GB, free: 92.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02301/2.763, allocations: 4.032 MB / 0.9618 GB, free: 91.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01338/2.776, allocations: 2.039 MB / 0.9638 GB, free: 91.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04879/2.825, allocations: 20.82 MB / 0.9841 GB, free: 82.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01267/2.838, allocations: 0.548 MB / 0.9847 GB, free: 82.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002307/2.84, allocations: 0.5245 MB / 0.9852 GB, free: 81.96 MB / 0.5105 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.003252/2.843, allocations: 0.8035 MB / 0.986 GB, free: 81.31 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001693/2.845, allocations: 0.5748 MB / 0.9865 GB, free: 81 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03658/2.882, allocations: 9.435 MB / 0.9957 GB, free: 78.01 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-05/2.882, allocations: 43.22 kB / 0.9958 GB, free: 78.01 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.33e-05/2.882, allocations: 17.28 kB / 0.9958 GB, free: 78.01 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.809e-05/2.882, allocations: 23.56 kB / 0.9958 GB, free: 78 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06109/2.943, allocations: 18.87 MB / 1.014 GB, free: 67.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.277e-05/2.943, allocations: 0 / 1.014 GB, free: 67.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005097/2.948, allocations: 0.51 MB / 1.015 GB, free: 66.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02783/2.976, allocations: 3.622 MB / 1.018 GB, free: 64.56 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007892/2.977, allocations: 63.56 kB / 1.018 GB, free: 64.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04259/3.02, allocations: 18.72 MB / 1.037 GB, free: 48.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/3.02, allocations: 3.938 kB / 1.037 GB, free: 48.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04318/3.063, allocations: 13.91 MB / 1.05 GB, free: 36.86 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004882/3.068, allocations: 1.111 MB / 1.051 GB, free: 35.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002144/3.07, allocations: 64.16 kB / 1.051 GB, free: 35.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006677/3.077, allocations: 232.3 kB / 1.052 GB, free: 35.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001495/3.078, allocations: 214.8 kB / 1.052 GB, free: 35.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000423/3.079, allocations: 88.39 kB / 1.052 GB, free: 35.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009293/3.088, allocations: 3.723 MB / 1.055 GB, free: 32.12 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.102e-06/3.088, allocations: 0 / 1.055 GB, free: 32.12 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01201/3.1, allocations: 1.842 MB / 1.057 GB, free: 30.29 MB / 0.5105 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.001364/3.101, allocations: 231.2 kB / 1.058 GB, free: 30.07 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02123/3.123, allocations: 9.391 MB / 1.067 GB, free: 21.32 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/3.123, allocations: 0 / 1.067 GB, free: 21.32 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008857/3.132, allocations: 3.676 MB / 1.07 GB, free: 17.61 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006333/3.138, allocations: 0.7262 MB / 1.071 GB, free: 16.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04165/3.18, allocations: 13.84 MB / 1.084 GB, free: 3.031 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01206/3.192, allocations: 5.011 MB / 1.089 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002887/3.195, allocations: 439.4 kB / 1.09 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of SimCode: time 9.21e-07/3.195, allocations: 3.938 kB / 1.09 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of Templates: time 0.6719/3.867, allocations: 145.7 MB / 1.232 GB, free: 36.88 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