Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001008/0.001008, allocations: 201.9 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 226.5 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008005/0.0008005, allocations: 99.41 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1823/0.1823, allocations: 44.84 MB / 392 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000253/0.0002531, allocations: 11.98 kB / 464.7 MB, free: 49.74 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09407/0.09434, allocations: 62.96 MB / 0.5153 GB, free: 2.746 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.2338/0.3282, allocations: 82.98 MB / 0.5964 GB, free: 10.48 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03514/0.3634, allocations: 16.92 MB / 0.6129 GB, free: 9.5 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01415/0.3776, allocations: 387.1 kB / 0.6133 GB, free: 9.121 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01272/0.3903, allocations: 4.417 MB / 0.6176 GB, free: 4.684 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03182/0.4222, allocations: 12.69 MB / 0.63 GB, free: 7.953 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004916/0.4271, allocations: 0.9089 MB / 0.6308 GB, free: 7.043 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.06789/0.495, allocations: 62.66 MB / 0.692 GB, free: 8.301 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009612/0.5047, allocations: 6.836 MB / 0.6987 GB, free: 1.41 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003193/0.5079, allocations: 1.751 MB / 0.7004 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003911/0.5118, allocations: 2.749 MB / 0.7031 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.001201/0.5131, allocations: 208 kB / 0.7033 GB, free: 12.69 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00289/0.516, allocations: 1.092 MB / 0.7044 GB, free: 11.6 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.002994/0.519, allocations: 2.482 MB / 0.7068 GB, free: 9.109 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.00185/0.5209, allocations: 1.193 MB / 0.708 GB, free: 7.906 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.2253/0.7462, allocations: 7.928 MB / 0.7157 GB, free: 71.91 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.7462, allocations: 0.6875 kB / 0.7157 GB, free: 71.91 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.114e-06/0.7463, allocations: 0 / 0.7157 GB, free: 71.91 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000341/0.7466, allocations: 0.7812 kB / 0.7157 GB, free: 71.91 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2137 * Number of variables: 2137 Notification: Performance of Generate backend data structure: time 0.01231/0.7589, allocations: 5.871 MB / 0.7214 GB, free: 69.46 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.759, allocations: 9.594 kB / 0.7215 GB, free: 69.46 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01269/0.7717, allocations: 2.787 MB / 0.7242 GB, free: 69.05 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008639/0.7803, allocations: 3.863 MB / 0.7279 GB, free: 68.38 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003248/0.7807, allocations: 352.8 kB / 0.7283 GB, free: 68.37 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001382/0.7821, allocations: 468.4 kB / 0.7287 GB, free: 68.36 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02374/0.8058, allocations: 14.73 MB / 0.7431 GB, free: 65.82 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001547/0.806, allocations: 66.11 kB / 0.7432 GB, free: 65.82 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005282/0.8066, allocations: 221.9 kB / 0.7434 GB, free: 65.82 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00404/0.8106, allocations: 2.783 MB / 0.7461 GB, free: 65.79 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02089/0.8315, allocations: 12.58 MB / 0.7584 GB, free: 65.72 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05198/0.8835, allocations: 55.18 MB / 0.8123 GB, free: 23.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01411/0.8977, allocations: 6.54 MB / 0.8187 GB, free: 17.85 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003246/0.901, allocations: 3.59 MB / 0.8222 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001024/0.9011, allocations: 41.89 kB / 0.8222 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.9011, allocations: 62.67 kB / 0.8223 GB, free: 15.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=218): time 5.24e-06/0.9011, allocations: 3.984 kB / 0.8223 GB, free: 15.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=260): time 0.07027/0.9714, allocations: 31.81 MB / 0.8533 GB, free: 5.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.554e-05/0.9715, allocations: 201.9 kB / 0.8535 GB, free: 5.031 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007117/0.9787, allocations: 6.04 MB / 0.8594 GB, free: 372 kB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000511/0.9792, allocations: 68.14 kB / 0.8595 GB, free: 300 kB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002649/0.9818, allocations: 4.155 MB / 0.8635 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001048/0.9829, allocations: 0.9907 MB / 0.8645 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003503/0.9833, allocations: 160 kB / 0.8647 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003848/0.9837, allocations: 0.6445 MB / 0.8653 GB, free: 10.37 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004582/0.9882, allocations: 3.459 MB / 0.8687 GB, free: 6.906 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007045/0.9953, allocations: 7.938 MB / 0.8764 GB, free: 12.83 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006619/1.002, allocations: 5.112 MB / 0.8814 GB, free: 7.859 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-05/1.002, allocations: 48 kB / 0.8815 GB, free: 7.812 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.02063/1.023, allocations: 13.24 MB / 0.8944 GB, free: 11.52 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 8.781e-05/1.023, allocations: 72 kB / 0.8945 GB, free: 11.45 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001503/1.023, allocations: 156 kB / 0.8946 GB, free: 11.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005318/1.028, allocations: 2.28 MB / 0.8968 GB, free: 9.012 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005483/1.034, allocations: 1.823 MB / 0.8986 GB, free: 7.34 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01634/1.05, allocations: 13.5 MB / 0.9118 GB, free: 9.672 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006401/1.057, allocations: 491.1 kB / 0.9123 GB, free: 9.195 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001101/1.058, allocations: 471.9 kB / 0.9127 GB, free: 8.734 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 715 * Number of states: 0 () * Number of discrete variables: 62 (frameTorque2.torqueArrow.arrowLine.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.arrowLine.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.arrowLine.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.arrowLine.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 (952): * Single equations (assignments): 947 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004549/1.062, allocations: 2.873 MB / 0.9155 GB, free: 6 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009577/1.063, allocations: 0.5037 MB / 0.916 GB, free: 5.492 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01171/1.075, allocations: 7.122 MB / 0.923 GB, free: 14.37 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.376e-05/1.075, allocations: 28 kB / 0.923 GB, free: 14.34 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/1.075, allocations: 13.75 kB / 0.923 GB, free: 14.33 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-05/1.075, allocations: 15.94 kB / 0.923 GB, free: 14.32 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.211/1.286, allocations: 14.76 MB / 0.9374 GB, free: 244.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.686e-05/1.286, allocations: 1.25 kB / 0.9374 GB, free: 244.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002429/1.289, allocations: 450 kB / 0.9379 GB, free: 244.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005491/1.294, allocations: 2.039 MB / 0.9399 GB, free: 244.3 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004085/1.294, allocations: 43.34 kB / 0.9399 GB, free: 244.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01576/1.31, allocations: 12.71 MB / 0.9523 GB, free: 239.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/1.31, allocations: 1.75 kB / 0.9523 GB, free: 239.6 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01497/1.325, allocations: 11.28 MB / 0.9633 GB, free: 235.7 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/1.327, allocations: 0.5929 MB / 0.9639 GB, free: 235.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005545/1.327, allocations: 43.56 kB / 0.964 GB, free: 235.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002099/1.329, allocations: 230 kB / 0.9642 GB, free: 235.5 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003773/1.33, allocations: 161 kB / 0.9643 GB, free: 235.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001805/1.33, allocations: 64.38 kB / 0.9644 GB, free: 235.5 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.004224/1.334, allocations: 3.831 MB / 0.9681 GB, free: 234.2 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.41e-07/1.334, allocations: 3.719 kB / 0.9681 GB, free: 234.2 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.004687/1.339, allocations: 1.54 MB / 0.9696 GB, free: 234 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004105/1.339, allocations: 187.1 kB / 0.9698 GB, free: 233.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.009155/1.348, allocations: 8.41 MB / 0.978 GB, free: 230.9 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/1.348, allocations: 4 kB / 0.978 GB, free: 230.9 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.004451/1.353, allocations: 3.478 MB / 0.9814 GB, free: 229.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003151/1.356, allocations: 0.6785 MB / 0.9821 GB, free: 229.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01764/1.374, allocations: 17.14 MB / 0.9988 GB, free: 214.5 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00339/1.377, allocations: 4.397 MB / 1.003 GB, free: 210 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001544/1.379, allocations: 399.4 kB / 1.004 GB, free: 209.7 MB / 0.6042 GB Notification: Performance of SimCode: time 8.72e-07/1.379, allocations: 4 kB / 1.004 GB, free: 209.7 MB / 0.6042 GB Notification: Performance of Templates: time 0.1144/1.493, allocations: 137.5 MB / 1.138 GB, free: 72.12 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches