Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 108.7 kB / 18.45 MB, free: 4.645 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.001374/0.001374, allocations: 183.1 kB / 19.38 MB, free: 3.723 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.302/1.302, allocations: 222.9 MB / 243.1 MB, free: 15.18 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.2061/0.2061, allocations: 44.19 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.34, allocations: 60.82 MB / 0.5196 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01011/0.3501, allocations: 9.796 MB / 0.5291 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007984/0.3581, allocations: 3.838 MB / 0.5329 GB, free: 9.875 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001617/0.3598, allocations: 55.44 kB / 0.5329 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004835/0.3646, allocations: 2.786 MB / 0.5357 GB, free: 8.008 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0047/0.3694, allocations: 1.705 MB / 0.5373 GB, free: 6.812 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001775/0.3712, allocations: 0.7025 MB / 0.538 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00564/0.3768, allocations: 3.972 MB / 0.5419 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005239/0.3821, allocations: 3.743 MB / 0.5455 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002723/0.3848, allocations: 1.452 MB / 0.547 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003075/0.3879, allocations: 1.959 MB / 0.5489 GB, free: 13.92 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001021/0.3889, allocations: 324 kB / 0.5492 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00288/0.3918, allocations: 1.217 MB / 0.5504 GB, free: 12.39 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002332/0.3942, allocations: 1.847 MB / 0.5522 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003698/0.3979, allocations: 2.124 MB / 0.5542 GB, free: 8.398 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007772/0.4057, allocations: 7.019 MB / 0.5611 GB, free: 1.355 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4057, allocations: 4 kB / 0.5611 GB, free: 1.352 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4057, allocations: 0 / 0.5611 GB, free: 1.352 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001493/0.4059, allocations: 0 / 0.5611 GB, free: 1.352 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: 1454 * Number of variables: 1454 Notification: Performance of Generate backend data structure: time 0.009176/0.4151, allocations: 4.521 MB / 0.5655 GB, free: 12.76 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.4151, allocations: 15.97 kB / 0.5655 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01593/0.4311, allocations: 2.464 MB / 0.5679 GB, free: 10.27 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006599/0.4377, allocations: 2.527 MB / 0.5704 GB, free: 7.684 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001711/0.4379, allocations: 226.2 kB / 0.5706 GB, free: 7.461 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008193/0.4387, allocations: 307.9 kB / 0.5709 GB, free: 7.16 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0152/0.4539, allocations: 9.289 MB / 0.58 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001156/0.4541, allocations: 43.58 kB / 0.58 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003879/0.4545, allocations: 147.9 kB / 0.5802 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002858/0.4574, allocations: 1.837 MB / 0.582 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01365/0.471, allocations: 7.682 MB / 0.5895 GB, free: 3.508 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03892/0.51, allocations: 34.67 MB / 0.6233 GB, free: 15.76 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004576/0.5146, allocations: 2.44 MB / 0.6257 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.5162, allocations: 1.296 MB / 0.627 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003206/0.5166, allocations: 331.7 kB / 0.6273 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/0.5166, allocations: 43.12 kB / 0.6273 GB, free: 11.43 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 2.815e-06/0.5166, allocations: 0 / 0.6273 GB, free: 11.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.0272/0.5438, allocations: 11.66 MB / 0.6387 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.835e-05/0.5439, allocations: 196.6 kB / 0.6389 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004715/0.5487, allocations: 3.63 MB / 0.6425 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002752/0.549, allocations: 45.7 kB / 0.6425 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001779/0.5508, allocations: 2.942 MB / 0.6454 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005567/0.5513, allocations: 0.5517 MB / 0.6459 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00122/0.5526, allocations: 1.126 MB / 0.647 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.523e-05/0.5527, allocations: 301.1 kB / 0.6473 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002464/0.5551, allocations: 1.822 MB / 0.6491 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004475/0.5596, allocations: 5.249 MB / 0.6542 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008448/0.5681, allocations: 7.612 MB / 0.6616 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001146/0.5682, allocations: 32 kB / 0.6617 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of matching and sorting (n=710) (initialization): time 0.0129/0.5811, allocations: 7.303 MB / 0.6688 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.719e-05/0.5813, allocations: 60 kB / 0.6689 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001818/0.5814, allocations: 120 kB / 0.669 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001637/0.5831, allocations: 0.687 MB / 0.6696 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003641/0.5867, allocations: 1.252 MB / 0.6709 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004984/0.5917, allocations: 4.344 MB / 0.6751 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003764/0.5955, allocations: 303.6 kB / 0.6754 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007538/0.5963, allocations: 343.9 kB / 0.6757 GB, free: 6.035 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 553 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (672): * Single equations (assignments): 668 * 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,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004884/0.6012, allocations: 2.041 MB / 0.6777 GB, free: 3.98 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/0.6022, allocations: 300.1 kB / 0.678 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004797/0.607, allocations: 2.256 MB / 0.6802 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.984e-05/0.6071, allocations: 16 kB / 0.6802 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.6071, allocations: 0 / 0.6802 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.828e-05/0.6071, allocations: 11.97 kB / 0.6802 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01328/0.6204, allocations: 6.272 MB / 0.6864 GB, free: 11.05 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.6205, allocations: 3.984 kB / 0.6864 GB, free: 11.05 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/0.6216, allocations: 219.7 kB / 0.6866 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001427/0.623, allocations: 0.5002 MB / 0.6871 GB, free: 10.33 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/0.6232, allocations: 31.98 kB / 0.6871 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004744/0.6279, allocations: 3.927 MB / 0.6909 GB, free: 6.23 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.6279, allocations: 0 / 0.6909 GB, free: 6.23 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007258/0.6352, allocations: 4.398 MB / 0.6952 GB, free: 1.801 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.6363, allocations: 353 kB / 0.6956 GB, free: 1.434 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007099/0.6371, allocations: 23.98 kB / 0.6956 GB, free: 1.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/0.6386, allocations: 83.84 kB / 0.6957 GB, free: 1.328 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002986/0.6389, allocations: 108.5 kB / 0.6958 GB, free: 1.223 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.639, allocations: 35.98 kB / 0.6958 GB, free: 1.188 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004798/0.6438, allocations: 2.254 MB / 0.698 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.41e-07/0.6439, allocations: 0 / 0.698 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006815/0.6507, allocations: 0.8867 MB / 0.6989 GB, free: 14.06 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.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 (107): * Single equations (assignments): 103 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008605/0.6516, allocations: 159 kB / 0.699 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008499/0.6601, allocations: 4.329 MB / 0.7032 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.6601, allocations: 8 kB / 0.7032 GB, free: 9.57 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002143/0.6623, allocations: 1.228 MB / 0.7044 GB, free: 8.328 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/0.6655, allocations: 419.3 kB / 0.7048 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01812/0.6836, allocations: 8.663 MB / 0.7133 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005115/0.6888, allocations: 3.14 MB / 0.7164 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/0.6899, allocations: 263.4 kB / 0.7166 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of SimCode: time 8.81e-07/0.6899, allocations: 0 / 0.7166 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of Templates: time 0.3452/1.035, allocations: 70.24 MB / 0.7852 GB, free: 138.6 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches