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.00105/0.00105, allocations: 115.7 kB / 17.78 MB, free: 5.254 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.001019/0.001019, allocations: 185 kB / 18.72 MB, free: 4.332 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.388/1.388, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2183/0.2183, allocations: 44.19 MB / 336.8 MB, free: 2.633 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 63.91 kB / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3777, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01005/0.3878, allocations: 9.793 MB / 0.5285 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008066/0.3959, allocations: 3.834 MB / 0.5322 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001943/0.3979, allocations: 54.47 kB / 0.5323 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005745/0.4036, allocations: 2.786 MB / 0.535 GB, free: 7.988 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005359/0.409, allocations: 1.712 MB / 0.5367 GB, free: 6.785 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002558/0.4116, allocations: 0.6986 MB / 0.5373 GB, free: 6.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006867/0.4185, allocations: 3.98 MB / 0.5412 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005976/0.4245, allocations: 3.736 MB / 0.5449 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002422/0.4269, allocations: 1.441 MB / 0.5463 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002744/0.4297, allocations: 1.966 MB / 0.5482 GB, free: 13.92 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008911/0.4306, allocations: 324 kB / 0.5485 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002449/0.4331, allocations: 1.213 MB / 0.5497 GB, free: 12.39 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001987/0.4351, allocations: 1.839 MB / 0.5515 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002328/0.4374, allocations: 2.121 MB / 0.5536 GB, free: 8.414 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007474/0.4449, allocations: 7.047 MB / 0.5604 GB, free: 1.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.4449, allocations: 0 / 0.5604 GB, free: 1.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4449, allocations: 0 / 0.5604 GB, free: 1.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000132/0.4451, allocations: 0 / 0.5604 GB, free: 1.34 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.00934/0.4544, allocations: 4.638 MB / 0.565 GB, free: 12.63 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.4545, allocations: 8.031 kB / 0.565 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01606/0.4705, allocations: 2.49 MB / 0.5674 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00554/0.4761, allocations: 2.539 MB / 0.5699 GB, free: 7.523 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.4763, allocations: 226.2 kB / 0.5701 GB, free: 7.301 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007375/0.477, allocations: 311.9 kB / 0.5704 GB, free: 6.996 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01352/0.4906, allocations: 9.289 MB / 0.5795 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-05/0.4907, allocations: 39.7 kB / 0.5795 GB, free: 13.04 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003532/0.4911, allocations: 143.9 kB / 0.5797 GB, free: 12.89 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0028/0.4939, allocations: 1.849 MB / 0.5815 GB, free: 11.04 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01272/0.5066, allocations: 7.682 MB / 0.589 GB, free: 3.34 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03645/0.5431, allocations: 34.74 MB / 0.6229 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004823/0.5479, allocations: 2.444 MB / 0.6253 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001656/0.5496, allocations: 1.286 MB / 0.6265 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003912/0.55, allocations: 327.7 kB / 0.6269 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.5501, allocations: 47.12 kB / 0.6269 GB, free: 11.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 3.427e-06/0.5501, allocations: 0 / 0.6269 GB, free: 11.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.02717/0.5773, allocations: 11.87 MB / 0.6385 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.5774, allocations: 200.5 kB / 0.6387 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004213/0.5816, allocations: 3.643 MB / 0.6422 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.5818, allocations: 45.7 kB / 0.6423 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001742/0.5835, allocations: 3.052 MB / 0.6453 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005579/0.5841, allocations: 0.5894 MB / 0.6458 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001313/0.5854, allocations: 1.127 MB / 0.6469 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.812e-05/0.5855, allocations: 309.1 kB / 0.6472 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002537/0.5881, allocations: 1.814 MB / 0.649 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004815/0.5929, allocations: 5.257 MB / 0.6541 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007816/0.6007, allocations: 7.607 MB / 0.6616 GB, free: 4.043 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.505e-05/0.6008, allocations: 36 kB / 0.6616 GB, free: 4.008 MB / 0.5137 GB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01277/0.6136, allocations: 7.31 MB / 0.6687 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.848e-05/0.6137, allocations: 60.06 kB / 0.6688 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001398/0.6139, allocations: 120.3 kB / 0.6689 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001737/0.6156, allocations: 0.69 MB / 0.6696 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003588/0.6192, allocations: 1.263 MB / 0.6708 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004935/0.6242, allocations: 4.34 MB / 0.6751 GB, free: 6.074 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003833/0.628, allocations: 307.7 kB / 0.6753 GB, free: 5.773 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006165/0.6286, allocations: 351.9 kB / 0.6757 GB, free: 5.43 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.003229/0.6319, allocations: 2.025 MB / 0.6777 GB, free: 3.391 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006343/0.6325, allocations: 317.9 kB / 0.678 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004279/0.6368, allocations: 2.256 MB / 0.6802 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.079e-05/0.6369, allocations: 16 kB / 0.6802 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.6369, allocations: 8 kB / 0.6802 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.6369, allocations: 7.969 kB / 0.6802 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01094/0.6478, allocations: 6.28 MB / 0.6863 GB, free: 10.44 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.6479, allocations: 0 / 0.6863 GB, free: 10.44 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.6489, allocations: 223.6 kB / 0.6865 GB, free: 10.22 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001369/0.6503, allocations: 0.5041 MB / 0.687 GB, free: 9.711 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001296/0.6504, allocations: 27.92 kB / 0.6871 GB, free: 9.684 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004512/0.655, allocations: 3.919 MB / 0.6909 GB, free: 5.625 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.655, allocations: 4.031 kB / 0.6909 GB, free: 5.621 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006536/0.6615, allocations: 4.414 MB / 0.6952 GB, free: 1.18 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/0.6627, allocations: 370.8 kB / 0.6956 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003387/0.663, allocations: 23.98 kB / 0.6956 GB, free: 0.7734 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.6641, allocations: 91.89 kB / 0.6957 GB, free: 0.6836 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002781/0.6644, allocations: 100.4 kB / 0.6958 GB, free: 0.5859 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-05/0.6645, allocations: 39.98 kB / 0.6958 GB, free: 0.5469 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003133/0.6677, allocations: 2.254 MB / 0.698 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.6e-07/0.6677, allocations: 0 / 0.698 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004277/0.672, allocations: 0.8829 MB / 0.6989 GB, free: 13.42 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.0003589/0.6723, allocations: 159 kB / 0.699 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008231/0.6806, allocations: 4.337 MB / 0.7033 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.6806, allocations: 0 / 0.7033 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001894/0.6825, allocations: 1.244 MB / 0.7045 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/0.6849, allocations: 416.8 kB / 0.7049 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/0.6987, allocations: 8.375 MB / 0.713 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003638/0.7023, allocations: 3.156 MB / 0.7161 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003579/0.706, allocations: 1.726 MB / 0.7178 GB, free: 9.926 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000606/0.7066, allocations: 215.4 kB / 0.718 GB, free: 9.715 MB / 0.5762 GB Notification: Performance of SimCode: time 9.72e-07/0.7066, allocations: 4 kB / 0.718 GB, free: 9.711 MB / 0.5762 GB Notification: Performance of Templates: time 0.37/1.077, allocations: 27.84 MB / 0.7452 GB, free: 177.9 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