Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009379/0.000938, allocations: 173.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 221.5 MB / 230.7 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 94.11 kB / 281.6 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2155/0.2155, allocations: 44.16 MB / 376.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.666e-05/1.668e-05, allocations: 4 kB / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1106, allocations: 61.92 MB / 0.4947 GB, free: 1.258 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4076/0.5183, allocations: 107.9 MB / 0.6 GB, free: 4.637 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.5186, allocations: 75.97 kB / 0.6001 GB, free: 4.562 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2029/0.7215, allocations: 76.3 MB / 0.6746 GB, free: 7.723 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.847e-06/0.7215, allocations: 7.984 kB / 0.6746 GB, free: 7.715 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001527/0.7217, allocations: 72 kB / 0.6747 GB, free: 7.645 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.008827/0.7305, allocations: 3.585 MB / 0.6782 GB, free: 4 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.7306, allocations: 15.98 kB / 0.6782 GB, free: 3.984 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01738/0.748, allocations: 4.324 MB / 0.6824 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01167/0.7597, allocations: 4.319 MB / 0.6866 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.7599, allocations: 119.9 kB / 0.6867 GB, free: 11.15 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001245/0.7611, allocations: 219.9 kB / 0.6869 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008567/0.7697, allocations: 5.144 MB / 0.692 GB, free: 5.785 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2986/1.068, allocations: 8.208 MB / 0.7 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002003/1.069, allocations: 58.66 kB / 0.7 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005441/1.069, allocations: 30.88 kB / 0.7001 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001545/1.071, allocations: 0.8843 MB / 0.7009 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04198/1.113, allocations: 43.42 MB / 0.7433 GB, free: 86.68 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003843/1.117, allocations: 2.64 MB / 0.7459 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001884/1.119, allocations: 1.475 MB / 0.7474 GB, free: 85.98 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008533/1.119, allocations: 0.8679 MB / 0.7482 GB, free: 85.22 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/1.119, allocations: 49.06 kB / 0.7482 GB, free: 85.18 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=160): time 4.489e-06/1.119, allocations: 2.719 kB / 0.7482 GB, free: 85.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=196): time 0.03171/1.151, allocations: 15.47 MB / 0.7634 GB, free: 79.71 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/1.151, allocations: 203 kB / 0.7636 GB, free: 79.49 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003764/1.155, allocations: 2.888 MB / 0.7664 GB, free: 78.44 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003348/1.155, allocations: 25.7 kB / 0.7664 GB, free: 78.41 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001205/1.157, allocations: 2.874 MB / 0.7692 GB, free: 76.32 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005628/1.157, allocations: 0.7245 MB / 0.7699 GB, free: 75.78 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/1.157, allocations: 0 / 0.7699 GB, free: 75.78 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002462/1.158, allocations: 0.5638 MB / 0.7705 GB, free: 75.36 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002091/1.16, allocations: 1.913 MB / 0.7723 GB, free: 74.68 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003262/1.163, allocations: 5.558 MB / 0.7778 GB, free: 69.01 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003652/1.167, allocations: 3.239 MB / 0.7809 GB, free: 67.79 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-05/1.167, allocations: 39.09 kB / 0.781 GB, free: 67.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=797) (initialization): time 0.0144/1.181, allocations: 7.873 MB / 0.7886 GB, free: 65.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.174e-05/1.181, allocations: 60.97 kB / 0.7887 GB, free: 65.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001419/1.181, allocations: 131.4 kB / 0.7888 GB, free: 65.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004787/1.186, allocations: 1.474 MB / 0.7903 GB, free: 64.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004479/1.191, allocations: 1.339 MB / 0.7916 GB, free: 64.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009942/1.201, allocations: 7.749 MB / 0.7991 GB, free: 60.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004678/1.205, allocations: 195.8 kB / 0.7993 GB, free: 60.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008316/1.206, allocations: 368.9 kB / 0.7997 GB, free: 60.9 MB / 0.4948 GB 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.0008451/1.207, allocations: 443.3 kB / 0.8001 GB, free: 60.54 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005302/1.208, allocations: 313 kB / 0.8004 GB, free: 60.37 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007363/1.215, allocations: 3.532 MB / 0.8039 GB, free: 59.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.18e-05/1.215, allocations: 22.94 kB / 0.8039 GB, free: 59.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.519e-05/1.215, allocations: 11.5 kB / 0.8039 GB, free: 59.19 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.12e-05/1.215, allocations: 11.39 kB / 0.8039 GB, free: 59.19 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0149/1.23, allocations: 7.496 MB / 0.8112 GB, free: 54.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.092e-05/1.23, allocations: 0 / 0.8112 GB, free: 54.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001311/1.231, allocations: 249 kB / 0.8115 GB, free: 54.76 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00425/1.236, allocations: 1.236 MB / 0.8127 GB, free: 53.93 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002384/1.236, allocations: 4 kB / 0.8127 GB, free: 53.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008631/1.245, allocations: 6.891 MB / 0.8194 GB, free: 47.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/1.245, allocations: 0 / 0.8194 GB, free: 47.88 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01015/1.255, allocations: 6.059 MB / 0.8253 GB, free: 42.67 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/1.256, allocations: 351.7 kB / 0.8257 GB, free: 42.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003842/1.256, allocations: 7.953 kB / 0.8257 GB, free: 42.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/1.258, allocations: 62.02 kB / 0.8257 GB, free: 42.27 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000284/1.258, allocations: 113.7 kB / 0.8258 GB, free: 42.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/1.258, allocations: 56.06 kB / 0.8259 GB, free: 42.15 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002705/1.261, allocations: 1.914 MB / 0.8277 GB, free: 40.49 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.61e-07/1.261, allocations: 0 / 0.8277 GB, free: 40.49 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005059/1.266, allocations: 0.838 MB / 0.8286 GB, free: 39.66 MB / 0.4948 GB 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.0004494/1.266, allocations: 152.6 kB / 0.8287 GB, free: 39.52 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007174/1.274, allocations: 4.72 MB / 0.8333 GB, free: 35.22 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/1.274, allocations: 3.938 kB / 0.8333 GB, free: 35.22 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001782/1.275, allocations: 1.567 MB / 0.8349 GB, free: 33.78 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001924/1.277, allocations: 301.3 kB / 0.8351 GB, free: 33.52 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/1.289, allocations: 6.784 MB / 0.8418 GB, free: 27.47 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002635/1.291, allocations: 3.042 MB / 0.8447 GB, free: 25.09 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004407/1.296, allocations: 1.909 MB / 0.8466 GB, free: 23.18 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006155/1.296, allocations: 215.4 kB / 0.8468 GB, free: 22.96 MB / 0.4948 GB Notification: Performance of SimCode: time 1.313e-06/1.296, allocations: 0 / 0.8468 GB, free: 22.96 MB / 0.4948 GB Notification: Performance of Templates: time 0.05692/1.353, allocations: 32.25 MB / 0.8783 GB, free: 7.316 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches