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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001823/0.001823, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002066/0.002066, allocations: 186 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 43.92 kB / 370.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2415, allocations: 52.19 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01299/0.2545, allocations: 10.03 MB / 432.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008573/0.2631, allocations: 3.878 MB / 436.5 MB, free: 460 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001797/0.2649, allocations: 79.69 kB / 436.6 MB, free: 380 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006586/0.2714, allocations: 3.119 MB / 439.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005556/0.277, allocations: 2.016 MB / 441.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00206/0.2791, allocations: 0.8266 MB / 442.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006526/0.2856, allocations: 4.463 MB / 447 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00389/0.2895, allocations: 3.064 MB / 450.1 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002602/0.2921, allocations: 1.686 MB / 451.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003042/0.2951, allocations: 2.184 MB / 453.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000641/0.2958, allocations: 359.9 kB / 454.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002123/0.2979, allocations: 1.155 MB / 455.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002022/0.2999, allocations: 2.131 MB / 457.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001988/0.3019, allocations: 1.767 MB / 459.3 MB, free: 9.484 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008552/0.3104, allocations: 7.762 MB / 467.1 MB, free: 1.691 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3104, allocations: 4 kB / 467.1 MB, free: 1.688 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3105, allocations: 0 / 467.1 MB, free: 1.688 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001609/0.3106, allocations: 0 / 467.1 MB, free: 1.688 MB / 366.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.01038/0.321, allocations: 5.338 MB / 472.4 MB, free: 12.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.321, allocations: 8.031 kB / 472.4 MB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009968/0.322, allocations: 0.7609 MB / 473.2 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02287/0.3449, allocations: 3.945 MB / 477.1 MB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007341/0.3522, allocations: 3.077 MB / 480.2 MB, free: 4.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.3525, allocations: 246.3 kB / 480.5 MB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008805/0.3533, allocations: 331.8 kB / 480.8 MB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0205/0.3738, allocations: 10.79 MB / 491.6 MB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001941/0.374, allocations: 47.64 kB / 491.6 MB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001113/0.3752, allocations: 155.8 kB / 491.8 MB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003989/0.3791, allocations: 2.146 MB / 493.9 MB, free: 6.027 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01884/0.398, allocations: 9.078 MB / 0.4912 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05471/0.4527, allocations: 39.93 MB / 0.5302 GB, free: 3.859 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01181/0.4645, allocations: 3.799 MB / 0.5339 GB, free: 28 kB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1838/0.6483, allocations: 2.223 MB / 0.5361 GB, free: 107.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0111/0.6594, allocations: 6.122 MB / 0.5421 GB, free: 105.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.6594, allocations: 56.41 kB / 0.5421 GB, free: 105.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.92e-06/0.6594, allocations: 2.531 kB / 0.5421 GB, free: 105.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.03903/0.6985, allocations: 17.99 MB / 0.5597 GB, free: 93.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.6985, allocations: 171.5 kB / 0.5598 GB, free: 92.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004418/0.7029, allocations: 4.847 MB / 0.5646 GB, free: 88.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002721/0.7032, allocations: 57.7 kB / 0.5646 GB, free: 88.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00124/0.7044, allocations: 3.37 MB / 0.5679 GB, free: 84.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004835/0.7049, allocations: 0.785 MB / 0.5687 GB, free: 84.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001156/0.7061, allocations: 1.273 MB / 0.5699 GB, free: 82.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.548e-05/0.7061, allocations: 308.8 kB / 0.5702 GB, free: 82.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002389/0.7085, allocations: 2.284 MB / 0.5725 GB, free: 80.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003373/0.7119, allocations: 6.053 MB / 0.5784 GB, free: 72.33 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006867/0.7187, allocations: 9.037 MB / 0.5872 GB, free: 61.47 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-05/0.7188, allocations: 40 kB / 0.5872 GB, free: 61.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01194/0.7308, allocations: 8.882 MB / 0.5959 GB, free: 52.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.496e-05/0.7309, allocations: 60 kB / 0.596 GB, free: 52.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001301/0.731, allocations: 132 kB / 0.5961 GB, free: 52.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002001/0.733, allocations: 0.942 MB / 0.597 GB, free: 51.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003977/0.737, allocations: 1.423 MB / 0.5984 GB, free: 49.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006459/0.7434, allocations: 6.361 MB / 0.6046 GB, free: 43.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004223/0.7476, allocations: 343.6 kB / 0.6049 GB, free: 43.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007209/0.7484, allocations: 383.6 kB / 0.6053 GB, free: 42.8 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.002942/0.7513, allocations: 2.229 MB / 0.6075 GB, free: 40.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007709/0.7521, allocations: 417.2 kB / 0.6079 GB, free: 40.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005679/0.7578, allocations: 3.676 MB / 0.6115 GB, free: 36.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-05/0.7578, allocations: 24 kB / 0.6115 GB, free: 36.43 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.7578, allocations: 4 kB / 0.6115 GB, free: 36.43 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.7578, allocations: 7.969 kB / 0.6115 GB, free: 36.42 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0139/0.7717, allocations: 8.739 MB / 0.62 GB, free: 27.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/0.7717, allocations: 8.594 kB / 0.62 GB, free: 27.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/0.7731, allocations: 315.5 kB / 0.6204 GB, free: 27.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00179/0.7749, allocations: 0.7702 MB / 0.6211 GB, free: 26.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001676/0.7751, allocations: 36 kB / 0.6211 GB, free: 26.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006326/0.7814, allocations: 5.956 MB / 0.627 GB, free: 20.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.7814, allocations: 11.94 kB / 0.627 GB, free: 20.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007537/0.7889, allocations: 6.611 MB / 0.6334 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/0.79, allocations: 413 kB / 0.6338 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007622/0.7907, allocations: 39.98 kB / 0.6339 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001798/0.7925, allocations: 115.8 kB / 0.634 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002738/0.7928, allocations: 129 kB / 0.6341 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.7929, allocations: 56 kB / 0.6341 GB, free: 12.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00392/0.7969, allocations: 2.965 MB / 0.637 GB, free: 9.988 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7969, allocations: 0 / 0.637 GB, free: 9.988 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004643/0.8015, allocations: 1.062 MB / 0.6381 GB, free: 8.93 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.008166/0.8097, allocations: 7.257 MB / 0.6452 GB, free: 1.574 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00829/0.818, allocations: 5.351 MB / 0.6504 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/0.818, allocations: 0 / 0.6504 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003344/0.8213, allocations: 1.837 MB / 0.6522 GB, free: 10.39 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003289/0.8246, allocations: 0.5152 MB / 0.6527 GB, free: 9.887 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07878/0.9034, allocations: 50.87 MB / 0.7024 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005231/0.9086, allocations: 2.923 MB / 0.7052 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005034/0.9137, allocations: 2.045 MB / 0.7072 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003197/0.9168, allocations: 2.061 MB / 0.7092 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of SimCode: time 1.052e-06/0.9169, allocations: 0 / 0.7092 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3051/1.222, allocations: 78.43 MB / 0.7858 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.15/18.37, allocations: 10.41 kB / 0.7858 GB, free: 148.3 MB / 0.5294 GB " [Timeout remaining time 641] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000201919 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.014738644938916]