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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 121 kB / 20.33 MB, free: 1.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 210.6 kB / 23.61 MB, free: 4.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.492/1.492, allocations: 230.5 MB / 257.3 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2279/0.2279, allocations: 44.9 MB / 358.6 MB, free: 6.332 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002045, allocations: 71.89 kB / 0.4927 GB, free: 10.86 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.352, allocations: 65.47 MB / 0.5566 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01211/0.3641, allocations: 9.496 MB / 0.5659 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008489/0.3726, allocations: 3.87 MB / 0.5697 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001464/0.374, allocations: 63.75 kB / 0.5698 GB, free: 10.33 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005417/0.3794, allocations: 2.8 MB / 0.5725 GB, free: 7.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004519/0.384, allocations: 1.654 MB / 0.5741 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.3858, allocations: 0.7213 MB / 0.5748 GB, free: 5.137 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005882/0.3917, allocations: 3.895 MB / 0.5786 GB, free: 1.234 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004213/0.3959, allocations: 2.764 MB / 0.5813 GB, free: 14.4 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00279/0.3987, allocations: 1.433 MB / 0.5827 GB, free: 12.96 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003477/0.4021, allocations: 2.048 MB / 0.5847 GB, free: 10.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009646/0.4031, allocations: 316 kB / 0.585 GB, free: 10.6 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002588/0.4057, allocations: 1.1 MB / 0.5861 GB, free: 9.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002213/0.4079, allocations: 1.784 MB / 0.5878 GB, free: 7.711 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003276/0.4112, allocations: 2.094 MB / 0.5899 GB, free: 5.605 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008674/0.4198, allocations: 6.876 MB / 0.5966 GB, free: 14.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.4199, allocations: 7.922 kB / 0.5966 GB, free: 14.69 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4199, allocations: 0 / 0.5966 GB, free: 14.69 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002415/0.4201, allocations: 0 / 0.5966 GB, free: 14.69 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01184/0.4319, allocations: 4.5 MB / 0.601 GB, free: 10.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.432, allocations: 16.02 kB / 0.601 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001146/0.4331, allocations: 0.6535 MB / 0.6017 GB, free: 9.461 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0794/0.5125, allocations: 7.056 MB / 0.6085 GB, free: 2.395 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006433/0.519, allocations: 2.624 MB / 0.6111 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.5192, allocations: 221.9 kB / 0.6113 GB, free: 15.49 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008766/0.52, allocations: 299.8 kB / 0.6116 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01526/0.5353, allocations: 8.707 MB / 0.6201 GB, free: 5.836 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001171/0.5354, allocations: 47.62 kB / 0.6202 GB, free: 5.789 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003963/0.5358, allocations: 139.9 kB / 0.6203 GB, free: 5.652 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00279/0.5386, allocations: 1.657 MB / 0.6219 GB, free: 3.992 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01432/0.5529, allocations: 7.078 MB / 0.6288 GB, free: 12.91 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04305/0.596, allocations: 33.02 MB / 0.6611 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00474/0.6007, allocations: 1.842 MB / 0.6629 GB, free: 9 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001778/0.6025, allocations: 1.121 MB / 0.664 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002793/0.6028, allocations: 100.4 kB / 0.6641 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.906e-05/0.6028, allocations: 43.06 kB / 0.6641 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=122): time 3.517e-06/0.6028, allocations: 0 / 0.6641 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of matching and sorting (n=140): time 0.02569/0.6285, allocations: 10.58 MB / 0.6744 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.6286, allocations: 196.6 kB / 0.6746 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005024/0.6337, allocations: 3.596 MB / 0.6781 GB, free: 9.234 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002294/0.6339, allocations: 41.7 kB / 0.6782 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002348/0.6362, allocations: 2.952 MB / 0.6811 GB, free: 6.207 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007805/0.637, allocations: 0.5738 MB / 0.6816 GB, free: 5.629 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001549/0.6386, allocations: 1.079 MB / 0.6827 GB, free: 4.539 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.6387, allocations: 305.1 kB / 0.683 GB, free: 4.238 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002861/0.6416, allocations: 1.704 MB / 0.6846 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005604/0.6472, allocations: 5.114 MB / 0.6896 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009564/0.6568, allocations: 7.34 MB / 0.6968 GB, free: 2.684 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001045/0.6569, allocations: 36 kB / 0.6968 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of matching and sorting (n=682) (initialization): time 0.01271/0.6696, allocations: 6.738 MB / 0.7034 GB, free: 11.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.485e-05/0.6697, allocations: 56 kB / 0.7035 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001502/0.6698, allocations: 127.8 kB / 0.7036 GB, free: 11.72 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/0.6708, allocations: 429.1 kB / 0.704 GB, free: 11.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003747/0.6746, allocations: 1.205 MB / 0.7052 GB, free: 10.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004473/0.6791, allocations: 3.498 MB / 0.7086 GB, free: 6.484 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003467/0.6825, allocations: 283.8 kB / 0.7088 GB, free: 6.207 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006067/0.6831, allocations: 336 kB / 0.7092 GB, free: 5.879 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.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 (644): * Single equations (assignments): 640 * 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.003259/0.6864, allocations: 1.943 MB / 0.7111 GB, free: 3.922 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005825/0.687, allocations: 325.8 kB / 0.7114 GB, free: 3.602 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003615/0.6906, allocations: 1.874 MB / 0.7132 GB, free: 1.711 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.82e-05/0.6906, allocations: 16 kB / 0.7132 GB, free: 1.695 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.6906, allocations: 12 kB / 0.7132 GB, free: 1.684 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.6906, allocations: 3.984 kB / 0.7132 GB, free: 1.68 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/0.7013, allocations: 5.737 MB / 0.7188 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.335e-05/0.7013, allocations: 4 kB / 0.7188 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.7024, allocations: 215.7 kB / 0.719 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007537/0.7031, allocations: 256.5 kB / 0.7193 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.112e-05/0.7032, allocations: 23.98 kB / 0.7193 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003895/0.7071, allocations: 3.059 MB / 0.7223 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.7071, allocations: 4.031 kB / 0.7223 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006443/0.7136, allocations: 3.958 MB / 0.7262 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008756/0.7144, allocations: 293.8 kB / 0.7264 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005859/0.715, allocations: 19.98 kB / 0.7265 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.7162, allocations: 71.92 kB / 0.7265 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002869/0.7165, allocations: 108.5 kB / 0.7266 GB, free: 3.746 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.7166, allocations: 39.98 kB / 0.7267 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003848/0.7205, allocations: 2.242 MB / 0.7289 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7205, allocations: 0 / 0.7289 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004096/0.7246, allocations: 0.8202 MB / 0.7297 GB, free: 0.6562 MB / 0.5606 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.2615/0.986, allocations: 4.572 MB / 0.7341 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005378/0.9914, allocations: 3.965 MB / 0.738 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.9914, allocations: 3.938 kB / 0.738 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00133/0.9927, allocations: 1.109 MB / 0.7391 GB, free: 153.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/0.9947, allocations: 391.6 kB / 0.7395 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05435/1.049, allocations: 37.98 MB / 0.7766 GB, free: 116.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003098/1.052, allocations: 2.502 MB / 0.779 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003124/1.055, allocations: 1.71 MB / 0.7807 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001789/1.057, allocations: 1.655 MB / 0.7823 GB, free: 110.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.533e-06/1.057, allocations: 0 / 0.7823 GB, free: 110.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1031/1.16, allocations: 61.16 MB / 0.842 GB, free: 50.02 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.65/25.81, allocations: 14.53 kB / 0.842 GB, free: 50 MB / 0.5606 GB " [Timeout remaining time 634] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 28.987952555064112]