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.001591/0.001591, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001517/0.001517, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.384/1.384, allocations: 222.9 MB / 243 MB, free: 15.15 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.2144/0.2144, allocations: 44.18 MB / 337.4 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002255/0.002255, allocations: 70.05 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1484, allocations: 60.82 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01727/0.1657, allocations: 15.74 MB / 486.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01037/0.1761, allocations: 4.952 MB / 491.4 MB, free: 8.883 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00231/0.1785, allocations: 107.7 kB / 491.5 MB, free: 8.777 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008731/0.1872, allocations: 5.027 MB / 496.5 MB, free: 3.734 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006409/0.1937, allocations: 2.552 MB / 499.1 MB, free: 1.176 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002402/0.1961, allocations: 1.072 MB / 0.4884 GB, free: 104 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009478/0.2056, allocations: 6.843 MB / 0.4951 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007721/0.2134, allocations: 5.786 MB / 0.5008 GB, free: 3.383 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005702/0.2191, allocations: 2.418 MB / 0.5031 GB, free: 0.957 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.252/0.4711, allocations: 3.246 MB / 0.5063 GB, free: 19.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002258/0.4734, allocations: 0.5067 MB / 0.5068 GB, free: 19.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004782/0.4782, allocations: 1.407 MB / 0.5082 GB, free: 19.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005605/0.4839, allocations: 3.048 MB / 0.5111 GB, free: 19.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01018/0.4941, allocations: 3.427 MB / 0.5145 GB, free: 18.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0223/0.5164, allocations: 10.61 MB / 0.5248 GB, free: 16.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.086e-05/0.5165, allocations: 3.891 kB / 0.5248 GB, free: 16.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.5165, allocations: 0 / 0.5248 GB, free: 16.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000605/0.5171, allocations: 1.781 kB / 0.5248 GB, free: 16.16 MB / 382.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.02441/0.5415, allocations: 7.505 MB / 0.5322 GB, free: 11.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.5416, allocations: 9.438 kB / 0.5322 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01251/0.5541, allocations: 2.767 MB / 0.5349 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0118/0.5659, allocations: 4.361 MB / 0.5391 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003493/0.5663, allocations: 364.4 kB / 0.5395 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002925/0.5693, allocations: 489.6 kB / 0.54 GB, free: 7.492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03165/0.6009, allocations: 14.63 MB / 0.5542 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003696/0.6014, allocations: 69.62 kB / 0.5543 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00194/0.6033, allocations: 234.3 kB / 0.5545 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00549/0.6088, allocations: 2.819 MB / 0.5573 GB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02635/0.6352, allocations: 12.36 MB / 0.5694 GB, free: 12.03 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07609/0.7113, allocations: 58.16 MB / 0.6262 GB, free: 1.176 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01532/0.7267, allocations: 6.267 MB / 0.6323 GB, free: 10.76 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005259/0.732, allocations: 3.718 MB / 0.6359 GB, free: 7.031 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01741/0.7495, allocations: 8.552 MB / 0.6443 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.329e-05/0.7496, allocations: 61.86 kB / 0.6443 GB, free: 14.31 MB / 494.1 MB Notification: Performance of pre-optimization done (n=236): time 4.97e-06/0.7496, allocations: 0 / 0.6443 GB, free: 14.31 MB / 494.1 MB Notification: Performance of matching and sorting (n=278): time 0.07813/0.8277, allocations: 30.44 MB / 0.674 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.8279, allocations: 238.3 kB / 0.6743 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01444/0.8423, allocations: 6.754 MB / 0.6809 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001188/0.8436, allocations: 65.7 kB / 0.6809 GB, free: 8.621 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004767/0.8483, allocations: 4.503 MB / 0.6853 GB, free: 4.125 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001961/0.8503, allocations: 1.065 MB / 0.6864 GB, free: 3.07 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003388/0.8537, allocations: 1.81 MB / 0.6881 GB, free: 1.25 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001985/0.8539, allocations: 305.1 kB / 0.6884 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005422/0.8593, allocations: 3.585 MB / 0.6919 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00977/0.8691, allocations: 8.687 MB / 0.7004 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2443/1.113, allocations: 13.18 MB / 0.7133 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001606/1.114, allocations: 51.38 kB / 0.7133 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02869/1.142, allocations: 14.06 MB / 0.7271 GB, free: 164 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/1.142, allocations: 80.34 kB / 0.7271 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002143/1.143, allocations: 182 kB / 0.7273 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005467/1.148, allocations: 2.28 MB / 0.7295 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007497/1.156, allocations: 2.017 MB / 0.7315 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01579/1.171, allocations: 14.35 MB / 0.7455 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00717/1.179, allocations: 0.5094 MB / 0.746 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001362/1.18, allocations: 0.5143 MB / 0.7465 GB, free: 154.2 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.005314/1.185, allocations: 3.051 MB / 0.7495 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001181/1.187, allocations: 0.5527 MB / 0.75 GB, free: 151.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01111/1.198, allocations: 7.081 MB / 0.7569 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.246e-05/1.198, allocations: 36 kB / 0.757 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.942e-05/1.198, allocations: 8 kB / 0.757 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-05/1.198, allocations: 15.58 kB / 0.757 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02451/1.222, allocations: 14.98 MB / 0.7716 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.496e-05/1.222, allocations: 11.94 kB / 0.7716 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/1.225, allocations: 453.2 kB / 0.7721 GB, free: 131 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004494/1.229, allocations: 2.038 MB / 0.7741 GB, free: 129 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003726/1.229, allocations: 52.61 kB / 0.7741 GB, free: 128.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01392/1.243, allocations: 13.61 MB / 0.7874 GB, free: 115.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/1.243, allocations: 8 kB / 0.7874 GB, free: 115.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0146/1.258, allocations: 11.22 MB / 0.7984 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002049/1.26, allocations: 0.6303 MB / 0.799 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001265/1.261, allocations: 55.98 kB / 0.799 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002505/1.264, allocations: 196.2 kB / 0.7992 GB, free: 103 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005215/1.264, allocations: 177.6 kB / 0.7994 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000203/1.265, allocations: 72.62 kB / 0.7995 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006563/1.271, allocations: 4.321 MB / 0.8037 GB, free: 98.44 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.4e-07/1.271, allocations: 0 / 0.8037 GB, free: 98.44 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008453/1.28, allocations: 1.616 MB / 0.8053 GB, free: 96.83 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.0008116/1.28, allocations: 193.9 kB / 0.8054 GB, free: 96.64 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01157/1.292, allocations: 8.735 MB / 0.814 GB, free: 87.91 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/1.292, allocations: 4 kB / 0.814 GB, free: 87.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004831/1.297, allocations: 3.401 MB / 0.8173 GB, free: 84.48 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004475/1.301, allocations: 0.7545 MB / 0.818 GB, free: 83.76 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0195/1.321, allocations: 14.98 MB / 0.8327 GB, free: 68.71 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004653/1.326, allocations: 4.615 MB / 0.8372 GB, free: 64.05 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005476/1.331, allocations: 2.779 MB / 0.8399 GB, free: 61.27 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/1.332, allocations: 391.3 kB / 0.8403 GB, free: 60.88 MB / 0.5294 GB Notification: Performance of SimCode: time 7.61e-07/1.332, allocations: 0 / 0.8403 GB, free: 60.88 MB / 0.5294 GB Notification: Performance of Templates: time 0.09405/1.426, allocations: 59.7 MB / 0.8986 GB, free: 1.648 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 -s cvode -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/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_4.0.0_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches