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.001481/0.001481, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.987/1.987, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001073/0.001072, allocations: 86.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.2918/0.2918, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.51e-05/3.524e-05, allocations: 4 kB / 425.3 MB, free: 23.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1134, allocations: 58.86 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5039/0.6174, allocations: 106.7 MB / 0.577 GB, free: 13.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/0.6177, allocations: 78.61 kB / 0.577 GB, free: 13.17 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3387/0.9564, allocations: 76.77 MB / 0.652 GB, free: 8.293 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.9565, allocations: 0 / 0.652 GB, free: 8.293 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002728/0.9568, allocations: 72 kB / 0.6521 GB, free: 8.223 MB / 458.7 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.01466/0.9715, allocations: 3.589 MB / 0.6556 GB, free: 4.574 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.859e-05/0.9715, allocations: 12.03 kB / 0.6556 GB, free: 4.562 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03292/1.004, allocations: 4.336 MB / 0.6598 GB, free: 220 kB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01854/1.023, allocations: 4.468 MB / 0.6642 GB, free: 11.68 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004127/1.024, allocations: 271.1 kB / 0.6644 GB, free: 11.42 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002146/1.026, allocations: 367.8 kB / 0.6648 GB, free: 11.06 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02857/1.054, allocations: 9.093 MB / 0.6737 GB, free: 0.9531 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002798/1.055, allocations: 55.47 kB / 0.6737 GB, free: 0.8984 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001527/1.056, allocations: 183.9 kB / 0.6739 GB, free: 0.7188 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002221/1.058, allocations: 0.8883 MB / 0.6748 GB, free: 15.83 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02333/1.082, allocations: 7.214 MB / 0.6818 GB, free: 8.609 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4169/1.499, allocations: 44.15 MB / 0.7249 GB, free: 96.05 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01599/1.515, allocations: 3.478 MB / 0.7283 GB, free: 95.38 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003791/1.519, allocations: 1.593 MB / 0.7299 GB, free: 95.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01992/1.539, allocations: 7.199 MB / 0.7369 GB, free: 93.27 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.861e-05/1.539, allocations: 47.31 kB / 0.737 GB, free: 93.23 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=151): time 5.37e-06/1.539, allocations: 0 / 0.737 GB, free: 93.23 MB / 0.4948 GB Notification: Performance of matching and sorting (n=188): time 0.08663/1.625, allocations: 16.23 MB / 0.7528 GB, free: 90.58 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/1.626, allocations: 202.9 kB / 0.753 GB, free: 90.36 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007169/1.633, allocations: 3.296 MB / 0.7562 GB, free: 90.03 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004507/1.633, allocations: 51.39 kB / 0.7563 GB, free: 90 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002437/1.636, allocations: 2.772 MB / 0.759 GB, free: 88.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001113/1.637, allocations: 0.7205 MB / 0.7597 GB, free: 88.09 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006599/1.638, allocations: 114.8 kB / 0.7598 GB, free: 88.09 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000381/1.638, allocations: 0.5564 MB / 0.7603 GB, free: 87.77 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004826/1.643, allocations: 1.936 MB / 0.7622 GB, free: 87.75 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007334/1.65, allocations: 5.468 MB / 0.7676 GB, free: 82.54 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007551/1.658, allocations: 3.254 MB / 0.7707 GB, free: 81.61 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001413/1.658, allocations: 35.5 kB / 0.7708 GB, free: 81.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=765) (initialization): time 0.02687/1.685, allocations: 8.322 MB / 0.7789 GB, free: 79.21 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/1.685, allocations: 64.59 kB / 0.779 GB, free: 79.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001763/1.685, allocations: 123.5 kB / 0.7791 GB, free: 79.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009042/1.694, allocations: 1.461 MB / 0.7805 GB, free: 78.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008022/1.702, allocations: 1.3 MB / 0.7818 GB, free: 78.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01862/1.721, allocations: 8.005 MB / 0.7896 GB, free: 74.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006615/1.728, allocations: 307.3 kB / 0.7899 GB, free: 74.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001333/1.729, allocations: 362.5 kB / 0.7902 GB, free: 74.71 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (697): * Single equations (assignments): 693 * 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.001366/1.73, allocations: 0.5483 MB / 0.7908 GB, free: 74.26 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008753/1.731, allocations: 333.8 kB / 0.7911 GB, free: 74.08 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01411/1.745, allocations: 3.602 MB / 0.7946 GB, free: 72.86 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.004e-05/1.746, allocations: 22.72 kB / 0.7946 GB, free: 72.86 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.706e-05/1.746, allocations: 7.312 kB / 0.7946 GB, free: 72.86 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.51e-05/1.746, allocations: 10.48 kB / 0.7946 GB, free: 72.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02682/1.772, allocations: 7.878 MB / 0.8023 GB, free: 67.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.984e-05/1.773, allocations: 3.891 kB / 0.8023 GB, free: 67.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002417/1.775, allocations: 240.6 kB / 0.8026 GB, free: 67.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008454/1.783, allocations: 1.239 MB / 0.8038 GB, free: 66.94 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004303/1.784, allocations: 31.92 kB / 0.8038 GB, free: 66.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01685/1.801, allocations: 7.291 MB / 0.8109 GB, free: 60.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.801, allocations: 4.031 kB / 0.8109 GB, free: 60.52 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02307/1.824, allocations: 6.02 MB / 0.8168 GB, free: 55.36 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003262/1.827, allocations: 0.6059 MB / 0.8174 GB, free: 54.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001571/1.829, allocations: 35.75 kB / 0.8174 GB, free: 54.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00489/1.834, allocations: 86.02 kB / 0.8175 GB, free: 54.69 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009149/1.835, allocations: 113.2 kB / 0.8176 GB, free: 54.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003553/1.835, allocations: 44 kB / 0.8177 GB, free: 54.57 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00895/1.844, allocations: 2.282 MB / 0.8199 GB, free: 52.57 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.553e-06/1.844, allocations: 3.938 kB / 0.8199 GB, free: 52.57 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01124/1.856, allocations: 0.9684 MB / 0.8209 GB, free: 51.61 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (130): * Single equations (assignments): 126 * 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.001098/1.857, allocations: 185.3 kB / 0.821 GB, free: 51.44 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01711/1.874, allocations: 4.866 MB / 0.8258 GB, free: 46.98 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/1.874, allocations: 0 / 0.8258 GB, free: 46.98 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005764/1.88, allocations: 1.588 MB / 0.8273 GB, free: 45.52 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004793/1.885, allocations: 365.4 kB / 0.8277 GB, free: 45.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02859/1.913, allocations: 7.241 MB / 0.8348 GB, free: 38.78 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009003/1.922, allocations: 3.052 MB / 0.8377 GB, free: 36.45 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002112/1.924, allocations: 271.2 kB / 0.838 GB, free: 36.19 MB / 0.4948 GB Notification: Performance of SimCode: time 2.385e-06/1.925, allocations: 0 / 0.838 GB, free: 36.19 MB / 0.4948 GB Notification: Performance of Templates: time 0.1437/2.068, allocations: 66.69 MB / 0.9031 GB, free: 3.324 MB / 0.5261 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