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.001129/0.001129, allocations: 114.8 kB / 18.41 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2154/0.2154, allocations: 46.1 MB / 344.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 75.48 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.129, allocations: 62.45 MB / 481.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.01638/0.1454, allocations: 13.98 MB / 495.4 MB, free: 6.516 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01125/0.1567, allocations: 4.773 MB / 0.4885 GB, free: 1.727 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003039/0.1598, allocations: 91.75 kB / 0.4886 GB, free: 1.637 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008584/0.1685, allocations: 4.47 MB / 0.4929 GB, free: 13.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006847/0.1754, allocations: 2.229 MB / 0.4951 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00343/0.1788, allocations: 1.131 MB / 0.4962 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009798/0.1886, allocations: 6.401 MB / 0.5025 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2633/0.452, allocations: 5.445 MB / 0.5078 GB, free: 15.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004521/0.4565, allocations: 2.201 MB / 0.5099 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006149/0.4627, allocations: 2.974 MB / 0.5129 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00298/0.4657, allocations: 494.5 kB / 0.5133 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006034/0.4718, allocations: 1.501 MB / 0.5148 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005195/0.477, allocations: 2.74 MB / 0.5175 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006606/0.4836, allocations: 3.108 MB / 0.5205 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01388/0.4975, allocations: 9.819 MB / 0.5301 GB, free: 9.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.4976, allocations: 0 / 0.5301 GB, free: 9.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4976, allocations: 1.188 kB / 0.5301 GB, free: 9.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003732/0.498, allocations: 0 / 0.5301 GB, free: 9.859 MB / 382.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.01878/0.5168, allocations: 6.803 MB / 0.5367 GB, free: 5.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.5168, allocations: 11.27 kB / 0.5367 GB, free: 5.336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009915/0.5267, allocations: 2.613 MB / 0.5393 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008752/0.5355, allocations: 3.916 MB / 0.5431 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002492/0.5358, allocations: 338 kB / 0.5434 GB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001438/0.5373, allocations: 455.8 kB / 0.5439 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02819/0.5654, allocations: 13.99 MB / 0.5575 GB, free: 4.395 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002227/0.5657, allocations: 65.98 kB / 0.5576 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007402/0.5665, allocations: 215 kB / 0.5578 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004293/0.5708, allocations: 2.541 MB / 0.5603 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02579/0.5966, allocations: 11.99 MB / 0.572 GB, free: 5.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07113/0.6678, allocations: 53.2 MB / 0.624 GB, free: 56 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01628/0.6841, allocations: 6.514 MB / 0.6303 GB, free: 9.402 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004242/0.6884, allocations: 3.591 MB / 0.6338 GB, free: 5.805 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001566/0.6886, allocations: 45.66 kB / 0.6339 GB, free: 5.773 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.845e-05/0.6886, allocations: 51.88 kB / 0.6339 GB, free: 5.715 MB / 478.1 MB Notification: Performance of pre-optimization done (n=218): time 5.17e-06/0.6886, allocations: 0 / 0.6339 GB, free: 5.715 MB / 478.1 MB Notification: Performance of matching and sorting (n=260): time 0.08458/0.7732, allocations: 31.57 MB / 0.6647 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.7734, allocations: 212.2 kB / 0.665 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008503/0.7819, allocations: 5.952 MB / 0.6708 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008227/0.7827, allocations: 65.7 kB / 0.6708 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003062/0.7858, allocations: 3.989 MB / 0.6747 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001954/0.7877, allocations: 0.9901 MB / 0.6757 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002837/0.7906, allocations: 1.61 MB / 0.6773 GB, free: 9.207 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.7907, allocations: 305.1 kB / 0.6776 GB, free: 8.906 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005191/0.7959, allocations: 3.474 MB / 0.6809 GB, free: 5.434 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008839/0.8048, allocations: 7.892 MB / 0.6887 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01431/0.8191, allocations: 12.16 MB / 0.7005 GB, free: 13.58 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000133/0.8193, allocations: 44 kB / 0.7006 GB, free: 13.54 MB / 0.545 GB Notification: Performance of matching and sorting (n=1012) (initialization): time 0.02471/0.844, allocations: 13.2 MB / 0.7135 GB, free: 332 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.869e-05/0.8441, allocations: 72 kB / 0.7135 GB, free: 260 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001759/0.8443, allocations: 155.9 kB / 0.7137 GB, free: 104 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2358/1.08, allocations: 2.253 MB / 0.7159 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006975/1.087, allocations: 1.803 MB / 0.7176 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02367/1.111, allocations: 14.42 MB / 0.7317 GB, free: 179.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007685/1.119, allocations: 479.9 kB / 0.7322 GB, free: 179.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001546/1.12, allocations: 465.5 kB / 0.7326 GB, free: 179.3 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.005643/1.126, allocations: 2.767 MB / 0.7353 GB, free: 178.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001139/1.127, allocations: 0.4939 MB / 0.7358 GB, free: 178.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01108/1.138, allocations: 7.124 MB / 0.7428 GB, free: 175.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.116e-05/1.138, allocations: 26.91 kB / 0.7428 GB, free: 175.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.639e-05/1.138, allocations: 11.62 kB / 0.7428 GB, free: 175.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.668e-05/1.138, allocations: 18.56 kB / 0.7428 GB, free: 175.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0248/1.163, allocations: 14.54 MB / 0.757 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.411e-05/1.163, allocations: 4 kB / 0.757 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002295/1.165, allocations: 443.4 kB / 0.7574 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004808/1.17, allocations: 2.037 MB / 0.7594 GB, free: 167.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005743/1.171, allocations: 44.36 kB / 0.7595 GB, free: 167.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01539/1.186, allocations: 13.65 MB / 0.7728 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/1.186, allocations: 7.938 kB / 0.7728 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01477/1.201, allocations: 11.3 MB / 0.7838 GB, free: 143.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001985/1.203, allocations: 0.5757 MB / 0.7844 GB, free: 142.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001235/1.204, allocations: 40 kB / 0.7844 GB, free: 142.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002559/1.207, allocations: 230.4 kB / 0.7847 GB, free: 142.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005357/1.207, allocations: 151.3 kB / 0.7848 GB, free: 142.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002143/1.208, allocations: 67.98 kB / 0.7849 GB, free: 142.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005467/1.213, allocations: 3.791 MB / 0.7886 GB, free: 138.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 4e-07/1.213, allocations: 3.938 kB / 0.7886 GB, free: 138.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007759/1.221, allocations: 1.496 MB / 0.79 GB, free: 137.1 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.0005574/1.221, allocations: 179.2 kB / 0.7902 GB, free: 136.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01105/1.232, allocations: 8.427 MB / 0.7984 GB, free: 128.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/1.233, allocations: 0 / 0.7984 GB, free: 128.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005152/1.238, allocations: 3.486 MB / 0.8018 GB, free: 125 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004617/1.242, allocations: 0.6748 MB / 0.8025 GB, free: 124.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02369/1.266, allocations: 13.8 MB / 0.816 GB, free: 110.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004888/1.271, allocations: 4.238 MB / 0.8201 GB, free: 106.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005263/1.276, allocations: 2.551 MB / 0.8226 GB, free: 103.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001263/1.278, allocations: 335.4 kB / 0.8229 GB, free: 103.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.393e-06/1.278, allocations: 0 / 0.8229 GB, free: 103.5 MB / 0.545 GB Notification: Performance of Templates: time 0.09047/1.368, allocations: 56.86 MB / 0.8785 GB, free: 47 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 -s cvode -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