Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",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.0007412/0.0007453, allocations: 94.88 kB / 17.35 MB, free: 6.375 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.001014/0.001014, allocations: 175.7 kB / 18.26 MB, free: 5.52 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.325/1.325, allocations: 223.3 MB / 242.3 MB, free: 248 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.191/0.191, allocations: 44.26 MB / 337.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003063, allocations: 8 kB / 410.4 MB, free: 27.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1158, allocations: 61.91 MB / 472.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.3102/0.426, allocations: 50.46 MB / 0.5106 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02225/0.4483, allocations: 10.86 MB / 0.5212 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01164/0.46, allocations: 214.2 kB / 0.5214 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001679/0.4617, allocations: 395.3 kB / 0.5218 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005501/0.4672, allocations: 1.605 MB / 0.5233 GB, free: 8.797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001969/0.4692, allocations: 0.6423 MB / 0.5239 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007648/0.4768, allocations: 5.826 MB / 0.5296 GB, free: 6.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006931/0.4838, allocations: 4.907 MB / 0.5344 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002388/0.4862, allocations: 1.038 MB / 0.5354 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002918/0.4892, allocations: 1.788 MB / 0.5372 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007451/0.4899, allocations: 132.7 kB / 0.5373 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002355/0.4923, allocations: 1.08 MB / 0.5384 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002014/0.4943, allocations: 1.623 MB / 0.54 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003327/0.4977, allocations: 1.938 MB / 0.5418 GB, free: 268 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008535/0.5062, allocations: 6.688 MB / 0.5484 GB, free: 11.26 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.5063, allocations: 7.875 kB / 0.5484 GB, free: 11.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5063, allocations: 4 kB / 0.5484 GB, free: 11.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002762/0.5066, allocations: 0 / 0.5484 GB, free: 11.25 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1454 * Number of variables: 1454 Notification: Performance of Generate backend data structure: time 0.009765/0.5163, allocations: 3.821 MB / 0.5521 GB, free: 7.387 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.5164, allocations: 12.03 kB / 0.5521 GB, free: 7.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001965/0.5184, allocations: 0.6921 MB / 0.5528 GB, free: 6.707 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09315/0.6115, allocations: 7.246 MB / 0.5599 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006098/0.6177, allocations: 2.795 MB / 0.5626 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001986/0.6179, allocations: 225.2 kB / 0.5628 GB, free: 12.44 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001025/0.6189, allocations: 306.2 kB / 0.5631 GB, free: 12.17 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01636/0.6353, allocations: 9.255 MB / 0.5722 GB, free: 2.387 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001451/0.6355, allocations: 35.66 kB / 0.5722 GB, free: 2.352 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007475/0.6362, allocations: 143.3 kB / 0.5723 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003013/0.6393, allocations: 1.841 MB / 0.5741 GB, free: 420 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01325/0.6525, allocations: 7.584 MB / 0.5815 GB, free: 8.801 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0386/0.6912, allocations: 34.71 MB / 0.6154 GB, free: 5.188 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004621/0.6958, allocations: 2.392 MB / 0.6178 GB, free: 2.652 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001629/0.6975, allocations: 1.24 MB / 0.619 GB, free: 1.406 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003186/0.6978, allocations: 320.3 kB / 0.6193 GB, free: 1.043 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.6979, allocations: 51.06 kB / 0.6193 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of pre-optimization done (n=122): time 3.477e-06/0.6979, allocations: 7.938 kB / 0.6193 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of matching and sorting (n=140): time 0.02675/0.7246, allocations: 10.97 MB / 0.63 GB, free: 5.879 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.7248, allocations: 192.6 kB / 0.6302 GB, free: 5.648 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005781/0.7305, allocations: 3.64 MB / 0.6338 GB, free: 2.012 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002033/0.7308, allocations: 45.7 kB / 0.6338 GB, free: 1.961 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002151/0.7329, allocations: 2.966 MB / 0.6367 GB, free: 15 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006433/0.7336, allocations: 0.5465 MB / 0.6373 GB, free: 14.45 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006719/0.7343, allocations: 465.6 kB / 0.6377 GB, free: 13.99 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.264e-05/0.7344, allocations: 305.1 kB / 0.638 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002795/0.7372, allocations: 1.74 MB / 0.6397 GB, free: 11.95 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004684/0.7419, allocations: 5.162 MB / 0.6447 GB, free: 5.055 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007955/0.7498, allocations: 7.473 MB / 0.652 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001042/0.75, allocations: 36 kB / 0.6521 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01133/0.7613, allocations: 6.856 MB / 0.6588 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.016e-05/0.7614, allocations: 59.94 kB / 0.6588 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001598/0.7616, allocations: 120.9 kB / 0.6589 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.7626, allocations: 433.4 kB / 0.6593 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004061/0.7667, allocations: 1.24 MB / 0.6606 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004056/0.7708, allocations: 3.351 MB / 0.6638 GB, free: 15.66 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004177/0.775, allocations: 315.7 kB / 0.6641 GB, free: 15.35 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007594/0.7757, allocations: 328 kB / 0.6644 GB, free: 15.03 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 553 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (653): * Single equations (assignments): 649 * 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 {(1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00384/0.7796, allocations: 2.036 MB / 0.6664 GB, free: 12.98 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006065/0.7802, allocations: 308 kB / 0.6667 GB, free: 12.68 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003665/0.7839, allocations: 1.933 MB / 0.6686 GB, free: 10.73 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.889e-05/0.7839, allocations: 16 kB / 0.6686 GB, free: 10.71 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.7839, allocations: 4 kB / 0.6686 GB, free: 10.71 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.784, allocations: 11.91 kB / 0.6686 GB, free: 10.7 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01132/0.7953, allocations: 5.982 MB / 0.6745 GB, free: 4.684 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.541e-05/0.7953, allocations: 7.984 kB / 0.6745 GB, free: 4.676 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.7964, allocations: 223.7 kB / 0.6747 GB, free: 4.457 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007139/0.7971, allocations: 257.9 kB / 0.675 GB, free: 4.203 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/0.7973, allocations: 31.98 kB / 0.675 GB, free: 4.172 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003138/0.8004, allocations: 2.918 MB / 0.6778 GB, free: 1.121 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.8004, allocations: 7.969 kB / 0.6778 GB, free: 1.113 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005723/0.8062, allocations: 4.022 MB / 0.6818 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008677/0.807, allocations: 364.9 kB / 0.6821 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005839/0.8076, allocations: 23.94 kB / 0.6821 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001409/0.8091, allocations: 83.92 kB / 0.6822 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002732/0.8094, allocations: 100.5 kB / 0.6823 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.8095, allocations: 39.98 kB / 0.6824 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003901/0.8134, allocations: 2.266 MB / 0.6846 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.61e-07/0.8134, allocations: 0 / 0.6846 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004916/0.8183, allocations: 0.8555 MB / 0.6854 GB, free: 9.336 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.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 (107): * Single equations (assignments): 103 * 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 {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006808/0.8251, allocations: 4.654 MB / 0.6899 GB, free: 4.652 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00679/0.8319, allocations: 4.169 MB / 0.694 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.832, allocations: 0 / 0.694 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001759/0.8337, allocations: 1.185 MB / 0.6952 GB, free: 15.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002897/0.8367, allocations: 404.6 kB / 0.6956 GB, free: 14.91 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.275/1.112, allocations: 44.77 MB / 0.7393 GB, free: 179.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/1.114, allocations: 3.16 MB / 0.7424 GB, free: 178.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003591/1.118, allocations: 1.728 MB / 0.7441 GB, free: 178.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001752/1.12, allocations: 1.76 MB / 0.7458 GB, free: 176.6 MB / 0.545 GB Notification: Performance of SimCode: time 8.91e-07/1.12, allocations: 2.266 kB / 0.7458 GB, free: 176.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07529/1.195, allocations: 58.88 MB / 0.8033 GB, free: 120.4 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001362/1.195, allocations: 228.8 kB / 0.8035 GB, free: 120.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.221/4.416, allocations: 0 / 0.8035 GB, free: 120.1 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches