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.0009704/0.0009705, allocations: 94.64 kB / 17.35 MB, free: 6.375 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.0009004/0.0009005, allocations: 175.2 kB / 18.25 MB, free: 5.523 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.461/1.461, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2295/0.2295, allocations: 44.25 MB / 337.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003194/0.0003194, allocations: 12.5 kB / 410.3 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1166, allocations: 61.92 MB / 472.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3276/0.4443, allocations: 87.09 MB / 0.5462 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04117/0.4855, allocations: 17.04 MB / 0.5629 GB, free: 6.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02452/0.51, allocations: 386.6 kB / 0.5632 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003385/0.5135, allocations: 0.6113 MB / 0.5638 GB, free: 5.641 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00831/0.5218, allocations: 2.408 MB / 0.5662 GB, free: 3.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002824/0.5247, allocations: 0.8745 MB / 0.567 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01441/0.5391, allocations: 10.05 MB / 0.5769 GB, free: 9.238 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01235/0.5515, allocations: 8.116 MB / 0.5848 GB, free: 1.012 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003921/0.5555, allocations: 1.758 MB / 0.5865 GB, free: 15.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004967/0.5605, allocations: 3.005 MB / 0.5894 GB, free: 12.23 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001239/0.5617, allocations: 208 kB / 0.5896 GB, free: 12.03 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003548/0.5653, allocations: 1.174 MB / 0.5908 GB, free: 10.85 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00383/0.5692, allocations: 2.707 MB / 0.5934 GB, free: 8.137 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007464/0.5767, allocations: 3.025 MB / 0.5964 GB, free: 5.086 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0151/0.5918, allocations: 9.875 MB / 0.606 GB, free: 11.17 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.5919, allocations: 0 / 0.606 GB, free: 11.17 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5919, allocations: 0 / 0.606 GB, free: 11.17 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004728/0.5923, allocations: 0 / 0.606 GB, free: 11.17 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.01646/0.6088, allocations: 6.165 MB / 0.612 GB, free: 4.926 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/0.6089, allocations: 8.031 kB / 0.6121 GB, free: 4.918 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01485/0.6238, allocations: 2.835 MB / 0.6148 GB, free: 2.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01107/0.6349, allocations: 4.288 MB / 0.619 GB, free: 13.7 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004292/0.6353, allocations: 361.9 kB / 0.6194 GB, free: 13.34 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002191/0.6376, allocations: 491.6 kB / 0.6198 GB, free: 12.86 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03057/0.6681, allocations: 14.65 MB / 0.6341 GB, free: 13.2 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002337/0.6684, allocations: 67.39 kB / 0.6342 GB, free: 13.13 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001068/0.6695, allocations: 231.8 kB / 0.6344 GB, free: 12.91 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005302/0.6748, allocations: 2.82 MB / 0.6372 GB, free: 10.08 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02536/0.7002, allocations: 12.37 MB / 0.6492 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07816/0.7784, allocations: 58.46 MB / 0.7063 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3185/1.097, allocations: 6.285 MB / 0.7125 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006105/1.103, allocations: 3.709 MB / 0.7161 GB, free: 187 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01676/1.12, allocations: 8.558 MB / 0.7245 GB, free: 183.2 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.051e-05/1.12, allocations: 63.66 kB / 0.7245 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 5.43e-06/1.12, allocations: 0 / 0.7245 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.07304/1.193, allocations: 30.41 MB / 0.7542 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/1.193, allocations: 239.6 kB / 0.7544 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008954/1.202, allocations: 6.751 MB / 0.761 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008418/1.203, allocations: 62.25 kB / 0.7611 GB, free: 158 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002604/1.206, allocations: 4.496 MB / 0.7655 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001519/1.207, allocations: 1.075 MB / 0.7665 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009661/1.208, allocations: 0.7558 MB / 0.7673 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.808e-05/1.208, allocations: 305.1 kB / 0.7676 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004596/1.213, allocations: 3.585 MB / 0.7711 GB, free: 147.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007753/1.221, allocations: 8.693 MB / 0.7795 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/1.233, allocations: 13.18 MB / 0.7924 GB, free: 121 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001914/1.234, allocations: 52 kB / 0.7925 GB, free: 121 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02645/1.26, allocations: 14.06 MB / 0.8062 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002252/1.26, allocations: 80.94 kB / 0.8063 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002886/1.261, allocations: 180 kB / 0.8064 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005608/1.266, allocations: 2.28 MB / 0.8087 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006501/1.273, allocations: 2.02 MB / 0.8106 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01481/1.288, allocations: 13.42 MB / 0.8238 GB, free: 88.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007564/1.295, allocations: 0.5109 MB / 0.8243 GB, free: 88.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001874/1.297, allocations: 0.5156 MB / 0.8248 GB, free: 87.65 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.007234/1.304, allocations: 3.051 MB / 0.8277 GB, free: 84.59 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00194/1.306, allocations: 0.5553 MB / 0.8283 GB, free: 84.02 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01384/1.32, allocations: 7.087 MB / 0.8352 GB, free: 76.92 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.888e-05/1.32, allocations: 28 kB / 0.8352 GB, free: 76.89 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.903e-05/1.32, allocations: 12 kB / 0.8352 GB, free: 76.88 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.526e-05/1.321, allocations: 11.95 kB / 0.8352 GB, free: 76.87 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02892/1.349, allocations: 15.01 MB / 0.8499 GB, free: 61.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.911e-05/1.35, allocations: 4 kB / 0.8499 GB, free: 61.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002269/1.352, allocations: 463.3 kB / 0.8504 GB, free: 61.34 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005143/1.357, allocations: 2.034 MB / 0.8523 GB, free: 59.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006095/1.358, allocations: 49.64 kB / 0.8524 GB, free: 59.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01441/1.372, allocations: 12.69 MB / 0.8648 GB, free: 46.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/1.372, allocations: 7.938 kB / 0.8648 GB, free: 46.29 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01623/1.388, allocations: 11.22 MB / 0.8757 GB, free: 34.93 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001783/1.39, allocations: 0.6536 MB / 0.8764 GB, free: 34.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001673/1.392, allocations: 51.98 kB / 0.8764 GB, free: 34.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004362/1.396, allocations: 196.8 kB / 0.8766 GB, free: 34.01 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009307/1.397, allocations: 175.3 kB / 0.8768 GB, free: 33.84 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005096/1.398, allocations: 73.25 kB / 0.8769 GB, free: 33.77 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008196/1.406, allocations: 4.332 MB / 0.8811 GB, free: 29.45 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.61e-07/1.406, allocations: 0 / 0.8811 GB, free: 29.45 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01063/1.417, allocations: 1.609 MB / 0.8827 GB, free: 27.84 MB / 0.5294 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.001097/1.418, allocations: 189 kB / 0.8828 GB, free: 27.65 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0135/1.431, allocations: 8.689 MB / 0.8913 GB, free: 18.97 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/1.431, allocations: 0 / 0.8913 GB, free: 18.97 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00563/1.437, allocations: 3.405 MB / 0.8947 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01028/1.447, allocations: 0.7091 MB / 0.8953 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2415/1.689, allocations: 18.13 MB / 0.913 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006644/1.696, allocations: 4.629 MB / 0.9176 GB, free: 164 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006976/1.703, allocations: 2.782 MB / 0.9203 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001153/1.704, allocations: 383.5 kB / 0.9206 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.052e-06/1.704, allocations: 0 / 0.9206 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of Templates: time 0.09642/1.8, allocations: 64.07 MB / 0.9832 GB, free: 115.8 MB / 0.5294 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