Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001277, allocations: 116.1 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001402, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.228/0.228, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 79.81 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3971, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01144/0.4086, allocations: 9.495 MB / 0.5403 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009281/0.4179, allocations: 3.825 MB / 0.544 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003045/0.421, allocations: 60.5 kB / 0.5441 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006137/0.4272, allocations: 2.756 MB / 0.5468 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005292/0.4325, allocations: 1.616 MB / 0.5483 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002209/0.4348, allocations: 0.7174 MB / 0.549 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006912/0.4417, allocations: 3.891 MB / 0.5528 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006837/0.4486, allocations: 3.674 MB / 0.5564 GB, free: 7.582 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003594/0.4522, allocations: 1.398 MB / 0.5578 GB, free: 6.18 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004579/0.4568, allocations: 1.896 MB / 0.5596 GB, free: 4.277 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001708/0.4586, allocations: 312 kB / 0.5599 GB, free: 3.973 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003524/0.4621, allocations: 1.19 MB / 0.5611 GB, free: 2.781 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002738/0.4649, allocations: 1.746 MB / 0.5628 GB, free: 1.031 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00442/0.4693, allocations: 2.008 MB / 0.5648 GB, free: 15.01 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0137/0.4831, allocations: 6.697 MB / 0.5713 GB, free: 8.289 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.4831, allocations: 0 / 0.5713 GB, free: 8.289 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.4832, allocations: 0 / 0.5713 GB, free: 8.289 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003172/0.4835, allocations: 0 / 0.5713 GB, free: 8.289 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01191/0.4954, allocations: 4.45 MB / 0.5756 GB, free: 3.766 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.4955, allocations: 12.03 kB / 0.5757 GB, free: 3.754 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01597/0.5115, allocations: 2.467 MB / 0.5781 GB, free: 1.281 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006128/0.5176, allocations: 2.473 MB / 0.5805 GB, free: 14.75 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002022/0.5179, allocations: 214 kB / 0.5807 GB, free: 14.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009364/0.5188, allocations: 292 kB / 0.581 GB, free: 14.25 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01878/0.5376, allocations: 8.72 MB / 0.5895 GB, free: 4.891 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001549/0.5378, allocations: 43.64 kB / 0.5895 GB, free: 4.848 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004744/0.5383, allocations: 139.9 kB / 0.5897 GB, free: 4.711 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002688/0.541, allocations: 1.665 MB / 0.5913 GB, free: 3.043 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01441/0.5554, allocations: 7.211 MB / 0.5983 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04324/0.5987, allocations: 33.48 MB / 0.631 GB, free: 9.352 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005563/0.6044, allocations: 2.447 MB / 0.6334 GB, free: 6.758 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001958/0.6064, allocations: 1.282 MB / 0.6347 GB, free: 5.465 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003781/0.6068, allocations: 327.7 kB / 0.635 GB, free: 5.09 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.926e-05/0.6068, allocations: 47.12 kB / 0.635 GB, free: 5.035 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 7.023e-06/0.6069, allocations: 3.984 kB / 0.635 GB, free: 5.031 MB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.02877/0.6356, allocations: 11.65 MB / 0.6464 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.6358, allocations: 200.5 kB / 0.6466 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005147/0.6409, allocations: 3.586 MB / 0.6501 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000395/0.6414, allocations: 45.7 kB / 0.6501 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002438/0.6438, allocations: 2.936 MB / 0.653 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008062/0.6446, allocations: 0.5815 MB / 0.6536 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001502/0.6462, allocations: 1.107 MB / 0.6547 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.6463, allocations: 309.1 kB / 0.6549 GB, free: 420 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002928/0.6492, allocations: 1.81 MB / 0.6567 GB, free: 14.59 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0056/0.6548, allocations: 5.182 MB / 0.6618 GB, free: 7.711 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009632/0.6645, allocations: 7.517 MB / 0.6691 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001195/0.6647, allocations: 32 kB / 0.6691 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of matching and sorting (n=701) (initialization): time 0.01536/0.68, allocations: 7.242 MB / 0.6762 GB, free: 7.234 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.753e-05/0.6802, allocations: 56 kB / 0.6763 GB, free: 7.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001365/0.6803, allocations: 120 kB / 0.6764 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001762/0.6821, allocations: 0.6809 MB / 0.6771 GB, free: 6.379 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004256/0.6863, allocations: 1.236 MB / 0.6783 GB, free: 5.141 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005601/0.692, allocations: 4.357 MB / 0.6825 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003948/0.6959, allocations: 299.6 kB / 0.6828 GB, free: 360 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008552/0.6968, allocations: 332 kB / 0.6831 GB, free: 28 kB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.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 (663): * Single equations (assignments): 659 * 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.00332/0.7001, allocations: 1.955 MB / 0.685 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006262/0.7008, allocations: 313.9 kB / 0.6853 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004427/0.7052, allocations: 2.248 MB / 0.6875 GB, free: 11.49 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.887e-05/0.7053, allocations: 16 kB / 0.6875 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.7053, allocations: 4 kB / 0.6875 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.741e-05/0.7053, allocations: 11.97 kB / 0.6875 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/0.7161, allocations: 6.131 MB / 0.6935 GB, free: 5.258 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.7162, allocations: 4 kB / 0.6935 GB, free: 5.254 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.7172, allocations: 219.7 kB / 0.6938 GB, free: 5.039 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/0.7187, allocations: 0.4924 MB / 0.6942 GB, free: 4.543 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/0.7188, allocations: 31.98 kB / 0.6943 GB, free: 4.512 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004848/0.7236, allocations: 3.923 MB / 0.6981 GB, free: 460 kB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.7237, allocations: 0 / 0.6981 GB, free: 460 kB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006642/0.7303, allocations: 4.42 MB / 0.7024 GB, free: 12 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008497/0.7312, allocations: 366.8 kB / 0.7028 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003072/0.7315, allocations: 27.98 kB / 0.7028 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.7326, allocations: 75.91 kB / 0.7029 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002769/0.7329, allocations: 104.5 kB / 0.703 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.733, allocations: 35.98 kB / 0.703 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003441/0.7365, allocations: 2.229 MB / 0.7052 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7365, allocations: 0 / 0.7052 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004375/0.7408, allocations: 0.8437 MB / 0.706 GB, free: 8.316 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.0004029/0.7413, allocations: 155.1 kB / 0.7061 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007869/0.7492, allocations: 4.302 MB / 0.7103 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.7492, allocations: 4.375 kB / 0.7103 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002297/0.7515, allocations: 1.236 MB / 0.7116 GB, free: 2.613 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/0.7541, allocations: 393.5 kB / 0.7119 GB, free: 2.23 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01679/0.771, allocations: 8.06 MB / 0.7198 GB, free: 10.12 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003523/0.7745, allocations: 3.038 MB / 0.7228 GB, free: 7.062 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004201/0.7788, allocations: 1.714 MB / 0.7244 GB, free: 5.344 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006402/0.7794, allocations: 215.3 kB / 0.7246 GB, free: 5.133 MB / 0.5763 GB Notification: Performance of SimCode: time 1.322e-06/0.7794, allocations: 0 / 0.7246 GB, free: 5.133 MB / 0.5763 GB Notification: Performance of Templates: time 0.3008/1.08, allocations: 27.07 MB / 0.7511 GB, free: 168.9 MB / 0.5763 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches