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.001306/0.001306, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001455/0.001455, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1954/0.1954, allocations: 46.1 MB / 344.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 83.86 kB / 482 MB, free: 4.031 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2816, allocations: 62.43 MB / 0.5317 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01531/0.2969, allocations: 15.52 MB / 0.5468 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01002/0.307, allocations: 4.93 MB / 0.5516 GB, free: 13.19 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002923/0.3099, allocations: 99.75 kB / 0.5517 GB, free: 13.09 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008367/0.3183, allocations: 5 MB / 0.5566 GB, free: 8.074 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006359/0.3247, allocations: 2.548 MB / 0.5591 GB, free: 5.516 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002425/0.3272, allocations: 1.072 MB / 0.5601 GB, free: 4.441 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009585/0.3368, allocations: 6.847 MB / 0.5668 GB, free: 13.58 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007669/0.3445, allocations: 5.752 MB / 0.5725 GB, free: 7.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003811/0.3483, allocations: 2.379 MB / 0.5748 GB, free: 5.363 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004441/0.3528, allocations: 3.205 MB / 0.5779 GB, free: 2.148 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001507/0.3543, allocations: 0.5 MB / 0.5784 GB, free: 1.648 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003128/0.3575, allocations: 1.397 MB / 0.5798 GB, free: 256 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003444/0.3609, allocations: 2.989 MB / 0.5827 GB, free: 13.25 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005227/0.3662, allocations: 3.336 MB / 0.5859 GB, free: 9.898 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0126/0.3788, allocations: 10.34 MB / 0.596 GB, free: 15.52 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3789, allocations: 0 / 0.596 GB, free: 15.52 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3789, allocations: 3.938 kB / 0.596 GB, free: 15.52 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003749/0.3793, allocations: 0 / 0.596 GB, free: 15.52 MB / 462.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.01858/0.3978, allocations: 7.397 MB / 0.6033 GB, free: 8.035 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.3979, allocations: 8.031 kB / 0.6033 GB, free: 8.027 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0118/0.4097, allocations: 2.706 MB / 0.6059 GB, free: 5.309 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0105/0.4202, allocations: 4.273 MB / 0.6101 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003616/0.4206, allocations: 357.6 kB / 0.6104 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001932/0.4226, allocations: 479.7 kB / 0.6109 GB, free: 136 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02694/0.4495, allocations: 14.25 MB / 0.6248 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002688/0.4499, allocations: 63.47 kB / 0.6249 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001394/0.4513, allocations: 223.8 kB / 0.6251 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004324/0.4556, allocations: 2.703 MB / 0.6277 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02275/0.4784, allocations: 12.04 MB / 0.6395 GB, free: 1.805 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07186/0.5503, allocations: 57.32 MB / 0.6954 GB, free: 7.016 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01484/0.5652, allocations: 6.277 MB / 0.7016 GB, free: 0.5781 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004763/0.57, allocations: 3.716 MB / 0.7052 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01461/0.5846, allocations: 8.519 MB / 0.7135 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/0.5847, allocations: 72.09 kB / 0.7136 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 5.771e-06/0.5847, allocations: 0 / 0.7136 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.2972/0.882, allocations: 30.31 MB / 0.7432 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.081e-05/0.8821, allocations: 232.7 kB / 0.7434 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006825/0.8889, allocations: 6.684 MB / 0.7499 GB, free: 148 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000543/0.8895, allocations: 69.7 kB / 0.75 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00178/0.8913, allocations: 4.414 MB / 0.7543 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009827/0.8923, allocations: 1.061 MB / 0.7554 GB, free: 142.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001824/0.8941, allocations: 1.788 MB / 0.7571 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.673e-05/0.8942, allocations: 316.8 kB / 0.7574 GB, free: 140.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003706/0.8979, allocations: 3.575 MB / 0.7609 GB, free: 136.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005143/0.903, allocations: 8.636 MB / 0.7693 GB, free: 125.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/0.9134, allocations: 13.13 MB / 0.7821 GB, free: 110.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001096/0.9135, allocations: 55.94 kB / 0.7822 GB, free: 110.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.02067/0.9342, allocations: 14 MB / 0.7959 GB, free: 96.06 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.867e-05/0.9343, allocations: 81 kB / 0.7959 GB, free: 95.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/0.9345, allocations: 180 kB / 0.7961 GB, free: 95.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004753/0.9392, allocations: 2.28 MB / 0.7983 GB, free: 93.52 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005695/0.9449, allocations: 2.004 MB / 0.8003 GB, free: 91.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/0.9585, allocations: 14.34 MB / 0.8143 GB, free: 76.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006177/0.9647, allocations: 0.507 MB / 0.8148 GB, free: 76.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/0.966, allocations: 0.5117 MB / 0.8153 GB, free: 75.88 MB / 0.5606 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.004048/0.97, allocations: 2.986 MB / 0.8182 GB, free: 72.88 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009596/0.971, allocations: 0.5553 MB / 0.8188 GB, free: 72.32 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0099/0.9809, allocations: 7.091 MB / 0.8257 GB, free: 65.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.104e-05/0.981, allocations: 31.91 kB / 0.8257 GB, free: 65.18 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/0.981, allocations: 8 kB / 0.8257 GB, free: 65.17 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.352e-05/0.981, allocations: 15.95 kB / 0.8257 GB, free: 65.15 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0212/1.002, allocations: 14.71 MB / 0.8401 GB, free: 50.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.055e-05/1.002, allocations: 8.094 kB / 0.8401 GB, free: 50.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002006/1.004, allocations: 459.3 kB / 0.8405 GB, free: 49.94 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004323/1.009, allocations: 2.034 MB / 0.8425 GB, free: 47.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003976/1.009, allocations: 51.98 kB / 0.8426 GB, free: 47.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0136/1.023, allocations: 13.71 MB / 0.856 GB, free: 33.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/1.023, allocations: 8 kB / 0.856 GB, free: 33.87 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/1.037, allocations: 11.23 MB / 0.8669 GB, free: 22.48 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001636/1.038, allocations: 0.6381 MB / 0.8676 GB, free: 21.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008883/1.039, allocations: 48 kB / 0.8676 GB, free: 21.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00216/1.041, allocations: 199 kB / 0.8678 GB, free: 21.58 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004383/1.042, allocations: 177.5 kB / 0.868 GB, free: 21.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001903/1.042, allocations: 75.98 kB / 0.8681 GB, free: 21.33 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005434/1.047, allocations: 4.288 MB / 0.8722 GB, free: 17.05 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.047, allocations: 3.938 kB / 0.8722 GB, free: 17.05 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007279/1.055, allocations: 1.577 MB / 0.8738 GB, free: 15.48 MB / 0.5606 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.0005877/1.055, allocations: 192 kB / 0.874 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01098/1.066, allocations: 8.698 MB / 0.8825 GB, free: 6.594 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/1.066, allocations: 4.125 kB / 0.8825 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004862/1.071, allocations: 3.43 MB / 0.8858 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004001/1.075, allocations: 0.7099 MB / 0.8865 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02419/1.099, allocations: 15.39 MB / 0.9015 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005389/1.105, allocations: 4.511 MB / 0.9059 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001751/1.107, allocations: 439.4 kB / 0.9064 GB, free: 14 MB / 0.5919 GB Notification: Performance of SimCode: time 1.002e-06/1.107, allocations: 0 / 0.9064 GB, free: 14 MB / 0.5919 GB Notification: Performance of Templates: time 0.3982/1.505, allocations: 143.4 MB / 1.046 GB, free: 122.7 MB / 0.6231 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches