Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.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.FrameForcesAndTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2") translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00147/0.00147, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001712/0.001712, allocations: 202 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, 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.2231/0.2231, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 79.81 kB / 481.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4413/0.4427, allocations: 62.43 MB / 0.531 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.01838/0.4611, allocations: 13.99 MB / 0.5447 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01429/0.4754, allocations: 4.763 MB / 0.5493 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004763/0.4802, allocations: 91.75 kB / 0.5494 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01126/0.4916, allocations: 4.482 MB / 0.5538 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009045/0.5008, allocations: 2.225 MB / 0.556 GB, free: 8.223 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003335/0.5041, allocations: 1.135 MB / 0.5571 GB, free: 7.086 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0109/0.515, allocations: 6.404 MB / 0.5633 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008865/0.5239, allocations: 5.45 MB / 0.5686 GB, free: 11.15 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005801/0.5298, allocations: 2.2 MB / 0.5708 GB, free: 8.941 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006187/0.536, allocations: 2.987 MB / 0.5737 GB, free: 5.945 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002431/0.5385, allocations: 492 kB / 0.5742 GB, free: 5.465 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005023/0.5435, allocations: 1.49 MB / 0.5756 GB, free: 3.973 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004869/0.5484, allocations: 2.747 MB / 0.5783 GB, free: 1.219 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007793/0.5562, allocations: 3.107 MB / 0.5813 GB, free: 14.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01674/0.573, allocations: 9.86 MB / 0.591 GB, free: 4.195 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.058e-05/0.5731, allocations: 0 / 0.591 GB, free: 4.195 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.819e-06/0.5731, allocations: 4 kB / 0.591 GB, free: 4.191 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005485/0.5736, allocations: 3.938 kB / 0.591 GB, free: 4.188 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2021 * Number of variables: 2021 Notification: Performance of Generate backend data structure: time 0.01937/0.593, allocations: 6.963 MB / 0.5978 GB, free: 13.13 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.5931, allocations: 13.11 kB / 0.5978 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01215/0.6052, allocations: 2.649 MB / 0.6004 GB, free: 10.46 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/0.6155, allocations: 3.923 MB / 0.6042 GB, free: 6.484 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004257/0.616, allocations: 337.1 kB / 0.6045 GB, free: 6.152 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002302/0.6183, allocations: 467.8 kB / 0.605 GB, free: 5.695 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02947/0.6478, allocations: 13.97 MB / 0.6186 GB, free: 6.812 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001971/0.648, allocations: 67.45 kB / 0.6187 GB, free: 6.746 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006004/0.6486, allocations: 215.8 kB / 0.6189 GB, free: 6.535 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004255/0.6529, allocations: 2.539 MB / 0.6214 GB, free: 3.992 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02557/0.6785, allocations: 11.99 MB / 0.6331 GB, free: 7.988 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07551/0.754, allocations: 53.31 MB / 0.6852 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01749/0.7715, allocations: 6.508 MB / 0.6915 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004584/0.7762, allocations: 3.601 MB / 0.695 GB, free: 7.027 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002551/0.7764, allocations: 37.27 kB / 0.6951 GB, free: 6.992 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.135e-05/0.7765, allocations: 59.88 kB / 0.6951 GB, free: 6.922 MB / 0.545 GB Notification: Performance of pre-optimization done (n=218): time 4.889e-06/0.7765, allocations: 0 / 0.6951 GB, free: 6.922 MB / 0.545 GB Notification: Performance of matching and sorting (n=260): time 0.4735/1.25, allocations: 31.89 MB / 0.7263 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.83e-05/1.25, allocations: 210.2 kB / 0.7265 GB, free: 160 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009803/1.26, allocations: 5.965 MB / 0.7323 GB, free: 158 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008516/1.261, allocations: 68.3 kB / 0.7323 GB, free: 158 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00267/1.264, allocations: 4.142 MB / 0.7364 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001295/1.265, allocations: 1.041 MB / 0.7374 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002191/1.267, allocations: 1.613 MB / 0.739 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.754e-05/1.267, allocations: 301.1 kB / 0.7393 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004225/1.271, allocations: 3.469 MB / 0.7427 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006122/1.277, allocations: 7.896 MB / 0.7504 GB, free: 145.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/1.29, allocations: 12.16 MB / 0.7622 GB, free: 132.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001478/1.29, allocations: 44 kB / 0.7623 GB, free: 132.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1012) (initialization): time 0.0238/1.314, allocations: 13.23 MB / 0.7752 GB, free: 119 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.805e-05/1.314, allocations: 68 kB / 0.7753 GB, free: 119 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000149/1.314, allocations: 156.1 kB / 0.7754 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005073/1.319, allocations: 2.264 MB / 0.7776 GB, free: 116.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005821/1.325, allocations: 1.805 MB / 0.7794 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01411/1.339, allocations: 14.42 MB / 0.7935 GB, free: 100 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007168/1.346, allocations: 0.4884 MB / 0.7939 GB, free: 99.55 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001325/1.348, allocations: 463.6 kB / 0.7944 GB, free: 99.11 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 703 * Number of states: 0 () * Number of discrete variables: 62 (frameTorque2.torqueArrow.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (940): * Single equations (assignments): 935 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004189/1.352, allocations: 2.76 MB / 0.7971 GB, free: 96.34 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001195/1.353, allocations: 0.5239 MB / 0.7976 GB, free: 95.81 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/1.364, allocations: 7.131 MB / 0.8046 GB, free: 88.65 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.585e-05/1.364, allocations: 31.94 kB / 0.8046 GB, free: 88.62 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.06e-05/1.364, allocations: 12 kB / 0.8046 GB, free: 88.61 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.142e-05/1.364, allocations: 12.52 kB / 0.8046 GB, free: 88.59 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02259/1.387, allocations: 14.36 MB / 0.8186 GB, free: 74.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/1.387, allocations: 4 kB / 0.8186 GB, free: 74.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002211/1.389, allocations: 451.2 kB / 0.8191 GB, free: 73.79 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004724/1.394, allocations: 2.038 MB / 0.8211 GB, free: 71.74 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000538/1.394, allocations: 44 kB / 0.8211 GB, free: 71.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01465/1.409, allocations: 13.82 MB / 0.8346 GB, free: 57.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/1.409, allocations: 7.938 kB / 0.8346 GB, free: 57.61 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01519/1.424, allocations: 11.34 MB / 0.8457 GB, free: 46.19 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001864/1.426, allocations: 0.6067 MB / 0.8463 GB, free: 45.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001034/1.427, allocations: 40 kB / 0.8463 GB, free: 45.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002545/1.43, allocations: 227.6 kB / 0.8465 GB, free: 45.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000538/1.43, allocations: 149.7 kB / 0.8467 GB, free: 45.15 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000207/1.43, allocations: 64 kB / 0.8467 GB, free: 45.09 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005242/1.436, allocations: 3.797 MB / 0.8504 GB, free: 41.32 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/1.436, allocations: 0 / 0.8504 GB, free: 41.32 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008715/1.444, allocations: 1.492 MB / 0.8519 GB, free: 39.83 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (202): * Single equations (assignments): 197 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (5,17,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007876/1.445, allocations: 181.8 kB / 0.8521 GB, free: 39.64 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01153/1.457, allocations: 8.447 MB / 0.8603 GB, free: 31.21 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.251e-06/1.457, allocations: 4.062 kB / 0.8603 GB, free: 31.21 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005358/1.462, allocations: 3.674 MB / 0.8639 GB, free: 27.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003921/1.466, allocations: 0.6537 MB / 0.8646 GB, free: 26.86 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01853/1.485, allocations: 13.99 MB / 0.8782 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00361/1.488, allocations: 4.238 MB / 0.8824 GB, free: 8.578 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005026/1.493, allocations: 2.555 MB / 0.8848 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/1.494, allocations: 343.4 kB / 0.8852 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of SimCode: time 5.21e-07/1.494, allocations: 0 / 0.8852 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of Templates: time 0.1134/1.608, allocations: 59.47 MB / 0.9432 GB, free: 10.5 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameForcesAndTorques2/FrameForcesAndTorques2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches