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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007776/0.0007775, allocations: 91.39 kB / 16.65 MB, free: 6.113 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.0009271/0.0009271, allocations: 185.2 kB / 17.56 MB, free: 5.781 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.288/1.288, allocations: 223.3 MB / 241.6 MB, free: 88 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002695, allocations: 8 kB / 301.5 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1005, allocations: 50.41 MB / 351.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2671/0.3677, allocations: 55.43 MB / 407.4 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03683/0.4046, allocations: 11.61 MB / 419 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01691/0.4215, allocations: 240.2 kB / 419.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00204/0.4236, allocations: 442.5 kB / 419.7 MB, free: 340 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006247/0.4299, allocations: 1.839 MB / 421.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002073/0.4319, allocations: 0.6475 MB / 422.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009148/0.4411, allocations: 6.554 MB / 428.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008848/0.45, allocations: 5.742 MB / 434.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002664/0.4527, allocations: 1.198 MB / 435.6 MB, free: 320 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003599/0.4563, allocations: 1.985 MB / 437.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009057/0.4572, allocations: 148 kB / 437.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002706/0.46, allocations: 1.123 MB / 438.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002432/0.4624, allocations: 1.846 MB / 440.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003253/0.4657, allocations: 2.121 MB / 442.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007527/0.4732, allocations: 7.174 MB / 450 MB, free: 1.859 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.4733, allocations: 0 / 450 MB, free: 1.859 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.4733, allocations: 0 / 450 MB, free: 1.859 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002268/0.4735, allocations: 0 / 450 MB, free: 1.859 MB / 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.009442/0.483, allocations: 4.336 MB / 454.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.483, allocations: 12.03 kB / 454.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001412/0.4845, allocations: 0.757 MB / 455.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02234/0.5068, allocations: 3.988 MB / 459.1 MB, free: 8.672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006186/0.513, allocations: 3.077 MB / 462.2 MB, free: 5.535 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.5133, allocations: 254.2 kB / 462.4 MB, free: 5.285 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001077/0.5144, allocations: 327.8 kB / 462.8 MB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01821/0.5326, allocations: 10.77 MB / 473.5 MB, free: 9.504 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001263/0.5327, allocations: 43.59 kB / 473.6 MB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004092/0.5332, allocations: 151.9 kB / 473.7 MB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00357/0.5367, allocations: 2.158 MB / 475.9 MB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01805/0.5548, allocations: 9.105 MB / 485 MB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05171/0.6065, allocations: 41.71 MB / 0.5144 GB, free: 3.184 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01167/0.6183, allocations: 4.443 MB / 0.5187 GB, free: 14.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003073/0.6214, allocations: 2.438 MB / 0.5211 GB, free: 12.15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01135/0.6327, allocations: 7.232 MB / 0.5281 GB, free: 4.707 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.038e-05/0.6328, allocations: 51.56 kB / 0.5282 GB, free: 4.648 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 5.381e-06/0.6329, allocations: 0 / 0.5282 GB, free: 4.648 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.2361/0.869, allocations: 17.92 MB / 0.5457 GB, free: 149 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.358e-05/0.8691, allocations: 177.3 kB / 0.5459 GB, free: 148.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006567/0.8757, allocations: 4.622 MB / 0.5504 GB, free: 147.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004044/0.8761, allocations: 56.67 kB / 0.5504 GB, free: 147.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0017/0.8778, allocations: 3.24 MB / 0.5536 GB, free: 144.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006819/0.8785, allocations: 0.7553 MB / 0.5543 GB, free: 144 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005253/0.8791, allocations: 0.5348 MB / 0.5548 GB, free: 143.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.876e-05/0.8791, allocations: 309.1 kB / 0.5551 GB, free: 143.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002842/0.882, allocations: 2.285 MB / 0.5574 GB, free: 142.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003766/0.8858, allocations: 6.023 MB / 0.5633 GB, free: 137 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007681/0.8934, allocations: 9.05 MB / 0.5721 GB, free: 129.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.431e-05/0.8935, allocations: 40 kB / 0.5721 GB, free: 129.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01236/0.9059, allocations: 8.866 MB / 0.5808 GB, free: 120.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.457e-05/0.906, allocations: 60.19 kB / 0.5808 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.459e-05/0.9061, allocations: 140 kB / 0.581 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001932/0.908, allocations: 0.9413 MB / 0.5819 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003726/0.9118, allocations: 1.419 MB / 0.5833 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006046/0.9178, allocations: 6.104 MB / 0.5892 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00483/0.9227, allocations: 343.4 kB / 0.5896 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007226/0.9234, allocations: 383.5 kB / 0.5899 GB, free: 110.9 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 (753): * Single equations (assignments): 747 * 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.00324/0.9267, allocations: 2.24 MB / 0.5921 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008211/0.9275, allocations: 394.8 kB / 0.5925 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005397/0.9329, allocations: 3.688 MB / 0.5961 GB, free: 104.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.799e-05/0.9329, allocations: 25.95 kB / 0.5961 GB, free: 104.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.933, allocations: 4 kB / 0.5961 GB, free: 104.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.933, allocations: 11.97 kB / 0.5961 GB, free: 104.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01313/0.9461, allocations: 9.243 MB / 0.6052 GB, free: 95.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/0.9462, allocations: 5.188 kB / 0.6052 GB, free: 95.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/0.9475, allocations: 323.5 kB / 0.6055 GB, free: 94.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001748/0.9493, allocations: 0.7657 MB / 0.6062 GB, free: 94.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/0.9494, allocations: 36.55 kB / 0.6063 GB, free: 94.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005898/0.9553, allocations: 5.631 MB / 0.6118 GB, free: 88.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.9553, allocations: 8.469 kB / 0.6118 GB, free: 88.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007738/0.9631, allocations: 6.59 MB / 0.6182 GB, free: 81.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/0.9644, allocations: 478.2 kB / 0.6187 GB, free: 81.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004098/0.9648, allocations: 33.17 kB / 0.6187 GB, free: 81.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/0.9662, allocations: 115.8 kB / 0.6188 GB, free: 80.99 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002788/0.9665, allocations: 136.9 kB / 0.6189 GB, free: 80.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.9666, allocations: 53.48 kB / 0.619 GB, free: 80.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003487/0.9701, allocations: 2.965 MB / 0.6219 GB, free: 77.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9701, allocations: 0 / 0.6219 GB, free: 77.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004516/0.9747, allocations: 1.062 MB / 0.6229 GB, free: 76.79 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.007595/0.9823, allocations: 7.249 MB / 0.63 GB, free: 69.44 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007068/0.9894, allocations: 5.539 MB / 0.6354 GB, free: 63.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.9894, allocations: 0 / 0.6354 GB, free: 63.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002522/0.9919, allocations: 1.963 MB / 0.6373 GB, free: 61.94 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005912/0.9978, allocations: 0.5059 MB / 0.6378 GB, free: 61.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07359/1.071, allocations: 60.86 MB / 0.6973 GB, free: 8.129 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003533/1.075, allocations: 3.449 MB / 0.7006 GB, free: 4.648 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00486/1.08, allocations: 2.057 MB / 0.7026 GB, free: 2.586 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002561/1.082, allocations: 2.057 MB / 0.7046 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/1.082, allocations: 0 / 0.7046 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3039/1.386, allocations: 78.75 MB / 0.7815 GB, free: 97.55 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/1.387, allocations: 237.6 kB / 0.7818 GB, free: 97.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.231/5.617, allocations: 7.875 kB / 0.7818 GB, free: 97.29 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > 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