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.001441/0.001441, allocations: 112.8 kB / 17.33 MB, free: 5.988 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.001514/0.001514, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.47/1.47, allocations: 222.9 MB / 241.9 MB, free: 15.37 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.2499/0.2499, allocations: 44.17 MB / 336.2 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 63.92 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1623, allocations: 60.82 MB / 468.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.341/0.5033, allocations: 51.78 MB / 0.5084 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02854/0.5319, allocations: 10.82 MB / 0.519 GB, free: 9.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01725/0.5492, allocations: 216.5 kB / 0.5192 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007589/0.5569, allocations: 2.687 MB / 0.5218 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00749/0.5645, allocations: 1.59 MB / 0.5234 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002405/0.5669, allocations: 0.6613 MB / 0.524 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007851/0.5748, allocations: 4.185 MB / 0.5281 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004831/0.5797, allocations: 3.929 MB / 0.5319 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002613/0.5823, allocations: 1.467 MB / 0.5334 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002979/0.5853, allocations: 2.183 MB / 0.5355 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008676/0.5862, allocations: 324.2 kB / 0.5358 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002425/0.5886, allocations: 1.227 MB / 0.537 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001437/0.5901, allocations: 1.855 MB / 0.5388 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002177/0.5923, allocations: 2.218 MB / 0.541 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008456/0.6007, allocations: 7.004 MB / 0.5478 GB, free: 9.758 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.6008, allocations: 0 / 0.5478 GB, free: 9.758 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6008, allocations: 0 / 0.5478 GB, free: 9.758 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002392/0.601, allocations: 0 / 0.5478 GB, free: 9.758 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.01293/0.614, allocations: 4.648 MB / 0.5524 GB, free: 5.137 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.863e-05/0.6141, allocations: 8.031 kB / 0.5524 GB, free: 5.129 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0012/0.6153, allocations: 0.6939 MB / 0.553 GB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08084/0.6961, allocations: 7.059 MB / 0.5599 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007022/0.7032, allocations: 2.787 MB / 0.5627 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002323/0.7034, allocations: 230.2 kB / 0.5629 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001361/0.7048, allocations: 312.6 kB / 0.5632 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0174/0.7222, allocations: 9.221 MB / 0.5722 GB, free: 368 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001658/0.7224, allocations: 43.59 kB / 0.5722 GB, free: 324 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008121/0.7232, allocations: 145.5 kB / 0.5724 GB, free: 212 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003031/0.7263, allocations: 1.84 MB / 0.5742 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01484/0.7411, allocations: 7.556 MB / 0.5815 GB, free: 6.797 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04226/0.7834, allocations: 34.65 MB / 0.6154 GB, free: 3.242 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004708/0.7882, allocations: 2.378 MB / 0.6177 GB, free: 0.7188 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00176/0.79, allocations: 1.235 MB / 0.6189 GB, free: 15.47 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003993/0.7904, allocations: 324.9 kB / 0.6192 GB, free: 15.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.7904, allocations: 43.12 kB / 0.6193 GB, free: 15.05 MB / 478.1 MB Notification: Performance of pre-optimization done (n=122): time 4.278e-06/0.7905, allocations: 0 / 0.6193 GB, free: 15.05 MB / 478.1 MB Notification: Performance of matching and sorting (n=140): time 0.02793/0.8184, allocations: 10.68 MB / 0.6297 GB, free: 4.246 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.8186, allocations: 196.5 kB / 0.6299 GB, free: 4.012 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006996/0.8256, allocations: 3.636 MB / 0.6334 GB, free: 388 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002572/0.8258, allocations: 45.7 kB / 0.6335 GB, free: 336 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002503/0.8284, allocations: 2.968 MB / 0.6364 GB, free: 13.39 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000812/0.8292, allocations: 0.5539 MB / 0.6369 GB, free: 12.85 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002134/0.8313, allocations: 1.079 MB / 0.638 GB, free: 11.76 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.8315, allocations: 317 kB / 0.6383 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002865/0.8343, allocations: 1.708 MB / 0.6399 GB, free: 9.73 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004908/0.8393, allocations: 5.135 MB / 0.6449 GB, free: 2.867 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008412/0.8477, allocations: 7.428 MB / 0.6522 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/0.8478, allocations: 36 kB / 0.6522 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01143/0.8593, allocations: 6.806 MB / 0.6589 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.063e-05/0.8594, allocations: 56 kB / 0.6589 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001539/0.8596, allocations: 124.8 kB / 0.659 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009537/0.8605, allocations: 428.9 kB / 0.6595 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003476/0.864, allocations: 1.232 MB / 0.6607 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004053/0.8681, allocations: 3.596 MB / 0.6642 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003596/0.8717, allocations: 295.6 kB / 0.6645 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006592/0.8724, allocations: 332 kB / 0.6648 GB, free: 12.71 MB / 0.5137 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.003249/0.8756, allocations: 2.039 MB / 0.6668 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006774/0.8763, allocations: 308 kB / 0.6671 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003642/0.88, allocations: 1.886 MB / 0.6689 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.007e-05/0.88, allocations: 16 kB / 0.6689 GB, free: 8.441 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.88, allocations: 8 kB / 0.6689 GB, free: 8.434 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.88, allocations: 11.97 kB / 0.6689 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01157/0.8916, allocations: 5.929 MB / 0.6747 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/0.8917, allocations: 4 kB / 0.6747 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.8928, allocations: 215.6 kB / 0.6749 GB, free: 2.246 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007721/0.8936, allocations: 260.5 kB / 0.6752 GB, free: 1.988 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001425/0.8937, allocations: 27.98 kB / 0.6752 GB, free: 1.961 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003794/0.8975, allocations: 3.165 MB / 0.6783 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.8975, allocations: 4.031 kB / 0.6783 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006325/0.9039, allocations: 3.949 MB / 0.6822 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009893/0.9049, allocations: 357 kB / 0.6825 GB, free: 10.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006324/0.9055, allocations: 16 kB / 0.6825 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001458/0.907, allocations: 83.97 kB / 0.6826 GB, free: 10.22 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002916/0.9073, allocations: 104.4 kB / 0.6827 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.9074, allocations: 35.98 kB / 0.6827 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004474/0.9119, allocations: 2.27 MB / 0.6849 GB, free: 7.824 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.1e-07/0.9119, allocations: 4 kB / 0.6849 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004769/0.9167, allocations: 0.8537 MB / 0.6858 GB, free: 6.969 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.006077/0.9228, allocations: 4.582 MB / 0.6903 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007586/0.9304, allocations: 4.632 MB / 0.6948 GB, free: 13.74 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.9304, allocations: 0 / 0.6948 GB, free: 13.74 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001752/0.9322, allocations: 1.162 MB / 0.6959 GB, free: 12.57 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002995/0.9352, allocations: 434.4 kB / 0.6963 GB, free: 12.15 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2954/1.231, allocations: 44.56 MB / 0.7398 GB, free: 182.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003052/1.234, allocations: 3.165 MB / 0.7429 GB, free: 181.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003795/1.238, allocations: 1.719 MB / 0.7446 GB, free: 181 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002006/1.24, allocations: 1.758 MB / 0.7463 GB, free: 179.6 MB / 0.545 GB Notification: Performance of SimCode: time 8.62e-07/1.24, allocations: 0 / 0.7463 GB, free: 179.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08924/1.329, allocations: 60.5 MB / 0.8054 GB, free: 122.3 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001726/1.329, allocations: 237.2 kB / 0.8056 GB, free: 122.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.627/4.956, allocations: 0 / 0.8056 GB, free: 122.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