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.001061/0.001061, allocations: 113.4 kB / 17.78 MB, free: 5.285 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.0009941/0.0009941, allocations: 188.9 kB / 18.71 MB, free: 4.363 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.34/1.34, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2017/0.2017, allocations: 44.18 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 59.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3612, allocations: 60.82 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01013/0.3714, allocations: 9.793 MB / 0.5285 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008734/0.3802, allocations: 3.834 MB / 0.5322 GB, free: 9.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002111/0.3823, allocations: 59.03 kB / 0.5323 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005163/0.3876, allocations: 2.782 MB / 0.535 GB, free: 7.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00505/0.3927, allocations: 1.717 MB / 0.5367 GB, free: 6.785 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001944/0.3946, allocations: 0.6982 MB / 0.5373 GB, free: 6.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006819/0.4014, allocations: 3.977 MB / 0.5412 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004808/0.4063, allocations: 3.739 MB / 0.5449 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002567/0.4089, allocations: 1.448 MB / 0.5463 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003131/0.4121, allocations: 1.959 MB / 0.5482 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007637/0.4128, allocations: 327.9 kB / 0.5485 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002213/0.4151, allocations: 1.217 MB / 0.5497 GB, free: 12.39 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00179/0.4169, allocations: 1.847 MB / 0.5515 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002388/0.4193, allocations: 2.124 MB / 0.5536 GB, free: 8.402 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0085/0.4278, allocations: 7.016 MB / 0.5604 GB, free: 1.363 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.02e-05/0.4278, allocations: 7.984 kB / 0.5604 GB, free: 1.355 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.4278, allocations: 0 / 0.5604 GB, free: 1.355 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001874/0.428, allocations: 0 / 0.5604 GB, free: 1.355 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.009481/0.4375, allocations: 4.517 MB / 0.5649 GB, free: 12.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.4376, allocations: 12.03 kB / 0.5649 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01639/0.454, allocations: 2.464 MB / 0.5673 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005913/0.4599, allocations: 2.531 MB / 0.5697 GB, free: 7.691 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/0.4601, allocations: 226.2 kB / 0.57 GB, free: 7.469 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006468/0.4608, allocations: 307.9 kB / 0.5703 GB, free: 7.168 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01322/0.474, allocations: 9.289 MB / 0.5793 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001017/0.4741, allocations: 43.58 kB / 0.5794 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003513/0.4745, allocations: 147.9 kB / 0.5795 GB, free: 13.06 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002759/0.4773, allocations: 1.837 MB / 0.5813 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01324/0.4905, allocations: 7.692 MB / 0.5888 GB, free: 3.508 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03922/0.5298, allocations: 34.68 MB / 0.6227 GB, free: 15.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004786/0.5346, allocations: 2.44 MB / 0.6251 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001614/0.5363, allocations: 1.289 MB / 0.6263 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003714/0.5366, allocations: 327.8 kB / 0.6266 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.5367, allocations: 51.11 kB / 0.6267 GB, free: 11.43 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 3.717e-06/0.5367, allocations: 0 / 0.6267 GB, free: 11.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.02722/0.5639, allocations: 11.65 MB / 0.6381 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001273/0.5641, allocations: 192.6 kB / 0.6382 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004591/0.5687, allocations: 3.63 MB / 0.6418 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001785/0.5689, allocations: 45.7 kB / 0.6418 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001928/0.5708, allocations: 2.938 MB / 0.6447 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006677/0.5715, allocations: 0.5555 MB / 0.6452 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001328/0.5728, allocations: 1.13 MB / 0.6463 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.573, allocations: 301.1 kB / 0.6466 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002554/0.5755, allocations: 1.818 MB / 0.6484 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004435/0.58, allocations: 5.257 MB / 0.6535 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008052/0.588, allocations: 7.608 MB / 0.661 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-05/0.5881, allocations: 32 kB / 0.661 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01157/0.5997, allocations: 7.3 MB / 0.6681 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.058e-05/0.5998, allocations: 60.19 kB / 0.6682 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/0.5999, allocations: 128 kB / 0.6683 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001556/0.6015, allocations: 0.6759 MB / 0.669 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00353/0.605, allocations: 1.255 MB / 0.6702 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005017/0.6101, allocations: 4.343 MB / 0.6744 GB, free: 6.672 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003926/0.614, allocations: 307.6 kB / 0.6747 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006071/0.6146, allocations: 343.9 kB / 0.6751 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.003124/0.6178, allocations: 2.037 MB / 0.677 GB, free: 3.984 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005208/0.6183, allocations: 300.1 kB / 0.6773 GB, free: 3.688 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00407/0.6224, allocations: 2.264 MB / 0.6795 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/0.6224, allocations: 16 kB / 0.6796 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.6224, allocations: 0 / 0.6796 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.6224, allocations: 11.98 kB / 0.6796 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/0.6333, allocations: 6.276 MB / 0.6857 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.6333, allocations: 0 / 0.6857 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.6343, allocations: 215.7 kB / 0.6859 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001329/0.6357, allocations: 0.5041 MB / 0.6864 GB, free: 10.32 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-05/0.6358, allocations: 27.98 kB / 0.6864 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004255/0.64, allocations: 3.915 MB / 0.6903 GB, free: 6.242 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.6401, allocations: 0 / 0.6903 GB, free: 6.242 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006438/0.6465, allocations: 4.398 MB / 0.6945 GB, free: 1.812 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/0.6478, allocations: 357 kB / 0.6949 GB, free: 1.441 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00032/0.6481, allocations: 23.94 kB / 0.6949 GB, free: 1.418 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/0.6492, allocations: 91.89 kB / 0.695 GB, free: 1.328 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002772/0.6495, allocations: 96.52 kB / 0.6951 GB, free: 1.234 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.776e-05/0.6496, allocations: 35.97 kB / 0.6951 GB, free: 1.199 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00324/0.6529, allocations: 2.258 MB / 0.6973 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6529, allocations: 0 / 0.6973 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00382/0.6567, allocations: 0.8828 MB / 0.6982 GB, free: 14.07 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.0003738/0.6571, allocations: 163 kB / 0.6983 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006415/0.6635, allocations: 4.333 MB / 0.7026 GB, free: 9.582 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6635, allocations: 4 kB / 0.7026 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001728/0.6653, allocations: 1.236 MB / 0.7038 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.0022/0.6675, allocations: 424.3 kB / 0.7042 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/0.6802, allocations: 8.246 MB / 0.7122 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003124/0.6834, allocations: 3.16 MB / 0.7153 GB, free: 12.44 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003506/0.6869, allocations: 1.73 MB / 0.717 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005738/0.6875, allocations: 215.4 kB / 0.7172 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of SimCode: time 9.82e-07/0.6875, allocations: 0 / 0.7172 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.3014/0.9889, allocations: 27.55 MB / 0.7441 GB, free: 177.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins/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