Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 110.4 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001784/0.001783, allocations: 183.9 kB / 18.71 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2311/0.2311, allocations: 44.2 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 67.89 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4257/0.4269, allocations: 60.82 MB / 0.5189 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01673/0.4437, allocations: 15.75 MB / 0.5343 GB, free: 8.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01364/0.4574, allocations: 4.941 MB / 0.5391 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005173/0.4626, allocations: 103.7 kB / 0.5392 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01155/0.4742, allocations: 5.029 MB / 0.5441 GB, free: 0.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009221/0.4836, allocations: 2.546 MB / 0.5466 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003234/0.4868, allocations: 1.081 MB / 0.5477 GB, free: 14.28 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0116/0.4984, allocations: 6.835 MB / 0.5543 GB, free: 7.688 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008019/0.5065, allocations: 5.796 MB / 0.56 GB, free: 1.816 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005038/0.5116, allocations: 2.43 MB / 0.5624 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00612/0.5177, allocations: 3.244 MB / 0.5655 GB, free: 12.12 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002168/0.5199, allocations: 0.5078 MB / 0.566 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004578/0.5245, allocations: 1.42 MB / 0.5674 GB, free: 10.2 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004745/0.5293, allocations: 3.063 MB / 0.5704 GB, free: 7.125 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008332/0.5377, allocations: 3.422 MB / 0.5738 GB, free: 3.684 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01927/0.557, allocations: 10.61 MB / 0.5841 GB, free: 9.039 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.102e-05/0.557, allocations: 3.984 kB / 0.5841 GB, free: 9.035 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.557, allocations: 0 / 0.5841 GB, free: 9.035 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005628/0.5576, allocations: 0 / 0.5841 GB, free: 9.035 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.02299/0.5806, allocations: 7.514 MB / 0.5915 GB, free: 1.434 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.5807, allocations: 8.031 kB / 0.5915 GB, free: 1.426 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01292/0.5936, allocations: 2.761 MB / 0.5942 GB, free: 14.65 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01094/0.6046, allocations: 4.362 MB / 0.5984 GB, free: 10.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003928/0.605, allocations: 365.7 kB / 0.5988 GB, free: 9.844 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001901/0.6069, allocations: 487.6 kB / 0.5992 GB, free: 9.367 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03199/0.6389, allocations: 14.62 MB / 0.6135 GB, free: 9.73 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004244/0.6394, allocations: 71.31 kB / 0.6136 GB, free: 9.66 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002275/0.6417, allocations: 227.8 kB / 0.6138 GB, free: 9.438 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005477/0.6472, allocations: 2.832 MB / 0.6166 GB, free: 6.598 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02938/0.6766, allocations: 12.36 MB / 0.6286 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09138/0.7681, allocations: 58.15 MB / 0.6854 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01614/0.7843, allocations: 6.272 MB / 0.6915 GB, free: 8.125 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005549/0.7899, allocations: 3.703 MB / 0.6952 GB, free: 4.402 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01843/0.8083, allocations: 8.563 MB / 0.7035 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.601e-05/0.8084, allocations: 60.2 kB / 0.7036 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 6.331e-06/0.8085, allocations: 4 kB / 0.7036 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.398/1.206, allocations: 30.44 MB / 0.7333 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.173e-05/1.207, allocations: 239.8 kB / 0.7335 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008166/1.215, allocations: 6.754 MB / 0.7401 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005495/1.215, allocations: 65.61 kB / 0.7402 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002013/1.217, allocations: 4.501 MB / 0.7446 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008796/1.218, allocations: 1.071 MB / 0.7456 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001836/1.22, allocations: 1.801 MB / 0.7474 GB, free: 154 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.177e-05/1.22, allocations: 305.1 kB / 0.7477 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003959/1.224, allocations: 3.585 MB / 0.7512 GB, free: 152 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005949/1.23, allocations: 8.683 MB / 0.7597 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01189/1.242, allocations: 13.2 MB / 0.7726 GB, free: 126.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001448/1.242, allocations: 52.56 kB / 0.7726 GB, free: 126.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02587/1.268, allocations: 14.05 MB / 0.7863 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002373/1.268, allocations: 80 kB / 0.7864 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003105/1.269, allocations: 180 kB / 0.7866 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005548/1.274, allocations: 2.293 MB / 0.7888 GB, free: 110 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006293/1.28, allocations: 2.004 MB / 0.7908 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01463/1.295, allocations: 14.35 MB / 0.8048 GB, free: 93.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007995/1.303, allocations: 0.4954 MB / 0.8053 GB, free: 92.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001872/1.305, allocations: 0.5234 MB / 0.8058 GB, free: 92.35 MB / 0.5606 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.006534/1.312, allocations: 3.049 MB / 0.8088 GB, free: 89.29 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00181/1.313, allocations: 0.5592 MB / 0.8093 GB, free: 88.73 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01279/1.326, allocations: 7.079 MB / 0.8162 GB, free: 81.62 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.622e-05/1.326, allocations: 36 kB / 0.8163 GB, free: 81.59 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.833e-05/1.326, allocations: 8 kB / 0.8163 GB, free: 81.58 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.909e-05/1.326, allocations: 19.95 kB / 0.8163 GB, free: 81.56 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02669/1.353, allocations: 14.81 MB / 0.8307 GB, free: 66.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.658e-05/1.353, allocations: 4 kB / 0.8307 GB, free: 66.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00208/1.355, allocations: 459.8 kB / 0.8312 GB, free: 66.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004987/1.36, allocations: 2.029 MB / 0.8332 GB, free: 64.22 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000426/1.361, allocations: 55.98 kB / 0.8332 GB, free: 64.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01463/1.375, allocations: 13.71 MB / 0.8466 GB, free: 50.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/1.375, allocations: 4 kB / 0.8466 GB, free: 50.18 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01667/1.392, allocations: 11.25 MB / 0.8576 GB, free: 38.78 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002951/1.395, allocations: 0.6381 MB / 0.8582 GB, free: 38.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003284/1.398, allocations: 48 kB / 0.8583 GB, free: 38.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005558/1.404, allocations: 199.7 kB / 0.8585 GB, free: 37.88 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008877/1.405, allocations: 169.6 kB / 0.8586 GB, free: 37.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004338/1.405, allocations: 83.98 kB / 0.8587 GB, free: 37.63 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.008376/1.414, allocations: 4.313 MB / 0.8629 GB, free: 33.33 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.31e-07/1.414, allocations: 4 kB / 0.8629 GB, free: 33.32 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01012/1.424, allocations: 1.616 MB / 0.8645 GB, free: 31.71 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.001091/1.425, allocations: 190.3 kB / 0.8647 GB, free: 31.53 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01315/1.438, allocations: 8.727 MB / 0.8732 GB, free: 22.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/1.438, allocations: 8.188 kB / 0.8732 GB, free: 22.79 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005623/1.444, allocations: 3.418 MB / 0.8765 GB, free: 19.35 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007704/1.452, allocations: 0.7362 MB / 0.8773 GB, free: 18.62 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03144/1.483, allocations: 14.99 MB / 0.8919 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01558/1.499, allocations: 4.627 MB / 0.8964 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.01314/1.512, allocations: 2.779 MB / 0.8991 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002725/1.515, allocations: 387.3 kB / 0.8995 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of SimCode: time 3.236e-06/1.515, allocations: 4 kB / 0.8995 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of Templates: time 0.4554/1.97, allocations: 62.94 MB / 0.961 GB, free: 192.3 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches