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.001099/0.001099, allocations: 118.8 kB / 17.78 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.001252/0.001252, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2255/0.2255, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.001661, allocations: 79.81 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4386/0.4403, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.0177/0.4581, allocations: 14 MB / 0.5447 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01258/0.4707, allocations: 4.767 MB / 0.5493 GB, free: 14.86 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004949/0.4757, allocations: 92.62 kB / 0.5494 GB, free: 14.83 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009371/0.4851, allocations: 4.474 MB / 0.5538 GB, free: 10.34 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009681/0.4949, allocations: 2.229 MB / 0.556 GB, free: 8.105 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003865/0.4988, allocations: 1.131 MB / 0.5571 GB, free: 6.973 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01177/0.5106, allocations: 6.404 MB / 0.5633 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009192/0.5198, allocations: 5.442 MB / 0.5686 GB, free: 11.05 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004649/0.5245, allocations: 2.204 MB / 0.5708 GB, free: 8.836 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005389/0.5299, allocations: 2.971 MB / 0.5737 GB, free: 5.855 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002093/0.532, allocations: 496 kB / 0.5742 GB, free: 5.371 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004357/0.5364, allocations: 1.502 MB / 0.5756 GB, free: 3.867 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004502/0.541, allocations: 2.739 MB / 0.5783 GB, free: 1.121 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00718/0.5482, allocations: 3.115 MB / 0.5813 GB, free: 13.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01566/0.5639, allocations: 9.848 MB / 0.591 GB, free: 4.102 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.5639, allocations: 0 / 0.591 GB, free: 4.102 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.5639, allocations: 0 / 0.591 GB, free: 4.102 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004929/0.5644, allocations: 0 / 0.591 GB, free: 4.102 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.02246/0.5869, allocations: 6.982 MB / 0.5978 GB, free: 13.03 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.978e-05/0.587, allocations: 9.109 kB / 0.5978 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.012/0.599, allocations: 2.653 MB / 0.6004 GB, free: 10.36 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.6092, allocations: 3.927 MB / 0.6042 GB, free: 6.375 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003067/0.6096, allocations: 349.1 kB / 0.6045 GB, free: 6.031 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002092/0.6117, allocations: 455.7 kB / 0.605 GB, free: 5.586 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02808/0.6398, allocations: 13.99 MB / 0.6186 GB, free: 6.691 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001874/0.64, allocations: 63.47 kB / 0.6187 GB, free: 6.629 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006657/0.6407, allocations: 215.8 kB / 0.6189 GB, free: 6.418 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004455/0.6451, allocations: 2.539 MB / 0.6214 GB, free: 3.875 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02723/0.6724, allocations: 11.99 MB / 0.6331 GB, free: 7.871 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07994/0.7524, allocations: 53.3 MB / 0.6852 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01838/0.7708, allocations: 6.5 MB / 0.6915 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005064/0.7759, allocations: 3.603 MB / 0.695 GB, free: 6.922 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001769/0.7761, allocations: 37.27 kB / 0.6951 GB, free: 6.887 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.863e-05/0.7762, allocations: 55.88 kB / 0.6951 GB, free: 6.82 MB / 0.545 GB Notification: Performance of pre-optimization done (n=218): time 4.95e-06/0.7762, allocations: 0 / 0.6951 GB, free: 6.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=260): time 0.4764/1.253, allocations: 31.89 MB / 0.7262 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/1.253, allocations: 209.5 kB / 0.7264 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01091/1.264, allocations: 5.974 MB / 0.7323 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009255/1.265, allocations: 70.77 kB / 0.7324 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002667/1.267, allocations: 4.14 MB / 0.7364 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001441/1.269, allocations: 1.04 MB / 0.7374 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002087/1.271, allocations: 1.61 MB / 0.739 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.399e-05/1.271, allocations: 305.1 kB / 0.7393 GB, free: 153.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004175/1.275, allocations: 3.468 MB / 0.7427 GB, free: 152 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005919/1.281, allocations: 7.894 MB / 0.7504 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/1.292, allocations: 12.16 MB / 0.7622 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001856/1.293, allocations: 44 kB / 0.7623 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1012) (initialization): time 0.02341/1.316, allocations: 13.22 MB / 0.7752 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002364/1.316, allocations: 72 kB / 0.7753 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003181/1.317, allocations: 156 kB / 0.7754 GB, free: 118.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005542/1.322, allocations: 2.265 MB / 0.7776 GB, free: 116.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006327/1.329, allocations: 1.802 MB / 0.7794 GB, free: 114.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01881/1.347, allocations: 14.43 MB / 0.7935 GB, free: 99.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01019/1.358, allocations: 491.2 kB / 0.7939 GB, free: 99.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002108/1.36, allocations: 463.9 kB / 0.7944 GB, free: 98.91 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.007256/1.367, allocations: 2.758 MB / 0.7971 GB, free: 96.14 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002225/1.369, allocations: 0.52 MB / 0.7976 GB, free: 95.61 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01636/1.386, allocations: 7.127 MB / 0.8045 GB, free: 88.46 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.33e-05/1.386, allocations: 35.3 kB / 0.8046 GB, free: 88.43 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.84e-05/1.386, allocations: 8 kB / 0.8046 GB, free: 88.42 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.757e-05/1.386, allocations: 15.95 kB / 0.8046 GB, free: 88.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0321/1.418, allocations: 14.37 MB / 0.8186 GB, free: 74.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.773e-05/1.418, allocations: 3.562 kB / 0.8186 GB, free: 74.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003239/1.421, allocations: 455.2 kB / 0.8191 GB, free: 73.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006203/1.428, allocations: 2.042 MB / 0.8211 GB, free: 71.55 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005171/1.428, allocations: 47.98 kB / 0.8211 GB, free: 71.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01602/1.444, allocations: 13.82 MB / 0.8346 GB, free: 57.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/1.444, allocations: 0 / 0.8346 GB, free: 57.41 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01853/1.463, allocations: 11.34 MB / 0.8457 GB, free: 46 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002239/1.465, allocations: 0.6028 MB / 0.8463 GB, free: 45.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001906/1.467, allocations: 40 kB / 0.8463 GB, free: 45.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004273/1.471, allocations: 231.6 kB / 0.8465 GB, free: 45.11 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00103/1.472, allocations: 145.8 kB / 0.8467 GB, free: 44.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000515/1.473, allocations: 67.98 kB / 0.8467 GB, free: 44.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.007772/1.481, allocations: 3.794 MB / 0.8504 GB, free: 41.13 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.41e-07/1.481, allocations: 0 / 0.8504 GB, free: 41.13 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01058/1.491, allocations: 1.495 MB / 0.8519 GB, free: 39.64 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.001027/1.492, allocations: 182.8 kB / 0.8521 GB, free: 39.45 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01232/1.505, allocations: 8.441 MB / 0.8603 GB, free: 31.03 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.505, allocations: 4 kB / 0.8603 GB, free: 31.02 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00611/1.511, allocations: 3.668 MB / 0.8639 GB, free: 27.32 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006045/1.517, allocations: 0.677 MB / 0.8646 GB, free: 26.67 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02233/1.539, allocations: 13.98 MB / 0.8782 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004284/1.544, allocations: 4.242 MB / 0.8824 GB, free: 8.379 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005894/1.549, allocations: 2.547 MB / 0.8848 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001288/1.551, allocations: 347.4 kB / 0.8852 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of SimCode: time 1.263e-06/1.551, allocations: 0 / 0.8852 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of Templates: time 0.1138/1.665, allocations: 59.46 MB / 0.9432 GB, free: 10.31 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