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.001133/0.001133, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.3 MB, free: 9.062 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2258/0.2258, allocations: 46.11 MB / 343.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 77 kB / 416.8 MB, free: 20.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.145, allocations: 62.45 MB / 479.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.405/0.5501, allocations: 76.45 MB / 0.5427 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04648/0.5966, allocations: 15 MB / 0.5574 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02184/0.6185, allocations: 334.4 kB / 0.5577 GB, free: 5.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008902/0.6275, allocations: 4.484 MB / 0.5621 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008393/0.636, allocations: 2.095 MB / 0.5641 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003638/0.6396, allocations: 1.045 MB / 0.5651 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01398/0.6536, allocations: 9.264 MB / 0.5742 GB, free: 6.211 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009121/0.6628, allocations: 5.347 MB / 0.5794 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005127/0.668, allocations: 1.962 MB / 0.5813 GB, free: 14.86 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006551/0.6746, allocations: 3.182 MB / 0.5844 GB, free: 11.67 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001614/0.6762, allocations: 352 kB / 0.5848 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003976/0.6802, allocations: 1.443 MB / 0.5862 GB, free: 9.879 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003881/0.6841, allocations: 2.645 MB / 0.5888 GB, free: 7.227 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005314/0.6895, allocations: 2.978 MB / 0.5917 GB, free: 4.23 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01575/0.7052, allocations: 9.42 MB / 0.6009 GB, free: 10.78 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.7053, allocations: 4 kB / 0.6009 GB, free: 10.78 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.584e-06/0.7053, allocations: 0 / 0.6009 GB, free: 10.78 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004333/0.7058, allocations: 0 / 0.6009 GB, free: 10.78 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.02559/0.7314, allocations: 6.805 MB / 0.6075 GB, free: 3.895 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.42e-05/0.7315, allocations: 9.953 kB / 0.6075 GB, free: 3.887 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01345/0.7449, allocations: 2.621 MB / 0.6101 GB, free: 1.254 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01104/0.756, allocations: 3.832 MB / 0.6138 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004169/0.7565, allocations: 341 kB / 0.6141 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002319/0.7588, allocations: 452.1 kB / 0.6146 GB, free: 12.58 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03258/0.7914, allocations: 13.99 MB / 0.6282 GB, free: 13.68 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000337/0.7918, allocations: 63.47 kB / 0.6283 GB, free: 13.62 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002139/0.7939, allocations: 211.8 kB / 0.6285 GB, free: 13.41 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00547/0.7994, allocations: 2.539 MB / 0.631 GB, free: 10.87 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02782/0.8273, allocations: 12 MB / 0.6427 GB, free: 14.86 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08089/0.9082, allocations: 53.47 MB / 0.6949 GB, free: 8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01787/0.9261, allocations: 6.503 MB / 0.7013 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004977/0.9311, allocations: 3.604 MB / 0.7048 GB, free: 13.74 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002185/0.9314, allocations: 37.25 kB / 0.7048 GB, free: 13.7 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.869e-05/0.9315, allocations: 59.88 kB / 0.7049 GB, free: 13.63 MB / 0.545 GB Notification: Performance of pre-optimization done (n=218): time 5.921e-06/0.9315, allocations: 0 / 0.7049 GB, free: 13.63 MB / 0.545 GB Notification: Performance of matching and sorting (n=260): time 0.4032/1.335, allocations: 31.57 MB / 0.7357 GB, free: 192.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/1.335, allocations: 205.4 kB / 0.7359 GB, free: 191.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009989/1.345, allocations: 5.956 MB / 0.7417 GB, free: 189.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009907/1.346, allocations: 68.16 kB / 0.7418 GB, free: 189.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002579/1.348, allocations: 3.995 MB / 0.7457 GB, free: 186.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002094/1.351, allocations: 0.9899 MB / 0.7467 GB, free: 186 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002936/1.354, allocations: 1.609 MB / 0.7482 GB, free: 185.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.065e-05/1.354, allocations: 305.1 kB / 0.7485 GB, free: 185 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004979/1.359, allocations: 3.469 MB / 0.7519 GB, free: 183.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006926/1.366, allocations: 7.893 MB / 0.7596 GB, free: 176.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01241/1.378, allocations: 12.16 MB / 0.7715 GB, free: 164.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001756/1.378, allocations: 47.98 kB / 0.7715 GB, free: 164.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1012) (initialization): time 0.02458/1.403, allocations: 13.19 MB / 0.7844 GB, free: 151 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001188/1.403, allocations: 72 kB / 0.7845 GB, free: 150.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001546/1.403, allocations: 157 kB / 0.7846 GB, free: 150.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005383/1.408, allocations: 2.261 MB / 0.7868 GB, free: 148.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006445/1.415, allocations: 1.801 MB / 0.7886 GB, free: 146.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01539/1.43, allocations: 13.48 MB / 0.8018 GB, free: 132.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007833/1.438, allocations: 487.7 kB / 0.8022 GB, free: 132.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002091/1.44, allocations: 463.9 kB / 0.8027 GB, free: 132 MB / 0.545 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.00696/1.447, allocations: 2.755 MB / 0.8054 GB, free: 129.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002133/1.45, allocations: 0.5052 MB / 0.8059 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01286/1.462, allocations: 7.127 MB / 0.8128 GB, free: 121.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.969e-05/1.462, allocations: 28 kB / 0.8128 GB, free: 121.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.107e-05/1.462, allocations: 8 kB / 0.8128 GB, free: 121.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.261e-05/1.463, allocations: 11.95 kB / 0.8129 GB, free: 121.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02869/1.491, allocations: 14.59 MB / 0.8271 GB, free: 107 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.668e-05/1.491, allocations: 7.938 kB / 0.8271 GB, free: 106.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00212/1.493, allocations: 443.4 kB / 0.8275 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004835/1.498, allocations: 2.037 MB / 0.8295 GB, free: 104.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004554/1.499, allocations: 47.98 kB / 0.8296 GB, free: 104.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01517/1.514, allocations: 12.71 MB / 0.842 GB, free: 91.45 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/1.514, allocations: 4 kB / 0.842 GB, free: 91.45 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01781/1.532, allocations: 11.29 MB / 0.853 GB, free: 80.08 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001968/1.534, allocations: 0.5687 MB / 0.8536 GB, free: 79.48 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001883/1.536, allocations: 52.66 kB / 0.8536 GB, free: 79.44 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003767/1.539, allocations: 227.6 kB / 0.8538 GB, free: 79.21 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008959/1.54, allocations: 153.7 kB / 0.854 GB, free: 79.06 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003746/1.541, allocations: 64 kB / 0.8541 GB, free: 79 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007051/1.548, allocations: 3.797 MB / 0.8578 GB, free: 75.23 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.21e-07/1.548, allocations: 4 kB / 0.8578 GB, free: 75.23 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007987/1.556, allocations: 1.49 MB / 0.8592 GB, free: 73.74 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 (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%), (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.000605/1.556, allocations: 177.6 kB / 0.8594 GB, free: 73.57 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01095/1.567, allocations: 8.405 MB / 0.8676 GB, free: 65.16 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.567, allocations: 8 kB / 0.8676 GB, free: 65.15 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004943/1.572, allocations: 3.484 MB / 0.871 GB, free: 61.64 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00442/1.577, allocations: 0.6367 MB / 0.8716 GB, free: 61.02 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02038/1.597, allocations: 16.51 MB / 0.8878 GB, free: 44.49 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003656/1.601, allocations: 4.238 MB / 0.8919 GB, free: 40.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005502/1.606, allocations: 2.555 MB / 0.8944 GB, free: 37.66 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001226/1.608, allocations: 343.4 kB / 0.8947 GB, free: 37.33 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/1.608, allocations: 0 / 0.8947 GB, free: 37.33 MB / 0.545 GB Notification: Performance of Templates: time 0.3643/1.972, allocations: 61.71 MB / 0.955 GB, free: 166.9 MB / 0.545 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