Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.00172/0.00172, allocations: 107.1 kB / 20.44 MB, free: 1.355 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.002121/0.002121, allocations: 208.7 kB / 23.72 MB, free: 4.539 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.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 47.92 kB / 377.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2417, allocations: 53.36 MB / 431.1 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008959/0.2507, allocations: 6.755 MB / 437.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006779/0.2574, allocations: 3.154 MB / 441 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001027/0.2585, allocations: 43.81 kB / 441 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002238/0.2607, allocations: 1.012 MB / 442.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003492/0.2642, allocations: 1.354 MB / 443.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001323/0.2655, allocations: 0.5495 MB / 444 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003481/0.269, allocations: 2.617 MB / 446.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.2705, allocations: 1.216 MB / 447.8 MB, free: 5.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001214/0.2717, allocations: 0.8446 MB / 448.6 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001775/0.2735, allocations: 1.265 MB / 449.9 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003318/0.2738, allocations: 144 kB / 450 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001628/0.2755, allocations: 0.7955 MB / 450.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001077/0.2766, allocations: 1.067 MB / 451.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.2777, allocations: 0.9002 MB / 452.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005495/0.2832, allocations: 4.109 MB / 456.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2832, allocations: 0 / 456.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2832, allocations: 0 / 456.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.814e-05/0.2833, allocations: 0 / 456.9 MB, free: 12.74 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: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.005925/0.2892, allocations: 2.993 MB / 459.9 MB, free: 9.703 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.2892, allocations: 8.031 kB / 459.9 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005423/0.2898, allocations: 466.4 kB / 460.4 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005472/0.2952, allocations: 1.594 MB / 462 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003927/0.2992, allocations: 1.563 MB / 463.5 MB, free: 6.039 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.2993, allocations: 127 kB / 463.7 MB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000394/0.2997, allocations: 163.8 kB / 463.8 MB, free: 5.754 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01079/0.3105, allocations: 6.538 MB / 470.4 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.8e-05/0.3106, allocations: 35.81 kB / 470.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002336/0.3108, allocations: 79.89 kB / 470.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002553/0.3133, allocations: 1.472 MB / 471.9 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01165/0.325, allocations: 5.814 MB / 477.7 MB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03473/0.3597, allocations: 24.74 MB / 0.4907 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005476/0.3652, allocations: 2.016 MB / 0.4927 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001581/0.3668, allocations: 1.133 MB / 0.4938 GB, free: 10.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008376/0.3752, allocations: 4.287 MB / 0.498 GB, free: 6.305 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/0.3752, allocations: 42.56 kB / 0.498 GB, free: 6.254 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.767e-06/0.3752, allocations: 3.938 kB / 0.498 GB, free: 6.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.0245/0.3997, allocations: 9.738 MB / 0.5075 GB, free: 12.44 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.704e-05/0.3998, allocations: 137 kB / 0.5077 GB, free: 12.27 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004253/0.4041, allocations: 2.885 MB / 0.5105 GB, free: 9.367 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002174/0.4043, allocations: 41.7 kB / 0.5105 GB, free: 9.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001828/0.4061, allocations: 2.124 MB / 0.5126 GB, free: 7.176 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006477/0.4068, allocations: 448.7 kB / 0.513 GB, free: 6.734 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001182/0.4079, allocations: 0.8337 MB / 0.5138 GB, free: 5.891 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.4081, allocations: 305.1 kB / 0.5141 GB, free: 5.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002265/0.4103, allocations: 1.441 MB / 0.5155 GB, free: 4.145 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004932/0.4153, allocations: 4.061 MB / 0.5195 GB, free: 14.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008672/0.4239, allocations: 5.943 MB / 0.5253 GB, free: 7.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001179/0.4241, allocations: 28 kB / 0.5253 GB, free: 7.492 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01274/0.4368, allocations: 6.015 MB / 0.5312 GB, free: 1.469 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.791e-05/0.4369, allocations: 44 kB / 0.5312 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001431/0.437, allocations: 96.16 kB / 0.5313 GB, free: 1.332 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002502/0.4395, allocations: 0.8162 MB / 0.5321 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003141/0.4427, allocations: 0.9435 MB / 0.533 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006592/0.4493, allocations: 4.532 MB / 0.5375 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003066/0.4523, allocations: 235.7 kB / 0.5377 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006111/0.4529, allocations: 260 kB / 0.5379 GB, free: 10.44 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (498): * Single equations (assignments): 494 * 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 {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002351/0.4553, allocations: 1.375 MB / 0.5393 GB, free: 9.055 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000504/0.4558, allocations: 238.3 kB / 0.5395 GB, free: 8.82 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004599/0.4604, allocations: 2.126 MB / 0.5416 GB, free: 6.684 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.933e-05/0.4604, allocations: 15.98 kB / 0.5416 GB, free: 6.668 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/0.4604, allocations: 7.938 kB / 0.5416 GB, free: 6.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.4605, allocations: 3.984 kB / 0.5416 GB, free: 6.656 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/0.471, allocations: 4.781 MB / 0.5463 GB, free: 1.816 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.689e-05/0.471, allocations: 4 kB / 0.5463 GB, free: 1.812 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008302/0.4718, allocations: 155.8 kB / 0.5464 GB, free: 1.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002123/0.4739, allocations: 0.6795 MB / 0.5471 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.4741, allocations: 20 kB / 0.5471 GB, free: 0.957 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2245/0.6986, allocations: 4.012 MB / 0.551 GB, free: 114 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6986, allocations: 5.281 kB / 0.551 GB, free: 114 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005928/0.7045, allocations: 4.063 MB / 0.555 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005723/0.7051, allocations: 223.3 kB / 0.5552 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/0.7053, allocations: 12.83 kB / 0.5552 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008838/0.7062, allocations: 74.94 kB / 0.5553 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001806/0.7064, allocations: 63.12 kB / 0.5554 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.734e-05/0.7065, allocations: 31.34 kB / 0.5554 GB, free: 112.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002029/0.7085, allocations: 1.691 MB / 0.5571 GB, free: 112 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7085, allocations: 0 / 0.5571 GB, free: 112 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002879/0.7114, allocations: 0.6653 MB / 0.5577 GB, free: 111.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (74): * Single equations (assignments): 70 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005523/0.7169, allocations: 4.734 MB / 0.5623 GB, free: 109.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004111/0.721, allocations: 3.352 MB / 0.5656 GB, free: 108.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.721, allocations: 0 / 0.5656 GB, free: 108.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.7221, allocations: 0.9547 MB / 0.5665 GB, free: 107.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0015/0.7236, allocations: 261.5 kB / 0.5668 GB, free: 107 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03267/0.7563, allocations: 29.95 MB / 0.596 GB, free: 74.56 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001499/0.7578, allocations: 1.662 MB / 0.5977 GB, free: 72.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002284/0.76, allocations: 1.32 MB / 0.5989 GB, free: 71.54 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/0.7611, allocations: 1.093 MB / 0.6 GB, free: 70.45 MB / 462.1 MB Notification: Performance of SimCode: time 1.923e-06/0.7611, allocations: 0 / 0.6 GB, free: 70.45 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07954/0.8407, allocations: 46.97 MB / 0.6459 GB, free: 23.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.87, allocations: 4.062 kB / 0.6459 GB, free: 23.95 MB / 462.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0019992 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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: 17.488252750976244]