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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.002609/0.002609, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 241.6 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 103.2 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3302/0.3302, allocations: 44.13 MB / 386.1 MB, free: 37.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 55.92 kB / 457.7 MB, free: 2.316 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2921, allocations: 60.8 MB / 0.5064 GB, free: 38.27 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.06555/0.3577, allocations: 89.19 MB / 0.5935 GB, free: 5.109 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04128/0.399, allocations: 17.11 MB / 0.6102 GB, free: 5.551 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02179/0.4208, allocations: 391.1 kB / 0.6106 GB, free: 5.168 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00952/0.4304, allocations: 5.022 MB / 0.6155 GB, free: 136 kB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00681/0.4373, allocations: 2.413 MB / 0.6178 GB, free: 13.71 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002437/0.4398, allocations: 0.9947 MB / 0.6188 GB, free: 12.71 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.01153/0.4513, allocations: 10.1 MB / 0.6286 GB, free: 2.602 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006926/0.4583, allocations: 5.731 MB / 0.6342 GB, free: 12.79 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00379/0.4621, allocations: 2.164 MB / 0.6364 GB, free: 10.61 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005301/0.4674, allocations: 3.493 MB / 0.6398 GB, free: 7.109 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001276/0.4688, allocations: 376 kB / 0.6401 GB, free: 6.742 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002943/0.4717, allocations: 1.35 MB / 0.6414 GB, free: 5.391 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002698/0.4744, allocations: 2.949 MB / 0.6443 GB, free: 2.434 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003738/0.4782, allocations: 3.297 MB / 0.6475 GB, free: 15.11 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.4884, allocations: 10.17 MB / 0.6575 GB, free: 4.91 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.4884, allocations: 4 kB / 0.6575 GB, free: 4.906 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4884, allocations: 0 / 0.6575 GB, free: 4.906 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002939/0.4888, allocations: 0 / 0.6575 GB, free: 4.906 MB / 474.7 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.01525/0.504, allocations: 7.499 MB / 0.6648 GB, free: 13.32 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.5041, allocations: 8.031 kB / 0.6648 GB, free: 13.31 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01216/0.5162, allocations: 2.761 MB / 0.6675 GB, free: 10.54 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/0.5268, allocations: 4.292 MB / 0.6717 GB, free: 6.164 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003142/0.5272, allocations: 361.7 kB / 0.6721 GB, free: 5.809 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001402/0.5286, allocations: 491.5 kB / 0.6725 GB, free: 5.328 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2357/0.7643, allocations: 14.63 MB / 0.6868 GB, free: 127.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001637/0.7645, allocations: 73.69 kB / 0.6869 GB, free: 127.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005256/0.7651, allocations: 231.4 kB / 0.6871 GB, free: 127.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004084/0.7691, allocations: 2.82 MB / 0.6898 GB, free: 126.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02003/0.7892, allocations: 12.35 MB / 0.7019 GB, free: 123 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05745/0.8467, allocations: 58.42 MB / 0.759 GB, free: 79.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01301/0.8597, allocations: 6.284 MB / 0.7651 GB, free: 72.9 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003568/0.8633, allocations: 3.706 MB / 0.7687 GB, free: 69.18 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01163/0.875, allocations: 8.553 MB / 0.7771 GB, free: 60.48 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.636e-05/0.8751, allocations: 60.22 kB / 0.7771 GB, free: 60.41 MB / 490.7 MB Notification: Performance of pre-optimization done (n=236): time 4.849e-06/0.8751, allocations: 0 / 0.7771 GB, free: 60.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=278): time 0.06569/0.9408, allocations: 30.43 MB / 0.8068 GB, free: 29.73 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.096e-05/0.9409, allocations: 235.6 kB / 0.8071 GB, free: 29.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007869/0.9488, allocations: 6.754 MB / 0.8137 GB, free: 22.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006005/0.9494, allocations: 69.7 kB / 0.8137 GB, free: 22.63 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001846/0.9513, allocations: 4.5 MB / 0.8181 GB, free: 18.07 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008469/0.9521, allocations: 1.068 MB / 0.8192 GB, free: 16.99 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001798/0.9539, allocations: 1.8 MB / 0.8209 GB, free: 15.17 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 3.663e-05/0.954, allocations: 305.1 kB / 0.8212 GB, free: 14.87 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003801/0.9578, allocations: 3.585 MB / 0.8247 GB, free: 11.28 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006189/0.964, allocations: 8.681 MB / 0.8332 GB, free: 80 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01488/0.9789, allocations: 13.2 MB / 0.8461 GB, free: 384 kB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001554/0.9791, allocations: 52 kB / 0.8461 GB, free: 332 kB / 0.4948 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02606/1.005, allocations: 14.06 MB / 0.8599 GB, free: 2.246 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001968/1.005, allocations: 80 kB / 0.8599 GB, free: 2.168 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002786/1.006, allocations: 176 kB / 0.8601 GB, free: 1.996 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006072/1.012, allocations: 2.287 MB / 0.8623 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006599/1.018, allocations: 2.016 MB / 0.8643 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2457/1.264, allocations: 13.42 MB / 0.8774 GB, free: 156.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007753/1.272, allocations: 0.4987 MB / 0.8779 GB, free: 156.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002102/1.274, allocations: 0.5245 MB / 0.8784 GB, free: 156.4 MB / 0.5261 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.007321/1.281, allocations: 3.046 MB / 0.8814 GB, free: 156.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0018/1.283, allocations: 0.5567 MB / 0.8819 GB, free: 156.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01461/1.298, allocations: 7.079 MB / 0.8888 GB, free: 154 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.078e-05/1.298, allocations: 31 kB / 0.8889 GB, free: 154 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.379e-05/1.298, allocations: 12.38 kB / 0.8889 GB, free: 154 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.135e-05/1.298, allocations: 15.59 kB / 0.8889 GB, free: 154 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03172/1.33, allocations: 15.02 MB / 0.9036 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.418e-05/1.33, allocations: 4.656 kB / 0.9036 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002513/1.332, allocations: 455.4 kB / 0.904 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005931/1.338, allocations: 2.032 MB / 0.906 GB, free: 148.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005983/1.339, allocations: 56.61 kB / 0.906 GB, free: 148.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01708/1.356, allocations: 12.66 MB / 0.9184 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-05/1.356, allocations: 7.688 kB / 0.9184 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1166/1.473, allocations: 76.86 MB / 0.9935 GB, free: 80.68 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/1.474, allocations: 0.6342 MB / 0.9941 GB, free: 80.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009122/1.475, allocations: 56.92 kB / 0.9941 GB, free: 79.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002578/1.478, allocations: 195.7 kB / 0.9943 GB, free: 79.78 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006137/1.478, allocations: 173.4 kB / 0.9945 GB, free: 79.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/1.479, allocations: 75.98 kB / 0.9946 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005478/1.484, allocations: 4.321 MB / 0.9988 GB, free: 75.23 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.52e-07/1.484, allocations: 0 / 0.9988 GB, free: 75.23 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01049/1.495, allocations: 2.229 MB / 1.001 GB, free: 73.01 MB / 0.5261 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.0006705/1.495, allocations: 193 kB / 1.001 GB, free: 72.82 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01115/1.506, allocations: 8.703 MB / 1.01 GB, free: 64.18 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/1.506, allocations: 0 / 1.01 GB, free: 64.18 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005016/1.511, allocations: 3.409 MB / 1.013 GB, free: 60.76 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00413/1.516, allocations: 0.6975 MB / 1.014 GB, free: 60.06 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02327/1.539, allocations: 20.44 MB / 1.034 GB, free: 39.51 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005449/1.544, allocations: 4.73 MB / 1.038 GB, free: 34.74 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006756/1.551, allocations: 2.834 MB / 1.041 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001565/1.553, allocations: 395.4 kB / 1.041 GB, free: 31.51 MB / 0.5261 GB Notification: Performance of SimCode: time 9.92e-07/1.553, allocations: 0 / 1.041 GB, free: 31.51 MB / 0.5261 GB Notification: Performance of Templates: time 0.3555/1.908, allocations: 85.33 MB / 1.125 GB, free: 146.5 MB / 0.5417 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches