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.001509/0.001509, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001736/0.001736, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.079/2.079, allocations: 227.4 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3647/0.3647, allocations: 46.11 MB / 344.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002081, allocations: 77.25 kB / 417.5 MB, free: 20.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1817, allocations: 62.44 MB / 479.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.4853/0.6671, allocations: 76.46 MB / 0.5434 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05975/0.7269, allocations: 14.99 MB / 0.558 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02812/0.7551, allocations: 334.7 kB / 0.5583 GB, free: 5.164 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01176/0.767, allocations: 4.483 MB / 0.5627 GB, free: 2.238 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00909/0.7762, allocations: 2.101 MB / 0.5647 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004452/0.7807, allocations: 1.041 MB / 0.5658 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01685/0.7976, allocations: 9.264 MB / 0.5748 GB, free: 6.211 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01085/0.8085, allocations: 5.351 MB / 0.58 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005918/0.8145, allocations: 1.954 MB / 0.5819 GB, free: 14.85 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007473/0.822, allocations: 3.189 MB / 0.5851 GB, free: 11.65 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002562/0.8246, allocations: 359.9 kB / 0.5854 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005551/0.8302, allocations: 1.432 MB / 0.5868 GB, free: 9.871 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005536/0.8358, allocations: 2.641 MB / 0.5894 GB, free: 7.223 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008269/0.8441, allocations: 2.982 MB / 0.5923 GB, free: 4.223 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01362/0.8578, allocations: 7.75 MB / 0.5999 GB, free: 12.46 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.123e-05/0.8579, allocations: 3.938 kB / 0.5999 GB, free: 12.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.649e-06/0.858, allocations: 8 kB / 0.5999 GB, free: 12.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004507/0.8584, allocations: 0 / 0.5999 GB, free: 12.45 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.028/0.8864, allocations: 6.794 MB / 0.6065 GB, free: 5.574 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.349e-05/0.8865, allocations: 13.94 kB / 0.6065 GB, free: 5.562 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01847/0.905, allocations: 2.617 MB / 0.6091 GB, free: 2.934 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01333/0.9184, allocations: 3.843 MB / 0.6128 GB, free: 15.03 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005027/0.919, allocations: 337.1 kB / 0.6131 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00263/0.9216, allocations: 444.1 kB / 0.6136 GB, free: 14.26 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04195/0.9636, allocations: 13.99 MB / 0.6272 GB, free: 15.36 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000435/0.9641, allocations: 67.45 kB / 0.6273 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002391/0.9665, allocations: 211.8 kB / 0.6275 GB, free: 15.09 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007291/0.9739, allocations: 2.539 MB / 0.63 GB, free: 12.54 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03757/1.012, allocations: 12 MB / 0.6417 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1051/1.117, allocations: 53.48 MB / 0.6939 GB, free: 9.652 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02507/1.142, allocations: 6.491 MB / 0.7003 GB, free: 3.02 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006978/1.149, allocations: 3.6 MB / 0.7038 GB, free: 15.4 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002605/1.149, allocations: 37.19 kB / 0.7038 GB, free: 15.37 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.876e-05/1.149, allocations: 63.97 kB / 0.7039 GB, free: 15.3 MB / 0.545 GB Notification: Performance of pre-optimization done (n=218): time 9.899e-06/1.149, allocations: 3.938 kB / 0.7039 GB, free: 15.29 MB / 0.545 GB Notification: Performance of matching and sorting (n=260): time 0.5054/1.655, allocations: 31.57 MB / 0.7347 GB, free: 192.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/1.655, allocations: 206 kB / 0.7349 GB, free: 192 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01711/1.672, allocations: 5.957 MB / 0.7407 GB, free: 189.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001146/1.673, allocations: 61.64 kB / 0.7408 GB, free: 189.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004155/1.677, allocations: 3.996 MB / 0.7447 GB, free: 186.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00259/1.68, allocations: 0.9928 MB / 0.7457 GB, free: 186.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005952/1.686, allocations: 1.603 MB / 0.7472 GB, free: 185.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.877e-05/1.686, allocations: 309 kB / 0.7475 GB, free: 185 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007749/1.694, allocations: 3.467 MB / 0.7509 GB, free: 183.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01237/1.706, allocations: 7.888 MB / 0.7586 GB, free: 176.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01792/1.724, allocations: 12.16 MB / 0.7705 GB, free: 165.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002223/1.725, allocations: 44 kB / 0.7705 GB, free: 165.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1012) (initialization): time 0.03389/1.759, allocations: 13.21 MB / 0.7834 GB, free: 152.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000158/1.759, allocations: 74.25 kB / 0.7835 GB, free: 152.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002308/1.759, allocations: 153.9 kB / 0.7836 GB, free: 152.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007633/1.767, allocations: 2.261 MB / 0.7858 GB, free: 150.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008973/1.776, allocations: 1.801 MB / 0.7876 GB, free: 148.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02045/1.796, allocations: 13.48 MB / 0.8008 GB, free: 134.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01087/1.807, allocations: 483.3 kB / 0.8012 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002514/1.81, allocations: 459.9 kB / 0.8017 GB, free: 133.7 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.008214/1.818, allocations: 2.766 MB / 0.8044 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002015/1.82, allocations: 0.4974 MB / 0.8049 GB, free: 130.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01593/1.836, allocations: 7.131 MB / 0.8118 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.187e-05/1.836, allocations: 28 kB / 0.8119 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.948e-05/1.836, allocations: 8 kB / 0.8119 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-05/1.836, allocations: 15.95 kB / 0.8119 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03489/1.871, allocations: 14.59 MB / 0.8261 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.452e-05/1.871, allocations: 0.8125 kB / 0.8261 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003167/1.874, allocations: 451.3 kB / 0.8266 GB, free: 108.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006792/1.881, allocations: 2.03 MB / 0.8285 GB, free: 106.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007802/1.882, allocations: 44 kB / 0.8286 GB, free: 106.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01991/1.902, allocations: 12.72 MB / 0.841 GB, free: 93.11 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/1.902, allocations: 3.234 kB / 0.841 GB, free: 93.11 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02364/1.926, allocations: 11.29 MB / 0.852 GB, free: 81.74 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002714/1.929, allocations: 0.5765 MB / 0.8526 GB, free: 81.14 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002706/1.931, allocations: 43.67 kB / 0.8526 GB, free: 81.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005183/1.936, allocations: 227.6 kB / 0.8529 GB, free: 80.88 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001405/1.938, allocations: 156.2 kB / 0.853 GB, free: 80.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003831/1.938, allocations: 67.98 kB / 0.8531 GB, free: 80.66 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009354/1.948, allocations: 3.794 MB / 0.8568 GB, free: 76.89 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.01e-07/1.948, allocations: 0 / 0.8568 GB, free: 76.89 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01181/1.96, allocations: 1.493 MB / 0.8582 GB, free: 75.4 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.0009457/1.961, allocations: 183 kB / 0.8584 GB, free: 75.22 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01739/1.978, allocations: 8.397 MB / 0.8666 GB, free: 66.82 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/1.978, allocations: 8 kB / 0.8666 GB, free: 66.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007975/1.986, allocations: 3.49 MB / 0.87 GB, free: 63.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007417/1.993, allocations: 0.6341 MB / 0.8706 GB, free: 62.68 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03632/2.03, allocations: 17.02 MB / 0.8873 GB, free: 45.63 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00873/2.039, allocations: 4.222 MB / 0.8914 GB, free: 41.38 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002726/2.041, allocations: 403.3 kB / 0.8918 GB, free: 40.98 MB / 0.545 GB Notification: Performance of SimCode: time 2.685e-06/2.041, allocations: 0 / 0.8918 GB, free: 40.98 MB / 0.545 GB Notification: Performance of Templates: time 0.5919/2.633, allocations: 133.2 MB / 1.022 GB, free: 99.49 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/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