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.001245/0.001245, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001349/0.001349, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1937/0.1937, allocations: 46.1 MB / 345 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 79.86 kB / 482 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2813, allocations: 62.45 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.01358/0.2949, allocations: 14 MB / 0.5453 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009068/0.304, allocations: 4.764 MB / 0.55 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002182/0.3062, allocations: 92.66 kB / 0.5501 GB, free: 14.86 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007404/0.3137, allocations: 4.474 MB / 0.5544 GB, free: 10.37 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005691/0.3194, allocations: 2.298 MB / 0.5567 GB, free: 8.066 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002469/0.3219, allocations: 1.127 MB / 0.5578 GB, free: 6.938 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007873/0.3298, allocations: 6.409 MB / 0.5641 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005649/0.3354, allocations: 5.454 MB / 0.5694 GB, free: 10.99 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003284/0.3387, allocations: 2.208 MB / 0.5715 GB, free: 8.777 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003882/0.3427, allocations: 2.983 MB / 0.5744 GB, free: 5.785 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001138/0.3438, allocations: 492 kB / 0.5749 GB, free: 5.305 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002707/0.3465, allocations: 1.494 MB / 0.5764 GB, free: 3.809 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002604/0.3492, allocations: 2.763 MB / 0.5791 GB, free: 1.039 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003787/0.353, allocations: 3.115 MB / 0.5821 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009861/0.3628, allocations: 9.811 MB / 0.5917 GB, free: 4.062 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3629, allocations: 0 / 0.5917 GB, free: 4.062 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3629, allocations: 0 / 0.5917 GB, free: 4.062 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002652/0.3632, allocations: 0 / 0.5917 GB, free: 4.062 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.014/0.3772, allocations: 6.794 MB / 0.5983 GB, free: 13.19 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3772, allocations: 13.11 kB / 0.5983 GB, free: 13.18 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01043/0.3877, allocations: 2.625 MB / 0.6009 GB, free: 10.54 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007683/0.3954, allocations: 3.906 MB / 0.6047 GB, free: 6.574 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002423/0.3956, allocations: 337.1 kB / 0.605 GB, free: 6.242 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001177/0.3968, allocations: 459.7 kB / 0.6055 GB, free: 5.793 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02259/0.4194, allocations: 13.98 MB / 0.6191 GB, free: 6.902 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001717/0.4196, allocations: 63.44 kB / 0.6192 GB, free: 6.84 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006106/0.4202, allocations: 211.8 kB / 0.6194 GB, free: 6.633 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003972/0.4242, allocations: 2.543 MB / 0.6219 GB, free: 4.086 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02182/0.4461, allocations: 12 MB / 0.6336 GB, free: 8.078 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06039/0.5065, allocations: 53.2 MB / 0.6856 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01604/0.5226, allocations: 6.504 MB / 0.6919 GB, free: 10.83 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004228/0.5268, allocations: 3.599 MB / 0.6954 GB, free: 7.219 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001724/0.527, allocations: 41.25 kB / 0.6955 GB, free: 7.18 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.816e-05/0.5271, allocations: 59.81 kB / 0.6955 GB, free: 7.109 MB / 0.545 GB Notification: Performance of pre-optimization done (n=218): time 4.358e-06/0.5271, allocations: 0 / 0.6955 GB, free: 7.109 MB / 0.545 GB Notification: Performance of matching and sorting (n=260): time 0.2968/0.8239, allocations: 31.58 MB / 0.7264 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.278e-05/0.824, allocations: 206.8 kB / 0.7266 GB, free: 160 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007177/0.8312, allocations: 5.956 MB / 0.7324 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004939/0.8317, allocations: 61.52 kB / 0.7324 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001679/0.8334, allocations: 3.994 MB / 0.7363 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008502/0.8343, allocations: 0.9949 MB / 0.7373 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001693/0.836, allocations: 1.606 MB / 0.7389 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.067e-05/0.836, allocations: 301.1 kB / 0.7392 GB, free: 153 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003671/0.8397, allocations: 3.47 MB / 0.7425 GB, free: 151.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004839/0.8445, allocations: 7.888 MB / 0.7503 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009351/0.8539, allocations: 12.16 MB / 0.7621 GB, free: 132.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.913e-05/0.854, allocations: 44 kB / 0.7622 GB, free: 132.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1012) (initialization): time 0.01825/0.8723, allocations: 13.22 MB / 0.7751 GB, free: 119.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.436e-05/0.8724, allocations: 72 kB / 0.7751 GB, free: 119 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001091/0.8725, allocations: 152 kB / 0.7753 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004617/0.8771, allocations: 2.261 MB / 0.7775 GB, free: 116.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005053/0.8822, allocations: 1.801 MB / 0.7793 GB, free: 114.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/0.8955, allocations: 14.41 MB / 0.7933 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005803/0.9013, allocations: 487.1 kB / 0.7938 GB, free: 99.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001099/0.9025, allocations: 466.9 kB / 0.7942 GB, free: 99.2 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.003587/0.9061, allocations: 2.766 MB / 0.7969 GB, free: 96.43 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009103/0.907, allocations: 0.4936 MB / 0.7974 GB, free: 95.93 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009527/0.9165, allocations: 7.127 MB / 0.8044 GB, free: 88.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-05/0.9166, allocations: 31.94 kB / 0.8044 GB, free: 88.74 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/0.9166, allocations: 8 kB / 0.8044 GB, free: 88.73 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.857e-05/0.9166, allocations: 11.95 kB / 0.8044 GB, free: 88.72 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01902/0.9357, allocations: 14.37 MB / 0.8185 GB, free: 74.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/0.9357, allocations: 0 / 0.8185 GB, free: 74.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00207/0.9378, allocations: 451.2 kB / 0.8189 GB, free: 73.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004361/0.9422, allocations: 2.042 MB / 0.8209 GB, free: 71.86 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000422/0.9426, allocations: 43.98 kB / 0.8209 GB, free: 71.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/0.956, allocations: 13.81 MB / 0.8344 GB, free: 57.74 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.9561, allocations: 0 / 0.8344 GB, free: 57.74 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01394/0.97, allocations: 11.32 MB / 0.8455 GB, free: 46.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001542/0.9716, allocations: 0.5687 MB / 0.846 GB, free: 45.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008536/0.9725, allocations: 44 kB / 0.8461 GB, free: 45.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002154/0.9746, allocations: 231.5 kB / 0.8463 GB, free: 45.48 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004541/0.9751, allocations: 153.8 kB / 0.8464 GB, free: 45.33 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001952/0.9753, allocations: 60 kB / 0.8465 GB, free: 45.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004451/0.9798, allocations: 3.797 MB / 0.8502 GB, free: 41.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.41e-07/0.9798, allocations: 0 / 0.8502 GB, free: 41.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006294/0.9861, allocations: 1.491 MB / 0.8517 GB, free: 40.01 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.0005145/0.9866, allocations: 181 kB / 0.8518 GB, free: 39.83 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01011/0.9967, allocations: 8.43 MB / 0.8601 GB, free: 31.42 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.9968, allocations: 0 / 0.8601 GB, free: 31.42 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005089/1.002, allocations: 3.678 MB / 0.8637 GB, free: 27.71 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003446/1.005, allocations: 0.6624 MB / 0.8643 GB, free: 27.06 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01865/1.024, allocations: 14.34 MB / 0.8783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003383/1.027, allocations: 4.219 MB / 0.8824 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001521/1.029, allocations: 395.4 kB / 0.8828 GB, free: 8.066 MB / 0.5606 GB Notification: Performance of SimCode: time 7.81e-07/1.029, allocations: 3.938 kB / 0.8828 GB, free: 8.062 MB / 0.5606 GB Notification: Performance of Templates: time 0.3688/1.398, allocations: 134.2 MB / 1.014 GB, free: 162.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameForcesAndTorques2/FrameForcesAndTorques2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches