Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.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.Torque,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.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,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.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001039/0.001039, allocations: 96.61 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001229/0.001229, allocations: 202.9 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.7 MB / 246.8 MB, free: 9.777 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2537/0.2537, allocations: 46.19 MB / 345.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004492/0.0004492, allocations: 8 kB / 419.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1664/0.1668, allocations: 63.56 MB / 483.1 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3369/0.5038, allocations: 79.49 MB / 0.5494 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0425/0.5464, allocations: 15.59 MB / 0.5646 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01585/0.5623, allocations: 356.4 kB / 0.5649 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002299/0.5646, allocations: 0.5887 MB / 0.5655 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007033/0.5717, allocations: 2.346 MB / 0.5678 GB, free: 15.72 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002459/0.5742, allocations: 0.8717 MB / 0.5687 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01373/0.5879, allocations: 9.995 MB / 0.5784 GB, free: 4.98 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01304/0.601, allocations: 8.062 MB / 0.5863 GB, free: 12.8 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004036/0.6051, allocations: 1.719 MB / 0.588 GB, free: 11.07 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00483/0.6099, allocations: 2.962 MB / 0.5909 GB, free: 8.102 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001203/0.6112, allocations: 208 kB / 0.5911 GB, free: 7.898 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003079/0.6143, allocations: 1.151 MB / 0.5922 GB, free: 6.746 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003006/0.6173, allocations: 2.637 MB / 0.5948 GB, free: 4.102 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00407/0.6214, allocations: 2.943 MB / 0.5976 GB, free: 1.133 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01062/0.632, allocations: 9.607 MB / 0.607 GB, free: 7.492 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.632, allocations: 0 / 0.607 GB, free: 7.492 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.6321, allocations: 4 kB / 0.607 GB, free: 7.488 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003279/0.6324, allocations: 4 kB / 0.607 GB, free: 7.484 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: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.01542/0.6478, allocations: 6.09 MB / 0.613 GB, free: 1.316 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.6479, allocations: 12.88 kB / 0.613 GB, free: 1.305 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01385/0.6617, allocations: 2.769 MB / 0.6157 GB, free: 14.52 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009376/0.6712, allocations: 4.179 MB / 0.6198 GB, free: 10.26 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003214/0.6715, allocations: 361.8 kB / 0.6201 GB, free: 9.902 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00138/0.6729, allocations: 491.5 kB / 0.6206 GB, free: 9.422 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02532/0.6982, allocations: 14.26 MB / 0.6345 GB, free: 10.14 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001775/0.6984, allocations: 63.45 kB / 0.6346 GB, free: 10.08 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006656/0.6991, allocations: 231.8 kB / 0.6348 GB, free: 9.852 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004868/0.704, allocations: 2.703 MB / 0.6374 GB, free: 7.145 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02742/0.7314, allocations: 12.07 MB / 0.6492 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3519/1.083, allocations: 57.59 MB / 0.7055 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01682/1.1, allocations: 6.284 MB / 0.7116 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005083/1.105, allocations: 3.706 MB / 0.7152 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01397/1.119, allocations: 8.54 MB / 0.7236 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/1.119, allocations: 53.47 kB / 0.7236 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 5.05e-06/1.119, allocations: 2.875 kB / 0.7236 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.07001/1.189, allocations: 30.28 MB / 0.7532 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/1.19, allocations: 231.6 kB / 0.7534 GB, free: 151.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008091/1.198, allocations: 6.696 MB / 0.7599 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007782/1.199, allocations: 66.25 kB / 0.76 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002451/1.201, allocations: 4.41 MB / 0.7643 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001139/1.202, allocations: 1.07 MB / 0.7653 GB, free: 139.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008449/1.203, allocations: 0.7523 MB / 0.7661 GB, free: 138.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.468e-05/1.203, allocations: 304.3 kB / 0.7664 GB, free: 138 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004786/1.208, allocations: 3.577 MB / 0.7699 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007214/1.215, allocations: 8.64 MB / 0.7783 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01222/1.227, allocations: 13.15 MB / 0.7911 GB, free: 108.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001462/1.228, allocations: 48 kB / 0.7912 GB, free: 108 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.02291/1.25, allocations: 14 MB / 0.8049 GB, free: 94.02 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.433e-05/1.251, allocations: 80 kB / 0.8049 GB, free: 93.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000161/1.251, allocations: 176 kB / 0.8051 GB, free: 93.77 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005431/1.256, allocations: 2.285 MB / 0.8073 GB, free: 91.48 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006661/1.263, allocations: 2.006 MB / 0.8093 GB, free: 89.47 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01464/1.278, allocations: 13.42 MB / 0.8224 GB, free: 75.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007779/1.285, allocations: 0.4954 MB / 0.8229 GB, free: 75.29 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003047/1.288, allocations: 0.5165 MB / 0.8234 GB, free: 74.78 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1058): * Single equations (assignments): 1051 * Array equations: 5 * 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.007273/1.296, allocations: 3 MB / 0.8263 GB, free: 71.77 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001168/1.297, allocations: 0.5553 MB / 0.8269 GB, free: 71.21 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01169/1.309, allocations: 7.071 MB / 0.8338 GB, free: 64.11 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.504e-05/1.309, allocations: 32 kB / 0.8338 GB, free: 64.08 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.203e-05/1.309, allocations: 8 kB / 0.8338 GB, free: 64.07 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.011e-05/1.309, allocations: 11.95 kB / 0.8338 GB, free: 64.06 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02608/1.335, allocations: 14.9 MB / 0.8484 GB, free: 49.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.872e-05/1.335, allocations: 10.25 kB / 0.8484 GB, free: 49.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002284/1.337, allocations: 459.2 kB / 0.8488 GB, free: 48.65 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005081/1.342, allocations: 2.033 MB / 0.8508 GB, free: 46.61 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006426/1.343, allocations: 52 kB / 0.8509 GB, free: 46.56 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01462/1.358, allocations: 12.7 MB / 0.8633 GB, free: 33.61 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/1.358, allocations: 7.938 kB / 0.8633 GB, free: 33.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01633/1.374, allocations: 11.22 MB / 0.8742 GB, free: 22.23 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001702/1.376, allocations: 0.6381 MB / 0.8748 GB, free: 21.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001479/1.377, allocations: 51.98 kB / 0.8749 GB, free: 21.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003153/1.38, allocations: 199.7 kB / 0.8751 GB, free: 21.32 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007003/1.381, allocations: 177.6 kB / 0.8753 GB, free: 21.15 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002945/1.381, allocations: 68 kB / 0.8753 GB, free: 21.08 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006876/1.388, allocations: 4.28 MB / 0.8795 GB, free: 16.81 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.52e-07/1.388, allocations: 0 / 0.8795 GB, free: 16.81 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007792/1.396, allocations: 1.584 MB / 0.881 GB, free: 15.23 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (220): * Single equations (assignments): 215 * 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.0008419/1.397, allocations: 194.1 kB / 0.8812 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01247/1.41, allocations: 8.666 MB / 0.8897 GB, free: 6.375 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/1.41, allocations: 4 kB / 0.8897 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005196/1.415, allocations: 3.418 MB / 0.893 GB, free: 2.926 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008576/1.423, allocations: 0.6826 MB / 0.8937 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2664/1.69, allocations: 17.83 MB / 0.9111 GB, free: 171.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007203/1.697, allocations: 4.537 MB / 0.9155 GB, free: 171 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008469/1.706, allocations: 2.77 MB / 0.9183 GB, free: 170.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001844/1.707, allocations: 381.8 kB / 0.9186 GB, free: 170.9 MB / 0.545 GB Notification: Performance of SimCode: time 9.42e-07/1.707, allocations: 0 / 0.9186 GB, free: 170.9 MB / 0.545 GB Notification: Performance of Templates: time 0.09703/1.804, allocations: 63.41 MB / 0.9805 GB, free: 127.9 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches