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.001503/0.001503, allocations: 107.4 kB / 17.2 MB, free: 6.273 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.001758/0.001758, allocations: 194 kB / 18.12 MB, free: 5.363 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.499/1.499, allocations: 222.9 MB / 241.8 MB, free: 15.42 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.228/0.228, allocations: 44.18 MB / 336.1 MB, free: 2.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 72.42 kB / 407.7 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1205, allocations: 60.82 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3403/0.4608, allocations: 89.19 MB / 0.5446 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.06754/0.5284, allocations: 17.1 MB / 0.5613 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02769/0.5562, allocations: 389.3 kB / 0.5617 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01065/0.5669, allocations: 5.034 MB / 0.5666 GB, free: 276 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007118/0.574, allocations: 2.399 MB / 0.569 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002703/0.5768, allocations: 0.9986 MB / 0.5699 GB, free: 12.86 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01228/0.5891, allocations: 10.05 MB / 0.5798 GB, free: 2.793 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008272/0.5974, allocations: 5.732 MB / 0.5854 GB, free: 13 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003811/0.6012, allocations: 2.16 MB / 0.5875 GB, free: 10.83 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005322/0.6066, allocations: 3.489 MB / 0.5909 GB, free: 7.332 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001671/0.6083, allocations: 376 kB / 0.5912 GB, free: 6.965 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003506/0.6118, allocations: 1.346 MB / 0.5925 GB, free: 5.617 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004292/0.6161, allocations: 2.945 MB / 0.5954 GB, free: 2.664 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005636/0.6218, allocations: 3.301 MB / 0.5986 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.6343, allocations: 10.17 MB / 0.6086 GB, free: 5.137 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.6344, allocations: 0 / 0.6086 GB, free: 5.137 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.6344, allocations: 0 / 0.6086 GB, free: 5.137 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004426/0.6348, allocations: 0 / 0.6086 GB, free: 5.137 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.01992/0.6548, allocations: 7.507 MB / 0.6159 GB, free: 13.54 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.6548, allocations: 8.031 kB / 0.6159 GB, free: 13.53 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01335/0.6682, allocations: 2.761 MB / 0.6186 GB, free: 10.76 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01074/0.679, allocations: 4.284 MB / 0.6228 GB, free: 6.391 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004433/0.6795, allocations: 369.9 kB / 0.6231 GB, free: 6.027 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002326/0.6818, allocations: 487.5 kB / 0.6236 GB, free: 5.551 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03096/0.7128, allocations: 14.64 MB / 0.6379 GB, free: 5.898 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003696/0.7132, allocations: 67.38 kB / 0.638 GB, free: 5.832 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002331/0.7155, allocations: 227.8 kB / 0.6382 GB, free: 5.609 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005287/0.7208, allocations: 2.824 MB / 0.6409 GB, free: 2.781 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02563/0.7465, allocations: 12.35 MB / 0.653 GB, free: 6.402 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3086/1.055, allocations: 58.4 MB / 0.71 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01497/1.07, allocations: 6.284 MB / 0.7162 GB, free: 153 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004049/1.074, allocations: 3.701 MB / 0.7198 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/1.087, allocations: 8.56 MB / 0.7282 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.261e-05/1.087, allocations: 68.86 kB / 0.7282 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 4.518e-06/1.087, allocations: 0 / 0.7282 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.07391/1.161, allocations: 30.44 MB / 0.7579 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.22e-05/1.161, allocations: 239.4 kB / 0.7582 GB, free: 131.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01077/1.172, allocations: 6.751 MB / 0.7648 GB, free: 124.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00059/1.172, allocations: 65.7 kB / 0.7648 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002499/1.175, allocations: 4.496 MB / 0.7692 GB, free: 120.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001259/1.176, allocations: 1.065 MB / 0.7703 GB, free: 119.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00358/1.18, allocations: 1.796 MB / 0.772 GB, free: 117.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.728e-05/1.18, allocations: 313.1 kB / 0.7723 GB, free: 117.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005179/1.185, allocations: 3.581 MB / 0.7758 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007454/1.192, allocations: 8.684 MB / 0.7843 GB, free: 102.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01244/1.205, allocations: 13.2 MB / 0.7972 GB, free: 87.27 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001677/1.205, allocations: 52 kB / 0.7972 GB, free: 87.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02411/1.229, allocations: 14.06 MB / 0.811 GB, free: 73.15 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002578/1.23, allocations: 81 kB / 0.811 GB, free: 73.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003964/1.23, allocations: 184.8 kB / 0.8112 GB, free: 72.89 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00578/1.236, allocations: 2.28 MB / 0.8134 GB, free: 70.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006694/1.243, allocations: 2.02 MB / 0.8154 GB, free: 68.58 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01591/1.258, allocations: 13.41 MB / 0.8285 GB, free: 54.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007862/1.266, allocations: 0.503 MB / 0.829 GB, free: 54.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001616/1.268, allocations: 0.5156 MB / 0.8295 GB, free: 53.88 MB / 0.5294 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.006096/1.274, allocations: 3.053 MB / 0.8325 GB, free: 50.82 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00146/1.276, allocations: 0.5553 MB / 0.833 GB, free: 50.26 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01121/1.287, allocations: 7.087 MB / 0.8399 GB, free: 43.15 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.83e-05/1.287, allocations: 31.59 kB / 0.84 GB, free: 43.12 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/1.287, allocations: 8 kB / 0.84 GB, free: 43.12 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-05/1.287, allocations: 23.94 kB / 0.84 GB, free: 43.09 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02424/1.311, allocations: 15.01 MB / 0.8547 GB, free: 28.03 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.282e-05/1.311, allocations: 4 kB / 0.8547 GB, free: 28.03 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002317/1.314, allocations: 459.3 kB / 0.8551 GB, free: 27.58 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004905/1.319, allocations: 2.035 MB / 0.8571 GB, free: 25.54 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006053/1.319, allocations: 48 kB / 0.8571 GB, free: 25.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01454/1.334, allocations: 12.68 MB / 0.8695 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.334, allocations: 4 kB / 0.8695 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01543/1.349, allocations: 11.22 MB / 0.8805 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001728/1.351, allocations: 0.6383 MB / 0.8811 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009483/1.352, allocations: 52 kB / 0.8812 GB, free: 480 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002391/1.354, allocations: 199.7 kB / 0.8813 GB, free: 280 kB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005618/1.355, allocations: 177.5 kB / 0.8815 GB, free: 104 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001984/1.355, allocations: 75.98 kB / 0.8816 GB, free: 28 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007175/1.362, allocations: 4.321 MB / 0.8858 GB, free: 11.72 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.21e-07/1.362, allocations: 0 / 0.8858 GB, free: 11.72 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008683/1.371, allocations: 1.615 MB / 0.8874 GB, free: 10.11 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.0008038/1.372, allocations: 186 kB / 0.8876 GB, free: 9.922 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01479/1.387, allocations: 8.703 MB / 0.8961 GB, free: 1.219 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/1.387, allocations: 0.75 kB / 0.8961 GB, free: 1.219 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006064/1.393, allocations: 3.403 MB / 0.8994 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005338/1.398, allocations: 0.7019 MB / 0.9001 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03158/1.43, allocations: 17.97 MB / 0.9176 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007673/1.437, allocations: 4.623 MB / 0.9221 GB, free: 6.379 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.008376/1.446, allocations: 2.783 MB / 0.9249 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002037/1.448, allocations: 383.4 kB / 0.9252 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of SimCode: time 1.203e-06/1.448, allocations: 0 / 0.9252 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of Templates: time 0.3352/1.783, allocations: 65.32 MB / 0.989 GB, free: 181.3 MB / 0.5762 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