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.001339/0.001339, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2243/0.2243, allocations: 46.09 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 70.58 kB / 417.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1571, allocations: 62.45 MB / 480 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01654/0.1737, allocations: 15.51 MB / 495.5 MB, free: 5.746 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.1857, allocations: 4.929 MB / 0.4887 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003619/0.1893, allocations: 103.7 kB / 0.4888 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009372/0.1988, allocations: 4.988 MB / 0.4937 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006934/0.2058, allocations: 2.486 MB / 0.4961 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003607/0.2094, allocations: 1.072 MB / 0.4972 GB, free: 8.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01348/0.2229, allocations: 6.841 MB / 0.5038 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2484/0.4713, allocations: 5.754 MB / 0.5095 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003421/0.4748, allocations: 2.38 MB / 0.5118 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004285/0.4791, allocations: 3.201 MB / 0.5149 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001618/0.4807, allocations: 0.5023 MB / 0.5154 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003325/0.4841, allocations: 1.387 MB / 0.5168 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00537/0.4894, allocations: 2.968 MB / 0.5197 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00875/0.4982, allocations: 3.334 MB / 0.5229 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01757/0.5158, allocations: 10.04 MB / 0.5327 GB, free: 6.895 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.5159, allocations: 0 / 0.5327 GB, free: 6.895 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5159, allocations: 0 / 0.5327 GB, free: 6.895 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004147/0.5163, allocations: 0 / 0.5327 GB, free: 6.895 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: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.02902/0.5454, allocations: 7.397 MB / 0.5399 GB, free: 1.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.5454, allocations: 11.91 kB / 0.54 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01321/0.5587, allocations: 2.712 MB / 0.5426 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009652/0.5683, allocations: 4.176 MB / 0.5467 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003543/0.5687, allocations: 361 kB / 0.547 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002251/0.571, allocations: 480.9 kB / 0.5475 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03175/0.6028, allocations: 14.25 MB / 0.5614 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003939/0.6032, allocations: 68.22 kB / 0.5615 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001342/0.6046, allocations: 228.2 kB / 0.5617 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005173/0.6097, allocations: 2.709 MB / 0.5643 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02668/0.6364, allocations: 12.04 MB / 0.5761 GB, free: 15.85 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07392/0.7104, allocations: 57.56 MB / 0.6323 GB, free: 5.562 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01557/0.726, allocations: 6.279 MB / 0.6384 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004957/0.731, allocations: 3.714 MB / 0.6421 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.016/0.7471, allocations: 8.522 MB / 0.6504 GB, free: 2.793 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.187e-05/0.7472, allocations: 58.84 kB / 0.6504 GB, free: 2.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=236): time 7.424e-06/0.7472, allocations: 7.984 kB / 0.6504 GB, free: 2.723 MB / 494.1 MB Notification: Performance of matching and sorting (n=278): time 0.09202/0.8392, allocations: 30.32 MB / 0.6801 GB, free: 4.266 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/0.8394, allocations: 239.6 kB / 0.6803 GB, free: 3.98 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01181/0.8512, allocations: 6.678 MB / 0.6868 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008586/0.8521, allocations: 69.7 kB / 0.6869 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00403/0.8562, allocations: 4.413 MB / 0.6912 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001774/0.858, allocations: 1.069 MB / 0.6922 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003331/0.8613, allocations: 1.79 MB / 0.694 GB, free: 5.961 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.774e-05/0.8614, allocations: 309.1 kB / 0.6943 GB, free: 5.656 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005662/0.8671, allocations: 3.576 MB / 0.6978 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01067/0.8778, allocations: 8.639 MB / 0.7062 GB, free: 7.023 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2611/1.139, allocations: 13.12 MB / 0.719 GB, free: 176.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002086/1.139, allocations: 50.03 kB / 0.719 GB, free: 176.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.0303/1.17, allocations: 14.01 MB / 0.7327 GB, free: 172.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001114/1.17, allocations: 81.47 kB / 0.7328 GB, free: 172.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002847/1.17, allocations: 177.6 kB / 0.733 GB, free: 172.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006131/1.176, allocations: 2.287 MB / 0.7352 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006683/1.183, allocations: 2.004 MB / 0.7372 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01655/1.199, allocations: 14.36 MB / 0.7512 GB, free: 164.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00929/1.209, allocations: 0.4986 MB / 0.7517 GB, free: 164.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002104/1.211, allocations: 0.5108 MB / 0.7522 GB, free: 164.6 MB / 0.545 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.006018/1.217, allocations: 2.99 MB / 0.7551 GB, free: 163.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001095/1.218, allocations: 0.5525 MB / 0.7556 GB, free: 163.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01104/1.229, allocations: 7.086 MB / 0.7626 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.753e-05/1.229, allocations: 28 kB / 0.7626 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.263e-05/1.229, allocations: 9.641 kB / 0.7626 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.704e-05/1.229, allocations: 15.48 kB / 0.7626 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02314/1.252, allocations: 14.9 MB / 0.7772 GB, free: 145.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.708e-05/1.252, allocations: 7.938 kB / 0.7772 GB, free: 145.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00216/1.255, allocations: 464.4 kB / 0.7776 GB, free: 145.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004695/1.259, allocations: 2.041 MB / 0.7796 GB, free: 143.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005096/1.26, allocations: 56.84 kB / 0.7797 GB, free: 143.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01429/1.274, allocations: 13.61 MB / 0.7929 GB, free: 129.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.274, allocations: 6.844 kB / 0.793 GB, free: 129.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01449/1.289, allocations: 11.22 MB / 0.8039 GB, free: 118.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001401/1.29, allocations: 0.6264 MB / 0.8045 GB, free: 117.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008589/1.291, allocations: 48 kB / 0.8046 GB, free: 117.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0024/1.293, allocations: 203.6 kB / 0.8048 GB, free: 117.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004896/1.294, allocations: 174.6 kB / 0.8049 GB, free: 117 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001895/1.294, allocations: 72 kB / 0.805 GB, free: 117 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005597/1.3, allocations: 4.28 MB / 0.8092 GB, free: 112.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.81e-07/1.3, allocations: 0 / 0.8092 GB, free: 112.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007452/1.307, allocations: 1.579 MB / 0.8107 GB, free: 111.1 MB / 0.545 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.0005325/1.308, allocations: 192.2 kB / 0.8109 GB, free: 110.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01288/1.321, allocations: 10.26 MB / 0.8209 GB, free: 100.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/1.321, allocations: 0 / 0.8209 GB, free: 100.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004898/1.325, allocations: 3.41 MB / 0.8243 GB, free: 97.27 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004711/1.33, allocations: 0.7245 MB / 0.825 GB, free: 96.56 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02451/1.355, allocations: 14.96 MB / 0.8396 GB, free: 81.52 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005194/1.36, allocations: 4.538 MB / 0.844 GB, free: 76.95 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006326/1.366, allocations: 2.763 MB / 0.8467 GB, free: 74.18 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/1.368, allocations: 383.4 kB / 0.8471 GB, free: 73.8 MB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/1.368, allocations: 0 / 0.8471 GB, free: 73.8 MB / 0.545 GB Notification: Performance of Templates: time 0.09921/1.467, allocations: 67.2 MB / 0.9127 GB, free: 6.887 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