Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 107.5 kB / 17.16 MB, free: 6.082 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.001342/0.001342, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.376/1.376, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 50.42 kB / 300.6 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09436/0.09551, allocations: 49.44 MB / 350.1 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2277/0.3232, allocations: 56.88 MB / 406.9 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02781/0.3511, allocations: 11.66 MB / 418.6 MB, free: 60 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01418/0.3653, allocations: 242.6 kB / 418.8 MB, free: 24 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006637/0.3721, allocations: 3.187 MB / 422 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005684/0.3778, allocations: 1.826 MB / 423.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002235/0.38, allocations: 0.78 MB / 424.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008466/0.3885, allocations: 6.555 MB / 431.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00542/0.394, allocations: 4.029 MB / 435.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002746/0.3968, allocations: 1.468 MB / 436.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003313/0.4001, allocations: 2.313 MB / 439 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008334/0.401, allocations: 256 kB / 439.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002561/0.4035, allocations: 1.236 MB / 440.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001972/0.4055, allocations: 1.999 MB / 442.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002585/0.4081, allocations: 2.279 MB / 444.8 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006149/0.4143, allocations: 5.991 MB / 450.7 MB, free: 96 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4143, allocations: 4 kB / 450.8 MB, free: 92 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4143, allocations: 0 / 450.8 MB, free: 92 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001944/0.4145, allocations: 0 / 450.8 MB, free: 92 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01143/0.426, allocations: 5.186 MB / 455.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.426, allocations: 8.031 kB / 455.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008839/0.4349, allocations: 2.175 MB / 458.1 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006544/0.4415, allocations: 2.796 MB / 460.9 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003509/0.4419, allocations: 250.2 kB / 461.2 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001467/0.4434, allocations: 331.7 kB / 461.5 MB, free: 5.215 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02001/0.4634, allocations: 10.82 MB / 472.3 MB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001434/0.4636, allocations: 47.59 kB / 472.4 MB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000599/0.4642, allocations: 155.8 kB / 472.5 MB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003625/0.4678, allocations: 2.162 MB / 474.7 MB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01862/0.4865, allocations: 9.215 MB / 483.9 MB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05919/0.5457, allocations: 41.88 MB / 0.5134 GB, free: 3.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01208/0.5578, allocations: 4.49 MB / 0.5178 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003602/0.5615, allocations: 2.497 MB / 0.5203 GB, free: 11.94 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01273/0.5742, allocations: 7.384 MB / 0.5275 GB, free: 4.352 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.879e-05/0.5743, allocations: 55.44 kB / 0.5275 GB, free: 4.289 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 5.991e-06/0.5744, allocations: 0 / 0.5275 GB, free: 4.289 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.2283/0.8026, allocations: 18.75 MB / 0.5458 GB, free: 149.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.8027, allocations: 177.5 kB / 0.546 GB, free: 149 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00631/0.809, allocations: 4.622 MB / 0.5505 GB, free: 147.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004338/0.8095, allocations: 53.03 kB / 0.5506 GB, free: 147.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001521/0.811, allocations: 3.218 MB / 0.5537 GB, free: 144.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000836/0.8119, allocations: 0.756 MB / 0.5545 GB, free: 144.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00144/0.8133, allocations: 1.297 MB / 0.5557 GB, free: 143.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.532e-05/0.8134, allocations: 301.1 kB / 0.556 GB, free: 143.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002747/0.8161, allocations: 2.4 MB / 0.5584 GB, free: 142.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003715/0.8199, allocations: 6.143 MB / 0.5644 GB, free: 136.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007743/0.8276, allocations: 9.237 MB / 0.5734 GB, free: 127.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001123/0.8278, allocations: 43.94 kB / 0.5734 GB, free: 127.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01523/0.843, allocations: 9.347 MB / 0.5825 GB, free: 118.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.301e-05/0.8431, allocations: 64 kB / 0.5826 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001182/0.8432, allocations: 128 kB / 0.5827 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00274/0.846, allocations: 1.2 MB / 0.5839 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004303/0.8503, allocations: 1.454 MB / 0.5853 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007109/0.8574, allocations: 6.818 MB / 0.592 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004877/0.8624, allocations: 363.1 kB / 0.5923 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009734/0.8634, allocations: 384.8 kB / 0.5927 GB, free: 108 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (772): * Single equations (assignments): 766 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003195/0.8666, allocations: 2.241 MB / 0.5949 GB, free: 105.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008279/0.8674, allocations: 390.9 kB / 0.5953 GB, free: 105.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006086/0.8735, allocations: 4.058 MB / 0.5992 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.758e-05/0.8735, allocations: 20.75 kB / 0.5992 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.8736, allocations: 8 kB / 0.5992 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/0.8736, allocations: 11.95 kB / 0.5993 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01411/0.8877, allocations: 9.608 MB / 0.6086 GB, free: 91.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.698e-05/0.8878, allocations: 8 kB / 0.6086 GB, free: 91.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/0.8892, allocations: 315.5 kB / 0.6089 GB, free: 91.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002406/0.8916, allocations: 1.019 MB / 0.6099 GB, free: 90.17 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001893/0.8918, allocations: 40 kB / 0.61 GB, free: 90.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006829/0.8986, allocations: 6.355 MB / 0.6162 GB, free: 83.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.269e-06/0.8987, allocations: 7.938 kB / 0.6162 GB, free: 83.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008863/0.9075, allocations: 7.046 MB / 0.6231 GB, free: 76.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/0.9088, allocations: 467.8 kB / 0.6235 GB, free: 76.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007151/0.9095, allocations: 36 kB / 0.6236 GB, free: 75.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/0.9112, allocations: 127.8 kB / 0.6237 GB, free: 75.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003497/0.9116, allocations: 132.9 kB / 0.6238 GB, free: 75.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001528/0.9117, allocations: 52 kB / 0.6239 GB, free: 75.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004034/0.9158, allocations: 2.964 MB / 0.6267 GB, free: 72.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.9158, allocations: 0 / 0.6267 GB, free: 72.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005714/0.9215, allocations: 1.08 MB / 0.6278 GB, free: 71.64 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (157): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.000531/0.9221, allocations: 182 kB / 0.628 GB, free: 71.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007239/0.9293, allocations: 5.731 MB / 0.6336 GB, free: 65.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.9294, allocations: 0 / 0.6336 GB, free: 65.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002775/0.9322, allocations: 2.059 MB / 0.6356 GB, free: 63.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003071/0.9353, allocations: 492.9 kB / 0.6361 GB, free: 63.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01587/0.9511, allocations: 12.84 MB / 0.6486 GB, free: 50.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002986/0.9542, allocations: 3.445 MB / 0.652 GB, free: 46.78 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/0.9554, allocations: 311.3 kB / 0.6523 GB, free: 46.47 MB / 446.1 MB Notification: Performance of SimCode: time 7.71e-07/0.9554, allocations: 4 kB / 0.6523 GB, free: 46.47 MB / 446.1 MB Notification: Performance of Templates: time 0.2676/1.223, allocations: 82.12 MB / 0.7325 GB, free: 110.2 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches