Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.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.FrameForcesAndTorques3,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.FrameForcesAndTorques3") translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,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.FrameForcesAndTorques3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001272/0.001272, allocations: 115.4 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001374, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2357/0.2357, allocations: 46.1 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 80.33 kB / 417 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1259, allocations: 62.45 MB / 479.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3): time 0.3559/0.4818, allocations: 72.64 MB / 0.5392 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04183/0.5237, allocations: 14.3 MB / 0.5532 GB, free: 8.844 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01788/0.5416, allocations: 317.3 kB / 0.5535 GB, free: 8.797 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008157/0.5499, allocations: 4.314 MB / 0.5577 GB, free: 5.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006075/0.556, allocations: 2.034 MB / 0.5597 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002775/0.5588, allocations: 1.085 MB / 0.5607 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008895/0.5677, allocations: 6.74 MB / 0.5673 GB, free: 13.54 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007788/0.5755, allocations: 5.842 MB / 0.573 GB, free: 7.66 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004135/0.5797, allocations: 2.266 MB / 0.5752 GB, free: 5.387 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004778/0.5845, allocations: 3.248 MB / 0.5784 GB, free: 2.129 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001286/0.5858, allocations: 500 kB / 0.5789 GB, free: 1.641 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003244/0.5891, allocations: 1.514 MB / 0.5803 GB, free: 128 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002736/0.5918, allocations: 2.728 MB / 0.583 GB, free: 13.39 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003665/0.5955, allocations: 3.08 MB / 0.586 GB, free: 10.29 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01072/0.6062, allocations: 9.487 MB / 0.5953 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.6063, allocations: 0 / 0.5953 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.6063, allocations: 0 / 0.5953 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003354/0.6067, allocations: 0 / 0.5953 GB, free: 0.7773 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: 1985 * Number of variables: 1985 Notification: Performance of Generate backend data structure: time 0.01713/0.6238, allocations: 6.672 MB / 0.6018 GB, free: 10.03 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.6239, allocations: 17.05 kB / 0.6018 GB, free: 10.01 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0119/0.6358, allocations: 2.575 MB / 0.6043 GB, free: 7.426 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008837/0.6446, allocations: 3.811 MB / 0.6081 GB, free: 3.555 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00036/0.645, allocations: 340.9 kB / 0.6084 GB, free: 3.219 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002221/0.6473, allocations: 444.1 kB / 0.6088 GB, free: 2.785 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02815/0.6754, allocations: 13.99 MB / 0.6225 GB, free: 3.965 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002142/0.6757, allocations: 55.52 kB / 0.6225 GB, free: 3.91 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001045/0.6767, allocations: 211.8 kB / 0.6227 GB, free: 3.703 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00459/0.6813, allocations: 2.535 MB / 0.6252 GB, free: 1.164 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0263/0.7077, allocations: 12.14 MB / 0.6371 GB, free: 5.004 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06757/0.7753, allocations: 51.93 MB / 0.6878 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01629/0.7916, allocations: 6.243 MB / 0.6939 GB, free: 9.359 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004933/0.7966, allocations: 3.862 MB / 0.6976 GB, free: 5.488 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02088/0.8175, allocations: 13.23 MB / 0.7106 GB, free: 8.09 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.769e-05/0.8176, allocations: 56.56 kB / 0.7106 GB, free: 8.027 MB / 0.545 GB Notification: Performance of pre-optimization done (n=228): time 5.911e-06/0.8176, allocations: 0 / 0.7106 GB, free: 8.027 MB / 0.545 GB Notification: Performance of matching and sorting (n=270): time 0.3461/1.164, allocations: 29.43 MB / 0.7394 GB, free: 193.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.056e-05/1.164, allocations: 208.9 kB / 0.7395 GB, free: 193 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006299/1.17, allocations: 4.944 MB / 0.7444 GB, free: 191.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005765/1.171, allocations: 68.86 kB / 0.7444 GB, free: 191.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002081/1.173, allocations: 3.794 MB / 0.7481 GB, free: 188.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001155/1.174, allocations: 1.02 MB / 0.7491 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002057/1.176, allocations: 1.511 MB / 0.7506 GB, free: 186.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.736e-05/1.176, allocations: 305.1 kB / 0.7509 GB, free: 186.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004164/1.18, allocations: 3.289 MB / 0.7541 GB, free: 185.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005949/1.186, allocations: 7.337 MB / 0.7613 GB, free: 177.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/1.197, allocations: 11.4 MB / 0.7724 GB, free: 164.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/1.197, allocations: 43.88 kB / 0.7725 GB, free: 164.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=960) (initialization): time 0.01993/1.217, allocations: 12.5 MB / 0.7847 GB, free: 151.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.997e-05/1.217, allocations: 64 kB / 0.7847 GB, free: 151.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/1.217, allocations: 144 kB / 0.7849 GB, free: 151.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00502/1.222, allocations: 2.249 MB / 0.7871 GB, free: 149.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005372/1.228, allocations: 1.692 MB / 0.7887 GB, free: 147.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01442/1.242, allocations: 14.39 MB / 0.8028 GB, free: 133.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007351/1.25, allocations: 444.3 kB / 0.8032 GB, free: 132.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001621/1.251, allocations: 439.6 kB / 0.8036 GB, free: 132.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * Number of states: 0 () * Number of discrete variables: 59 (frameTorque2.torqueArrow.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],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],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (888): * Single equations (assignments): 883 * 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.005726/1.257, allocations: 2.681 MB / 0.8062 GB, free: 129.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001507/1.258, allocations: 446.3 kB / 0.8067 GB, free: 129.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01213/1.271, allocations: 7.004 MB / 0.8135 GB, free: 122 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.784e-05/1.271, allocations: 32 kB / 0.8135 GB, free: 122 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.652e-05/1.271, allocations: 9.312 kB / 0.8135 GB, free: 122 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-05/1.271, allocations: 11.95 kB / 0.8135 GB, free: 122 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0294/1.3, allocations: 14.35 MB / 0.8276 GB, free: 107.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.938e-05/1.3, allocations: 4 kB / 0.8276 GB, free: 107.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002546/1.303, allocations: 451.3 kB / 0.828 GB, free: 107.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005167/1.308, allocations: 2.038 MB / 0.83 GB, free: 105.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006599/1.309, allocations: 44 kB / 0.83 GB, free: 105.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01536/1.324, allocations: 13.66 MB / 0.8434 GB, free: 91.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/1.324, allocations: 4 kB / 0.8434 GB, free: 91.19 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01555/1.34, allocations: 10.98 MB / 0.8541 GB, free: 80.14 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001336/1.341, allocations: 0.4914 MB / 0.8546 GB, free: 79.63 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001269/1.342, allocations: 47.94 kB / 0.8546 GB, free: 79.58 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002739/1.345, allocations: 207.7 kB / 0.8548 GB, free: 79.38 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006268/1.346, allocations: 153.8 kB / 0.855 GB, free: 79.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002817/1.346, allocations: 64 kB / 0.855 GB, free: 79.17 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005062/1.351, allocations: 3.114 MB / 0.8581 GB, free: 76.06 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/1.351, allocations: 0 / 0.8581 GB, free: 76.06 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007299/1.358, allocations: 1.436 MB / 0.8595 GB, free: 74.63 MB / 0.545 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 (212): * Single equations (assignments): 207 * 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%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007635/1.359, allocations: 188.2 kB / 0.8596 GB, free: 74.44 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01603/1.375, allocations: 11.25 MB / 0.8706 GB, free: 63.21 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.375, allocations: 0.5625 kB / 0.8706 GB, free: 63.21 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005523/1.381, allocations: 3.417 MB / 0.874 GB, free: 59.78 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00517/1.386, allocations: 0.6344 MB / 0.8746 GB, free: 59.16 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02411/1.41, allocations: 16.18 MB / 0.8904 GB, free: 42.97 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006722/1.417, allocations: 4.194 MB / 0.8945 GB, free: 38.75 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006888/1.424, allocations: 2.297 MB / 0.8967 GB, free: 36.45 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001562/1.425, allocations: 319.4 kB / 0.897 GB, free: 36.13 MB / 0.545 GB Notification: Performance of SimCode: time 1.132e-06/1.425, allocations: 0 / 0.897 GB, free: 36.13 MB / 0.545 GB Notification: Performance of Templates: time 0.3377/1.763, allocations: 60.62 MB / 0.9562 GB, free: 169.9 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameForcesAndTorques3/FrameForcesAndTorques3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches