Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001611/0.001611, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001525/0.001525, allocations: 208 kB / 23.73 MB, free: 4.523 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.443/1.443, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2274/0.2274, allocations: 46.96 MB / 360.9 MB, free: 4.055 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 63.91 kB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3406, allocations: 66.03 MB / 0.5606 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.0108/0.3514, allocations: 8.421 MB / 0.5688 GB, free: 11.79 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007745/0.3591, allocations: 3.637 MB / 0.5724 GB, free: 8.141 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001384/0.3605, allocations: 63.75 kB / 0.5724 GB, free: 8.078 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00526/0.3658, allocations: 2.687 MB / 0.5751 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004829/0.3706, allocations: 1.666 MB / 0.5767 GB, free: 3.715 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001879/0.3725, allocations: 0.7174 MB / 0.5774 GB, free: 2.996 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006175/0.3787, allocations: 3.892 MB / 0.5812 GB, free: 15.09 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004226/0.3829, allocations: 2.76 MB / 0.5839 GB, free: 12.27 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00328/0.3862, allocations: 1.433 MB / 0.5853 GB, free: 10.83 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003961/0.3901, allocations: 2.056 MB / 0.5873 GB, free: 8.766 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009027/0.391, allocations: 316 kB / 0.5876 GB, free: 8.457 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002545/0.3936, allocations: 1.096 MB / 0.5887 GB, free: 7.359 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002007/0.3956, allocations: 1.788 MB / 0.5904 GB, free: 5.566 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002118/0.3977, allocations: 1.55 MB / 0.5919 GB, free: 4.008 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008108/0.4058, allocations: 6.892 MB / 0.5986 GB, free: 13.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.4058, allocations: 0 / 0.5986 GB, free: 13.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4058, allocations: 3.938 kB / 0.5987 GB, free: 13.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001462/0.406, allocations: 0 / 0.5987 GB, free: 13.09 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.01061/0.4166, allocations: 4.504 MB / 0.603 GB, free: 8.527 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.4166, allocations: 11.97 kB / 0.6031 GB, free: 8.516 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001068/0.4177, allocations: 0.6612 MB / 0.6037 GB, free: 7.844 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08401/0.5017, allocations: 7.063 MB / 0.6106 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006919/0.5086, allocations: 2.613 MB / 0.6132 GB, free: 14.09 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002494/0.5089, allocations: 225.9 kB / 0.6134 GB, free: 13.87 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009558/0.5098, allocations: 291.8 kB / 0.6136 GB, free: 13.58 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/0.5242, allocations: 8.715 MB / 0.6222 GB, free: 4.219 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.5243, allocations: 43.64 kB / 0.6222 GB, free: 4.176 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003713/0.5247, allocations: 139.9 kB / 0.6223 GB, free: 4.039 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002655/0.5274, allocations: 1.65 MB / 0.6239 GB, free: 2.387 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01341/0.5408, allocations: 7.067 MB / 0.6308 GB, free: 11.32 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04356/0.5843, allocations: 31.86 MB / 0.662 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004531/0.5889, allocations: 1.833 MB / 0.6638 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001643/0.5905, allocations: 1.121 MB / 0.6648 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002794/0.5908, allocations: 92.42 kB / 0.6649 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/0.5908, allocations: 43.06 kB / 0.665 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=122): time 4.108e-06/0.5908, allocations: 0 / 0.665 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of matching and sorting (n=140): time 0.02591/0.6167, allocations: 10.58 MB / 0.6753 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.6169, allocations: 192.6 kB / 0.6755 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005036/0.6219, allocations: 3.793 MB / 0.6792 GB, free: 8.629 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002606/0.6222, allocations: 45.7 kB / 0.6792 GB, free: 8.578 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002307/0.6245, allocations: 2.959 MB / 0.6821 GB, free: 5.59 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007396/0.6252, allocations: 0.5701 MB / 0.6827 GB, free: 5.016 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001363/0.6266, allocations: 1.076 MB / 0.6837 GB, free: 3.93 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.6267, allocations: 309 kB / 0.684 GB, free: 3.625 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002902/0.6296, allocations: 1.7 MB / 0.6857 GB, free: 1.918 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00624/0.6358, allocations: 5.114 MB / 0.6907 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009968/0.6458, allocations: 7.343 MB / 0.6979 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001063/0.6459, allocations: 32 kB / 0.6979 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of matching and sorting (n=682) (initialization): time 0.01227/0.6582, allocations: 6.749 MB / 0.7045 GB, free: 11.29 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.255e-05/0.6583, allocations: 59.98 kB / 0.7045 GB, free: 11.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001475/0.6584, allocations: 120 kB / 0.7046 GB, free: 11.11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009689/0.6594, allocations: 425.3 kB / 0.7051 GB, free: 10.69 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003711/0.6631, allocations: 1.216 MB / 0.7062 GB, free: 9.473 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004423/0.6675, allocations: 3.454 MB / 0.7096 GB, free: 5.906 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004241/0.6718, allocations: 291.8 kB / 0.7099 GB, free: 5.621 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009064/0.6727, allocations: 328 kB / 0.7102 GB, free: 5.301 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.003544/0.6762, allocations: 1.947 MB / 0.7121 GB, free: 3.34 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007243/0.6769, allocations: 321.8 kB / 0.7124 GB, free: 3.023 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003519/0.6805, allocations: 1.886 MB / 0.7143 GB, free: 1.121 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.893e-05/0.6805, allocations: 16 kB / 0.7143 GB, free: 1.105 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.6805, allocations: 0 / 0.7143 GB, free: 1.105 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.6805, allocations: 7.984 kB / 0.7143 GB, free: 1.098 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.6914, allocations: 5.507 MB / 0.7197 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.6914, allocations: 4 kB / 0.7197 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.6924, allocations: 219.7 kB / 0.7199 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007101/0.6931, allocations: 248.6 kB / 0.7201 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-05/0.6932, allocations: 27.98 kB / 0.7201 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003618/0.6968, allocations: 3.047 MB / 0.7231 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.6968, allocations: 0 / 0.7231 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006187/0.703, allocations: 3.954 MB / 0.727 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000898/0.7039, allocations: 301.7 kB / 0.7273 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003114/0.7042, allocations: 19.98 kB / 0.7273 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.7053, allocations: 71.92 kB / 0.7273 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002677/0.7056, allocations: 100.4 kB / 0.7274 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.7057, allocations: 47.95 kB / 0.7275 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00326/0.7089, allocations: 2.238 MB / 0.7297 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.7089, allocations: 0 / 0.7297 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003916/0.7129, allocations: 0.8202 MB / 0.7305 GB, free: 328 kB / 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.2769/0.9898, allocations: 4.583 MB / 0.735 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005452/0.9952, allocations: 3.965 MB / 0.7388 GB, free: 150.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.9952, allocations: 0 / 0.7388 GB, free: 150.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001356/0.9966, allocations: 1.099 MB / 0.7399 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002088/0.9987, allocations: 390.8 kB / 0.7403 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04305/1.042, allocations: 37.98 MB / 0.7774 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003103/1.045, allocations: 2.493 MB / 0.7798 GB, free: 110.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003089/1.048, allocations: 1.71 MB / 0.7815 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001787/1.05, allocations: 1.663 MB / 0.7831 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.362e-06/1.05, allocations: 0 / 0.7831 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09458/1.144, allocations: 59.11 MB / 0.8408 GB, free: 48.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.73/15.87, allocations: 10.27 kB / 0.8408 GB, free: 48.5 MB / 0.5606 GB " [Timeout remaining time 644] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 18.98701950200484]