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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 111.8 kB / 18.45 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 186.3 kB / 19.38 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1903/0.1903, allocations: 44.19 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 67.89 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3201, allocations: 60.81 MB / 0.5196 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01097/0.3311, allocations: 10.38 MB / 0.5297 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008677/0.3399, allocations: 3.866 MB / 0.5335 GB, free: 9.355 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002649/0.3425, allocations: 60.81 kB / 0.5335 GB, free: 9.344 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004301/0.3469, allocations: 2.065 MB / 0.5355 GB, free: 7.949 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00495/0.3519, allocations: 1.707 MB / 0.5372 GB, free: 6.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.3537, allocations: 0.7 MB / 0.5379 GB, free: 6.277 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00626/0.3599, allocations: 3.974 MB / 0.5418 GB, free: 4.098 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004206/0.3642, allocations: 2.601 MB / 0.5443 GB, free: 2.539 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00254/0.3667, allocations: 1.321 MB / 0.5456 GB, free: 1.289 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002743/0.3695, allocations: 1.838 MB / 0.5474 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007913/0.3703, allocations: 268 kB / 0.5477 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002541/0.3729, allocations: 1.205 MB / 0.5488 GB, free: 13.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001796/0.3747, allocations: 1.679 MB / 0.5505 GB, free: 12.29 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002245/0.3769, allocations: 1.91 MB / 0.5523 GB, free: 10.37 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00792/0.3849, allocations: 6.211 MB / 0.5584 GB, free: 4.141 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.3849, allocations: 0 / 0.5584 GB, free: 4.141 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.385, allocations: 0 / 0.5584 GB, free: 4.141 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002109/0.3852, allocations: 0 / 0.5584 GB, free: 4.141 MB / 414.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.00992/0.3951, allocations: 4.218 MB / 0.5625 GB, free: 15.86 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.3952, allocations: 12.03 kB / 0.5625 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01616/0.4113, allocations: 2.429 MB / 0.5649 GB, free: 13.41 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005725/0.4171, allocations: 2.445 MB / 0.5673 GB, free: 10.9 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/0.4173, allocations: 189.3 kB / 0.5675 GB, free: 10.71 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000946/0.4182, allocations: 279.9 kB / 0.5677 GB, free: 10.44 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01447/0.4327, allocations: 8.579 MB / 0.5761 GB, free: 1.23 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001218/0.4329, allocations: 43.64 kB / 0.5762 GB, free: 1.188 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003487/0.4333, allocations: 131.8 kB / 0.5763 GB, free: 1.059 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002672/0.4359, allocations: 1.727 MB / 0.578 GB, free: 15.33 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/0.4497, allocations: 7.296 MB / 0.5851 GB, free: 8.027 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03976/0.4895, allocations: 34.02 MB / 0.6183 GB, free: 4.918 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008418/0.498, allocations: 3.478 MB / 0.6217 GB, free: 1.293 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002136/0.5002, allocations: 1.717 MB / 0.6234 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01021/0.5104, allocations: 7.419 MB / 0.6306 GB, free: 7.871 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.518e-05/0.5105, allocations: 47.56 kB / 0.6307 GB, free: 7.816 MB / 494.1 MB Notification: Performance of pre-optimization done (n=151): time 4.288e-06/0.5105, allocations: 0 / 0.6307 GB, free: 7.816 MB / 494.1 MB Notification: Performance of matching and sorting (n=188): time 0.06147/0.572, allocations: 19.61 MB / 0.6498 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.5721, allocations: 201.2 kB / 0.65 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004792/0.5769, allocations: 3.734 MB / 0.6537 GB, free: 80 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003874/0.5773, allocations: 57.98 kB / 0.6537 GB, free: 16 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001833/0.5792, allocations: 2.806 MB / 0.6565 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008129/0.58, allocations: 0.7174 MB / 0.6572 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001424/0.5814, allocations: 1.202 MB / 0.6583 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.684e-05/0.5815, allocations: 305.1 kB / 0.6586 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003006/0.5845, allocations: 2.206 MB / 0.6608 GB, free: 8.719 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005279/0.5898, allocations: 5.758 MB / 0.6664 GB, free: 1.184 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009373/0.5992, allocations: 8.586 MB / 0.6748 GB, free: 6.844 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.761e-05/0.5994, allocations: 32 kB / 0.6748 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01829/0.6177, allocations: 9.187 MB / 0.6838 GB, free: 13.62 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.6178, allocations: 59.12 kB / 0.6839 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000163/0.618, allocations: 128.9 kB / 0.684 GB, free: 13.44 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005675/0.6237, allocations: 1.66 MB / 0.6856 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004247/0.628, allocations: 1.326 MB / 0.6869 GB, free: 10.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0144/0.6424, allocations: 9.908 MB / 0.6966 GB, free: 396 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004209/0.6467, allocations: 311.4 kB / 0.6969 GB, free: 84 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/0.6477, allocations: 368 kB / 0.6972 GB, free: 15.72 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (714): * Single equations (assignments): 710 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003763/0.6515, allocations: 1.889 MB / 0.6991 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007654/0.6523, allocations: 327.8 kB / 0.6994 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009334/0.6616, allocations: 4.145 MB / 0.7034 GB, free: 9.332 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.42e-05/0.6617, allocations: 20 kB / 0.7034 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.072e-05/0.6617, allocations: 8 kB / 0.7035 GB, free: 9.305 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-05/0.6617, allocations: 7.969 kB / 0.7035 GB, free: 9.297 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01635/0.6781, allocations: 8.522 MB / 0.7118 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.419e-05/0.6782, allocations: 3.984 kB / 0.7118 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/0.6794, allocations: 247.6 kB / 0.712 GB, free: 472 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005027/0.6845, allocations: 1.433 MB / 0.7134 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002496/0.6848, allocations: 31.98 kB / 0.7135 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0127/0.6975, allocations: 9.22 MB / 0.7225 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.6975, allocations: 4.031 kB / 0.7225 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2681/0.9656, allocations: 6.716 MB / 0.729 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009513/0.9666, allocations: 372.3 kB / 0.7294 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005416/0.9672, allocations: 34.36 kB / 0.7294 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/0.9686, allocations: 88.09 kB / 0.7295 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003579/0.969, allocations: 106 kB / 0.7296 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.9691, allocations: 52.42 kB / 0.7296 GB, free: 182 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003561/0.9727, allocations: 2.322 MB / 0.7319 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.21e-07/0.9727, allocations: 2.406 kB / 0.7319 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004478/0.9772, allocations: 0.9936 MB / 0.7329 GB, free: 181.7 MB / 0.5762 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004165/0.9776, allocations: 169.2 kB / 0.733 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00798/0.9856, allocations: 5.422 MB / 0.7383 GB, free: 179.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.398e-05/0.9857, allocations: 0 / 0.7383 GB, free: 179.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002397/0.9881, allocations: 1.805 MB / 0.7401 GB, free: 179 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002255/0.9903, allocations: 390.5 kB / 0.7405 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/1.002, allocations: 8.9 MB / 0.7492 GB, free: 175.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00219/1.004, allocations: 2.952 MB / 0.7521 GB, free: 173.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000763/1.005, allocations: 266.2 kB / 0.7523 GB, free: 173.9 MB / 0.5762 GB Notification: Performance of SimCode: time 7.21e-07/1.005, allocations: 3.25 kB / 0.7523 GB, free: 173.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.07053/1.075, allocations: 69.87 MB / 0.8205 GB, free: 110 MB / 0.5762 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches