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.001451/0.001451, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.101/2.101, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 86.75 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2943/0.2943, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 3.057e-05/3.086e-05, allocations: 4.219 kB / 418.2 MB, free: 41.03 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4073/0.4074, allocations: 58.85 MB / 477.1 MB, free: 5.27 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2169/0.6243, allocations: 112 MB / 0.5752 GB, free: 3.297 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.6247, allocations: 75.97 kB / 0.5753 GB, free: 3.223 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9235/1.548, allocations: 133.8 MB / 0.7059 GB, free: 99.37 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.314e-06/1.548, allocations: 0 / 0.7059 GB, free: 99.37 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0005461/1.549, allocations: 137.7 kB / 0.7061 GB, free: 99.36 MB / 475.1 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.03133/1.58, allocations: 7.041 MB / 0.713 GB, free: 94.89 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/1.58, allocations: 9.938 kB / 0.713 GB, free: 94.89 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07497/1.655, allocations: 7.559 MB / 0.7203 GB, free: 87.77 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05357/1.709, allocations: 9.791 MB / 0.7299 GB, free: 77.99 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006946/1.71, allocations: 208 kB / 0.7301 GB, free: 77.79 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005319/1.715, allocations: 399.7 kB / 0.7305 GB, free: 77.39 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03474/1.75, allocations: 9.661 MB / 0.7399 GB, free: 67.73 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04934/1.799, allocations: 14.23 MB / 0.7538 GB, free: 52.06 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006844/1.8, allocations: 95.08 kB / 0.7539 GB, free: 51.97 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004111/1.804, allocations: 44 kB / 0.7539 GB, free: 51.93 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004803/1.809, allocations: 1.584 MB / 0.7555 GB, free: 50.35 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1624/1.971, allocations: 73.7 MB / 0.8275 GB, free: 6.504 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01197/1.983, allocations: 5.122 MB / 0.8325 GB, free: 1.234 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3671/2.351, allocations: 3.706 MB / 0.8361 GB, free: 123.1 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003659/2.354, allocations: 2.263 MB / 0.8383 GB, free: 121.1 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.868e-05/2.354, allocations: 68.91 kB / 0.8384 GB, free: 121.1 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=296): time 7.604e-06/2.355, allocations: 0 / 0.8384 GB, free: 121.1 MB / 0.4952 GB Notification: Performance of matching and sorting (n=379): time 0.181/2.536, allocations: 40.84 MB / 0.8783 GB, free: 114.7 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/2.536, allocations: 277.6 kB / 0.8785 GB, free: 114.4 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01302/2.549, allocations: 4.66 MB / 0.8831 GB, free: 112.7 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001169/2.55, allocations: 29.05 kB / 0.8831 GB, free: 112.7 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004391/2.554, allocations: 4.639 MB / 0.8876 GB, free: 109.1 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002546/2.557, allocations: 1.345 MB / 0.8889 GB, free: 108.1 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001716/2.559, allocations: 0 / 0.8889 GB, free: 108.1 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0009203/2.56, allocations: 0.7107 MB / 0.8896 GB, free: 107.6 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009709/2.569, allocations: 3.613 MB / 0.8932 GB, free: 106.3 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01331/2.583, allocations: 8.9 MB / 0.9019 GB, free: 97.84 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01348/2.596, allocations: 5.545 MB / 0.9073 GB, free: 96.1 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002862/2.597, allocations: 53.81 kB / 0.9073 GB, free: 96.1 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.05361/2.65, allocations: 14.82 MB / 0.9218 GB, free: 86.62 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001495/2.651, allocations: 87.19 kB / 0.9219 GB, free: 86.54 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003047/2.651, allocations: 188 kB / 0.9221 GB, free: 86.36 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02321/2.674, allocations: 4.064 MB / 0.926 GB, free: 83.54 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0139/2.688, allocations: 2.103 MB / 0.9281 GB, free: 81.71 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04706/2.735, allocations: 20.1 MB / 0.9477 GB, free: 64.44 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01192/2.747, allocations: 375.4 kB / 0.9481 GB, free: 64.15 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002774/2.75, allocations: 0.5387 MB / 0.9486 GB, free: 63.62 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 855 * 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 (1121): * Single equations (assignments): 1116 * 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%) 44,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003821/2.754, allocations: 0.5858 MB / 0.9492 GB, free: 63.03 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001713/2.756, allocations: 0.5513 MB / 0.9497 GB, free: 62.48 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03712/2.793, allocations: 9.354 MB / 0.9588 GB, free: 55.33 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.423e-05/2.793, allocations: 36.86 kB / 0.9589 GB, free: 55.29 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.109e-05/2.793, allocations: 19.94 kB / 0.9589 GB, free: 55.27 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001021/2.793, allocations: 20.78 kB / 0.9589 GB, free: 55.27 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06526/2.858, allocations: 17.99 MB / 0.9765 GB, free: 38.11 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.474e-05/2.858, allocations: 4 kB / 0.9765 GB, free: 38.11 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005383/2.864, allocations: 0.5229 MB / 0.977 GB, free: 37.59 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02211/2.886, allocations: 3.584 MB / 0.9805 GB, free: 34 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001083/2.887, allocations: 15.92 kB / 0.9805 GB, free: 33.98 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04284/2.93, allocations: 17.66 MB / 0.9978 GB, free: 16.09 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.228e-05/2.93, allocations: 4 kB / 0.9978 GB, free: 16.09 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04467/2.975, allocations: 14.11 MB / 1.012 GB, free: 1.781 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004783/2.98, allocations: 1.084 MB / 1.013 GB, free: 0.6719 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002265/2.982, allocations: 11.42 kB / 1.013 GB, free: 0.6641 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006504/2.988, allocations: 179.7 kB / 1.013 GB, free: 500 kB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001695/2.99, allocations: 234 kB / 1.013 GB, free: 264 kB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007899/2.991, allocations: 100.8 kB / 1.013 GB, free: 164 kB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.01011/3.001, allocations: 3.129 MB / 1.016 GB, free: 13.06 MB / 0.5108 GB Notification: Performance of sort global known variables: time 7.51e-07/3.001, allocations: 0 / 1.016 GB, free: 13.06 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.01426/3.015, allocations: 1.613 MB / 1.018 GB, free: 11.46 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (279): * Single equations (assignments): 274 * 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.001537/3.017, allocations: 170 kB / 1.018 GB, free: 11.29 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.3904/3.408, allocations: 9.143 MB / 1.027 GB, free: 123.7 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/3.408, allocations: 2.062 kB / 1.027 GB, free: 123.7 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.01016/3.418, allocations: 3.635 MB / 1.03 GB, free: 123.5 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006151/3.424, allocations: 0.5891 MB / 1.031 GB, free: 123.4 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04696/3.471, allocations: 13.76 MB / 1.044 GB, free: 121 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01331/3.484, allocations: 5.019 MB / 1.049 GB, free: 120.1 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0028/3.487, allocations: 434.6 kB / 1.05 GB, free: 120.1 MB / 0.5108 GB Notification: Performance of SimCode: time 1.523e-06/3.487, allocations: 0 / 1.05 GB, free: 120.1 MB / 0.5108 GB Notification: Performance of Templates: time 0.2728/3.76, allocations: 143.1 MB / 1.189 GB, free: 18.55 MB / 0.5108 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