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/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.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/Complex trunk/package.mo): time 0.001808/0.001808, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.593/1.593, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009967/0.0009967, allocations: 113.4 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2954/0.2954, allocations: 44.84 MB / 392.7 MB, free: 34.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001067, allocations: 63.89 kB / 465.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2806, allocations: 62.01 MB / 0.5151 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.07496/0.3556, allocations: 89.2 MB / 0.6023 GB, free: 140 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04241/0.3981, allocations: 17.13 MB / 0.619 GB, free: 14.95 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01806/0.4162, allocations: 391.1 kB / 0.6194 GB, free: 14.56 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009874/0.4261, allocations: 5.007 MB / 0.6242 GB, free: 9.543 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007229/0.4334, allocations: 2.394 MB / 0.6266 GB, free: 7.141 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003105/0.4366, allocations: 0.9946 MB / 0.6276 GB, free: 6.145 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.01293/0.4495, allocations: 10.21 MB / 0.6375 GB, free: 11.91 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007792/0.4573, allocations: 5.731 MB / 0.6431 GB, free: 6.098 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004137/0.4615, allocations: 2.161 MB / 0.6452 GB, free: 3.93 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005537/0.4671, allocations: 3.493 MB / 0.6486 GB, free: 436 kB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001518/0.4686, allocations: 384 kB / 0.649 GB, free: 52 kB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003367/0.472, allocations: 1.319 MB / 0.6503 GB, free: 14.73 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003359/0.4754, allocations: 2.957 MB / 0.6532 GB, free: 11.77 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00401/0.4794, allocations: 3.297 MB / 0.6564 GB, free: 8.449 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.4895, allocations: 10.17 MB / 0.6663 GB, free: 14.25 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.4895, allocations: 0 / 0.6663 GB, free: 14.25 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4896, allocations: 0 / 0.6663 GB, free: 14.25 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003123/0.4899, allocations: 4 kB / 0.6663 GB, free: 14.25 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.01548/0.5054, allocations: 7.542 MB / 0.6737 GB, free: 6.617 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.5054, allocations: 12.03 kB / 0.6737 GB, free: 6.605 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01208/0.5175, allocations: 2.765 MB / 0.6764 GB, free: 3.828 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2089/0.7264, allocations: 4.222 MB / 0.6805 GB, free: 132.6 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004622/0.7269, allocations: 370 kB / 0.6809 GB, free: 132.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001627/0.7286, allocations: 488 kB / 0.6814 GB, free: 132.5 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02264/0.7512, allocations: 14.63 MB / 0.6956 GB, free: 125.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000155/0.7514, allocations: 59.75 kB / 0.6957 GB, free: 125.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005172/0.7519, allocations: 233.5 kB / 0.6959 GB, free: 125.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004314/0.7563, allocations: 2.826 MB / 0.6987 GB, free: 125.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02451/0.7808, allocations: 12.36 MB / 0.7108 GB, free: 121.4 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05813/0.839, allocations: 58.42 MB / 0.7678 GB, free: 66.93 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01268/0.8517, allocations: 6.294 MB / 0.774 GB, free: 60.48 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003391/0.8551, allocations: 3.697 MB / 0.7776 GB, free: 56.76 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01215/0.8673, allocations: 8.545 MB / 0.7859 GB, free: 48.07 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/0.8674, allocations: 60.16 kB / 0.786 GB, free: 48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=236): time 5.861e-06/0.8674, allocations: 0 / 0.786 GB, free: 48 MB / 490.7 MB Notification: Performance of matching and sorting (n=278): time 0.06385/0.9313, allocations: 30.45 MB / 0.8157 GB, free: 17.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.769e-05/0.9314, allocations: 235.6 kB / 0.8159 GB, free: 17.04 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008249/0.9396, allocations: 6.751 MB / 0.8225 GB, free: 10.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007148/0.9404, allocations: 69.7 kB / 0.8226 GB, free: 10.22 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002271/0.9427, allocations: 4.496 MB / 0.827 GB, free: 5.668 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001213/0.9439, allocations: 1.072 MB / 0.828 GB, free: 4.582 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002184/0.9461, allocations: 1.804 MB / 0.8298 GB, free: 2.762 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.255e-05/0.9461, allocations: 301.1 kB / 0.8301 GB, free: 2.465 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004554/0.9507, allocations: 3.585 MB / 0.8336 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01019/0.9609, allocations: 8.685 MB / 0.8421 GB, free: 3.664 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01517/0.9761, allocations: 13.2 MB / 0.8549 GB, free: 3.957 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000163/0.9763, allocations: 51.94 kB / 0.855 GB, free: 3.906 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02698/1.003, allocations: 14.05 MB / 0.8687 GB, free: 5.832 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/1.003, allocations: 84.94 kB / 0.8688 GB, free: 5.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001741/1.004, allocations: 176 kB / 0.869 GB, free: 5.578 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005908/1.01, allocations: 2.285 MB / 0.8712 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007112/1.017, allocations: 2.012 MB / 0.8732 GB, free: 1.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01743/1.034, allocations: 13.41 MB / 0.8863 GB, free: 3.582 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006437/1.041, allocations: 0.503 MB / 0.8868 GB, free: 3.078 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001071/1.042, allocations: 0.5195 MB / 0.8873 GB, free: 2.559 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 814 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.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 (1064): * Single equations (assignments): 1057 * 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.2397/1.281, allocations: 3.042 MB / 0.8902 GB, free: 170.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001766/1.283, allocations: 0.5558 MB / 0.8908 GB, free: 170.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01308/1.296, allocations: 7.083 MB / 0.8977 GB, free: 169.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-05/1.296, allocations: 30.19 kB / 0.8977 GB, free: 169.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.343e-05/1.296, allocations: 11.47 kB / 0.8977 GB, free: 169.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-05/1.296, allocations: 20.03 kB / 0.8977 GB, free: 169.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02597/1.322, allocations: 15.01 MB / 0.9124 GB, free: 164.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.251e-05/1.323, allocations: 4.281 kB / 0.9124 GB, free: 164.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002477/1.325, allocations: 460.1 kB / 0.9128 GB, free: 164.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00597/1.331, allocations: 2.034 MB / 0.9148 GB, free: 164 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005198/1.332, allocations: 56.5 kB / 0.9149 GB, free: 163.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01744/1.349, allocations: 12.67 MB / 0.9273 GB, free: 157.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.938e-06/1.349, allocations: 9.562 kB / 0.9273 GB, free: 157.7 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.121/1.47, allocations: 76.86 MB / 1.002 GB, free: 94.95 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002347/1.472, allocations: 0.6342 MB / 1.003 GB, free: 94.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001222/1.474, allocations: 48 kB / 1.003 GB, free: 94.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002527/1.476, allocations: 196.7 kB / 1.003 GB, free: 94.05 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005624/1.477, allocations: 173.1 kB / 1.003 GB, free: 93.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/1.477, allocations: 75.98 kB / 1.003 GB, free: 93.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.005238/1.482, allocations: 4.321 MB / 1.008 GB, free: 89.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.91e-07/1.482, allocations: 1.312 kB / 1.008 GB, free: 89.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0094/1.492, allocations: 2.23 MB / 1.01 GB, free: 87.27 MB / 0.5417 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.0008491/1.493, allocations: 191.2 kB / 1.01 GB, free: 87.09 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01251/1.505, allocations: 8.695 MB / 1.018 GB, free: 78.43 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/1.505, allocations: 0 / 1.018 GB, free: 78.43 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004915/1.51, allocations: 3.414 MB / 1.022 GB, free: 75 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004212/1.514, allocations: 0.6979 MB / 1.023 GB, free: 74.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02406/1.538, allocations: 20.44 MB / 1.042 GB, free: 53.74 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005037/1.543, allocations: 4.732 MB / 1.047 GB, free: 48.97 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007077/1.551, allocations: 2.83 MB / 1.05 GB, free: 46.13 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002422/1.553, allocations: 399.3 kB / 1.05 GB, free: 45.74 MB / 0.5417 GB Notification: Performance of SimCode: time 1.082e-06/1.553, allocations: 0 / 1.05 GB, free: 45.74 MB / 0.5417 GB Notification: Performance of Templates: time 0.3992/1.952, allocations: 85.32 MB / 1.134 GB, free: 147.9 MB / 0.5417 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches