Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002316/0.002316, 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.287/2.287, 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.001092/0.001092, allocations: 87.8 kB / 262.1 MB, free: 13.86 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.295/0.295, allocations: 43.49 MB / 353.6 MB, free: 2.246 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.983e-05/1.992e-05, allocations: 4.219 kB / 418.2 MB, free: 41.01 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3935/0.3935, allocations: 58.85 MB / 477.1 MB, free: 5.258 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1981/0.5917, allocations: 106 MB / 0.5694 GB, free: 9.242 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003345/0.5921, allocations: 71.97 kB / 0.5695 GB, free: 9.172 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7834/1.375, allocations: 75.22 MB / 0.643 GB, free: 108.6 MB / 475.1 MB Notification: Performance of FrontEnd: time 3.277e-06/1.376, allocations: 1.25 kB / 0.643 GB, free: 108.6 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003467/1.376, allocations: 71.11 kB / 0.643 GB, free: 108.6 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.02084/1.397, allocations: 3.592 MB / 0.6465 GB, free: 107.3 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001018/1.397, allocations: 10.19 kB / 0.6465 GB, free: 107.3 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05157/1.448, allocations: 4.325 MB / 0.6508 GB, free: 107.1 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02765/1.476, allocations: 4.466 MB / 0.6551 GB, free: 106.5 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004215/1.477, allocations: 115 kB / 0.6552 GB, free: 106.5 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002662/1.479, allocations: 218.5 kB / 0.6554 GB, free: 106.5 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02079/1.5, allocations: 5.139 MB / 0.6605 GB, free: 106.5 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02888/1.529, allocations: 8.228 MB / 0.6685 GB, free: 103.8 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003149/1.53, allocations: 58.91 kB / 0.6686 GB, free: 103.8 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00137/1.531, allocations: 33.69 kB / 0.6686 GB, free: 103.8 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002681/1.534, allocations: 0.882 MB / 0.6695 GB, free: 103.8 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08854/1.622, allocations: 43.46 MB / 0.7119 GB, free: 71.05 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007445/1.63, allocations: 2.632 MB / 0.7145 GB, free: 69.59 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004432/1.634, allocations: 1.483 MB / 0.7159 GB, free: 68.94 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002142/1.636, allocations: 0.8597 MB / 0.7167 GB, free: 68.16 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001019/1.637, allocations: 58.42 kB / 0.7168 GB, free: 68.1 MB / 475.1 MB Notification: Performance of pre-optimization done (n=160): time 9.539e-06/1.637, allocations: 0 / 0.7168 GB, free: 68.1 MB / 475.1 MB Notification: Performance of matching and sorting (n=196): time 0.09045/1.727, allocations: 15.52 MB / 0.732 GB, free: 61.96 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.33e-05/1.727, allocations: 203.3 kB / 0.7322 GB, free: 61.74 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006433/1.734, allocations: 2.899 MB / 0.735 GB, free: 60.61 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004495/1.734, allocations: 25.7 kB / 0.735 GB, free: 60.57 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002342/1.737, allocations: 2.845 MB / 0.7378 GB, free: 58.28 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00117/1.738, allocations: 0.7195 MB / 0.7385 GB, free: 57.75 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007199/1.739, allocations: 0 / 0.7385 GB, free: 57.75 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0004681/1.739, allocations: 0.5712 MB / 0.7391 GB, free: 57.32 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004689/1.744, allocations: 1.909 MB / 0.7409 GB, free: 55.96 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006876/1.751, allocations: 5.556 MB / 0.7463 GB, free: 48.86 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006848/1.758, allocations: 3.249 MB / 0.7495 GB, free: 46.09 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001162/1.758, allocations: 40 kB / 0.7496 GB, free: 46.05 MB / 475.1 MB Notification: Performance of matching and sorting (n=797) (initialization): time 0.02499/1.783, allocations: 7.788 MB / 0.7572 GB, free: 39.46 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.483e-05/1.783, allocations: 66.34 kB / 0.7572 GB, free: 39.4 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001445/1.783, allocations: 128 kB / 0.7573 GB, free: 39.27 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00889/1.792, allocations: 1.478 MB / 0.7588 GB, free: 38.21 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007928/1.8, allocations: 1.345 MB / 0.7601 GB, free: 37.02 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01719/1.817, allocations: 7.749 MB / 0.7677 GB, free: 30.25 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006193/1.823, allocations: 194.6 kB / 0.7679 GB, free: 30.09 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001308/1.825, allocations: 372.6 kB / 0.7682 GB, free: 29.73 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 596 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (729): * Single equations (assignments): 725 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001471/1.826, allocations: 441.6 kB / 0.7686 GB, free: 29.3 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007773/1.827, allocations: 315.9 kB / 0.7689 GB, free: 28.98 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01353/1.841, allocations: 3.53 MB / 0.7724 GB, free: 26.24 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.283e-05/1.841, allocations: 20 kB / 0.7724 GB, free: 26.22 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/1.841, allocations: 12 kB / 0.7724 GB, free: 26.21 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-05/1.841, allocations: 8.906 kB / 0.7724 GB, free: 26.21 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02514/1.866, allocations: 7.512 MB / 0.7798 GB, free: 19.02 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.46e-05/1.866, allocations: 0 / 0.7798 GB, free: 19.02 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002436/1.869, allocations: 255.6 kB / 0.78 GB, free: 18.77 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008262/1.877, allocations: 1.223 MB / 0.7812 GB, free: 17.54 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004123/1.877, allocations: 7.984 kB / 0.7812 GB, free: 17.54 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01566/1.893, allocations: 6.88 MB / 0.7879 GB, free: 10.55 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.428e-06/1.893, allocations: 3.938 kB / 0.7879 GB, free: 10.54 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01727/1.91, allocations: 6.056 MB / 0.7938 GB, free: 4.418 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002172/1.913, allocations: 0.5982 MB / 0.7944 GB, free: 3.797 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007769/1.913, allocations: 4 kB / 0.7944 GB, free: 3.793 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002606/1.916, allocations: 63.89 kB / 0.7945 GB, free: 3.73 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004649/1.916, allocations: 109.2 kB / 0.7946 GB, free: 3.625 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001959/1.917, allocations: 53.22 kB / 0.7946 GB, free: 3.574 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.004076/1.921, allocations: 1.932 MB / 0.7965 GB, free: 1.652 MB / 475.1 MB Notification: Performance of sort global known variables: time 7.71e-07/1.921, allocations: 0 / 0.7965 GB, free: 1.652 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.006855/1.928, allocations: 0.8281 MB / 0.7973 GB, free: 0.8242 MB / 475.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 134 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006688/1.928, allocations: 153.8 kB / 0.7975 GB, free: 0.668 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.01156/1.94, allocations: 4.713 MB / 0.8021 GB, free: 11.97 MB / 491.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.94, allocations: 3.938 kB / 0.8021 GB, free: 11.96 MB / 491.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003991/1.944, allocations: 1.571 MB / 0.8036 GB, free: 10.38 MB / 491.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002949/1.947, allocations: 307.9 kB / 0.8039 GB, free: 10.09 MB / 491.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02173/1.969, allocations: 7.208 MB / 0.811 GB, free: 2.82 MB / 491.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006992/1.976, allocations: 3.07 MB / 0.814 GB, free: 15.74 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00147/1.977, allocations: 263.4 kB / 0.8142 GB, free: 15.48 MB / 0.4952 GB Notification: Performance of SimCode: time 1.042e-06/1.977, allocations: 0 / 0.8142 GB, free: 15.48 MB / 0.4952 GB Notification: Performance of Templates: time 0.4746/2.452, allocations: 65.13 MB / 0.8778 GB, free: 114.4 MB / 0.4952 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches