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.001129/0.001129, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001345/0.001345, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.402/1.402, allocations: 222.9 MB / 242.9 MB, free: 15.17 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.2073/0.2073, allocations: 44.16 MB / 337.3 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 62.36 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1211, allocations: 60.82 MB / 469.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01714/0.1383, allocations: 15.73 MB / 485.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01244/0.1508, allocations: 4.956 MB / 490.6 MB, free: 9.617 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003711/0.1545, allocations: 103.8 kB / 490.7 MB, free: 9.516 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00961/0.1642, allocations: 5.035 MB / 495.7 MB, free: 4.465 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008371/0.1727, allocations: 2.54 MB / 498.3 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003222/0.1759, allocations: 1.08 MB / 499.4 MB, free: 0.832 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01/0.1859, allocations: 6.843 MB / 0.4943 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008868/0.1948, allocations: 5.802 MB / 0.5 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004902/0.1998, allocations: 2.418 MB / 0.5024 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2324/0.4322, allocations: 3.239 MB / 0.5055 GB, free: 18.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002529/0.4348, allocations: 0.5064 MB / 0.506 GB, free: 18.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004295/0.4391, allocations: 1.412 MB / 0.5074 GB, free: 18.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004734/0.4439, allocations: 3.043 MB / 0.5104 GB, free: 18.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007991/0.4519, allocations: 3.427 MB / 0.5137 GB, free: 17.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01603/0.468, allocations: 10.3 MB / 0.5238 GB, free: 16.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.468, allocations: 0 / 0.5238 GB, free: 16.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.468, allocations: 0 / 0.5238 GB, free: 16.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000487/0.4685, allocations: 1.469 kB / 0.5238 GB, free: 16.05 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.02274/0.4913, allocations: 7.493 MB / 0.5311 GB, free: 11.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.4913, allocations: 17.14 kB / 0.5311 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01372/0.5051, allocations: 2.763 MB / 0.5338 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009739/0.5148, allocations: 4.281 MB / 0.538 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002464/0.5151, allocations: 367.7 kB / 0.5384 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001991/0.5171, allocations: 495.2 kB / 0.5388 GB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0299/0.547, allocations: 14.62 MB / 0.5531 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002528/0.5473, allocations: 71.02 kB / 0.5532 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00136/0.5487, allocations: 230.6 kB / 0.5534 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005569/0.5543, allocations: 2.824 MB / 0.5562 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02768/0.582, allocations: 12.35 MB / 0.5682 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08214/0.6642, allocations: 58.42 MB / 0.6253 GB, free: 1.582 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01661/0.6808, allocations: 6.27 MB / 0.6314 GB, free: 11.16 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005318/0.6862, allocations: 3.705 MB / 0.635 GB, free: 7.441 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01781/0.7041, allocations: 8.56 MB / 0.6434 GB, free: 14.79 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.169e-05/0.7042, allocations: 64.22 kB / 0.6434 GB, free: 14.71 MB / 494.1 MB Notification: Performance of pre-optimization done (n=236): time 5.41e-06/0.7042, allocations: 0 / 0.6434 GB, free: 14.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=278): time 0.09076/0.795, allocations: 30.45 MB / 0.6732 GB, free: 116 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001624/0.7952, allocations: 239.3 kB / 0.6734 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01414/0.8093, allocations: 6.747 MB / 0.68 GB, free: 9.09 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007911/0.8102, allocations: 68.36 kB / 0.68 GB, free: 9.02 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004933/0.8151, allocations: 4.498 MB / 0.6844 GB, free: 4.527 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001902/0.817, allocations: 1.068 MB / 0.6855 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005586/0.8227, allocations: 1.811 MB / 0.6873 GB, free: 1.645 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.8228, allocations: 313.1 kB / 0.6876 GB, free: 1.336 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006562/0.8294, allocations: 3.578 MB / 0.691 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01138/0.8408, allocations: 8.68 MB / 0.6995 GB, free: 2.641 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2463/1.087, allocations: 13.18 MB / 0.7124 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002165/1.087, allocations: 52.09 kB / 0.7124 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.0281/1.115, allocations: 14.06 MB / 0.7262 GB, free: 164 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/1.116, allocations: 79.88 kB / 0.7263 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002156/1.116, allocations: 179.9 kB / 0.7264 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005668/1.121, allocations: 2.288 MB / 0.7287 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006721/1.128, allocations: 2.012 MB / 0.7306 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01565/1.144, allocations: 14.36 MB / 0.7446 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00952/1.153, allocations: 0.5017 MB / 0.7451 GB, free: 155 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001806/1.155, allocations: 0.5147 MB / 0.7456 GB, free: 154.5 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.00608/1.161, allocations: 3.044 MB / 0.7486 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001159/1.163, allocations: 0.5595 MB / 0.7492 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01188/1.174, allocations: 7.083 MB / 0.7561 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.968e-05/1.175, allocations: 29.8 kB / 0.7561 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.592e-05/1.175, allocations: 8 kB / 0.7561 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.415e-05/1.175, allocations: 18.77 kB / 0.7561 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02848/1.203, allocations: 15.01 MB / 0.7708 GB, free: 131.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-05/1.203, allocations: 7.938 kB / 0.7708 GB, free: 131.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002352/1.206, allocations: 467.7 kB / 0.7712 GB, free: 131.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005142/1.211, allocations: 2.036 MB / 0.7732 GB, free: 129.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008829/1.212, allocations: 48 kB / 0.7733 GB, free: 129.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0149/1.227, allocations: 13.62 MB / 0.7866 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/1.227, allocations: 12.19 kB / 0.7866 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01531/1.242, allocations: 11.22 MB / 0.7975 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001902/1.244, allocations: 0.6381 MB / 0.7982 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0014/1.245, allocations: 48 kB / 0.7982 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002991/1.248, allocations: 201.2 kB / 0.7984 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006362/1.249, allocations: 167.5 kB / 0.7986 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002113/1.249, allocations: 79.98 kB / 0.7986 GB, free: 103 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0068/1.256, allocations: 4.325 MB / 0.8029 GB, free: 98.69 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.7e-07/1.256, allocations: 0 / 0.8029 GB, free: 98.69 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008741/1.265, allocations: 1.613 MB / 0.8044 GB, free: 97.08 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.0007564/1.266, allocations: 188.9 kB / 0.8046 GB, free: 96.89 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01485/1.28, allocations: 10.29 MB / 0.8147 GB, free: 86.63 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/1.28, allocations: 0 / 0.8147 GB, free: 86.63 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005324/1.286, allocations: 3.408 MB / 0.818 GB, free: 83.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005785/1.292, allocations: 0.7545 MB / 0.8187 GB, free: 82.47 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02725/1.319, allocations: 15.77 MB / 0.8341 GB, free: 66.62 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007242/1.326, allocations: 4.6 MB / 0.8386 GB, free: 61.98 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001953/1.328, allocations: 439.4 kB / 0.839 GB, free: 61.55 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/1.328, allocations: 4 kB / 0.839 GB, free: 61.54 MB / 0.5294 GB Notification: Performance of Templates: time 0.3902/1.718, allocations: 145.1 MB / 0.9807 GB, free: 98.98 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/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