Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.001598/0.001598, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001679/0.001679, allocations: 188.7 kB / 23.72 MB, free: 4.684 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.517/1.517, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 55.91 kB / 370.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2823, allocations: 52.19 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009972/0.2922, allocations: 7.68 MB / 430.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007124/0.2994, allocations: 3.38 MB / 433.7 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001301/0.3007, allocations: 43.81 kB / 433.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002599/0.3033, allocations: 1.051 MB / 434.8 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003911/0.3072, allocations: 1.374 MB / 436.2 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001569/0.3087, allocations: 0.5534 MB / 436.7 MB, free: 452 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003923/0.3127, allocations: 2.582 MB / 439.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001647/0.3143, allocations: 1.236 MB / 440.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001395/0.3157, allocations: 0.8485 MB / 441.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001864/0.3176, allocations: 1.265 MB / 442.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003484/0.3179, allocations: 148 kB / 442.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001935/0.3199, allocations: 0.9399 MB / 443.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001154/0.321, allocations: 1.09 MB / 444.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001417/0.3224, allocations: 1.258 MB / 446.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005545/0.328, allocations: 4.144 MB / 450.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.328, allocations: 0 / 450.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.328, allocations: 0 / 450.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.879e-05/0.3281, allocations: 4 kB / 450.2 MB, free: 2.863 MB / 350.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.006917/0.335, allocations: 3.015 MB / 453.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/0.3351, allocations: 8.031 kB / 453.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006645/0.3357, allocations: 462.4 kB / 453.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005435/0.3412, allocations: 1.594 MB / 455.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003689/0.3448, allocations: 1.663 MB / 457 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.345, allocations: 123 kB / 457.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003933/0.3454, allocations: 167.8 kB / 457.3 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01067/0.356, allocations: 6.542 MB / 463.8 MB, free: 4.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.91e-05/0.3561, allocations: 27.75 kB / 463.8 MB, free: 4.703 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000283/0.3564, allocations: 79.89 kB / 463.9 MB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002589/0.359, allocations: 1.472 MB / 465.4 MB, free: 3.152 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01109/0.3701, allocations: 5.83 MB / 471.2 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0344/0.4045, allocations: 25.62 MB / 496.8 MB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005795/0.4103, allocations: 2.016 MB / 498.8 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001819/0.4121, allocations: 1.133 MB / 500 MB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009152/0.4212, allocations: 4.548 MB / 0.4927 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.4213, allocations: 42.56 kB / 0.4927 GB, free: 11.1 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.396e-06/0.4213, allocations: 0 / 0.4927 GB, free: 11.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02771/0.449, allocations: 9.706 MB / 0.5022 GB, free: 1.316 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.4491, allocations: 144.9 kB / 0.5023 GB, free: 1.145 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005295/0.4544, allocations: 2.719 MB / 0.505 GB, free: 14.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002123/0.4546, allocations: 37.7 kB / 0.505 GB, free: 14.36 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/0.4566, allocations: 2.14 MB / 0.5071 GB, free: 12.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006471/0.4572, allocations: 444.6 kB / 0.5076 GB, free: 11.77 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001637/0.4589, allocations: 0.8338 MB / 0.5084 GB, free: 10.92 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.459, allocations: 305.1 kB / 0.5087 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002613/0.4616, allocations: 1.445 MB / 0.5101 GB, free: 9.172 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005138/0.4668, allocations: 4.057 MB / 0.514 GB, free: 3.797 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007893/0.4746, allocations: 5.945 MB / 0.5198 GB, free: 12.55 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.816e-05/0.4747, allocations: 28 kB / 0.5199 GB, free: 12.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01276/0.4875, allocations: 6.014 MB / 0.5257 GB, free: 6.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.4876, allocations: 44.47 kB / 0.5258 GB, free: 6.457 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001608/0.4878, allocations: 92 kB / 0.5259 GB, free: 6.367 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002571/0.4904, allocations: 0.8204 MB / 0.5267 GB, free: 5.543 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003181/0.4935, allocations: 0.9435 MB / 0.5276 GB, free: 4.598 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007046/0.5006, allocations: 4.553 MB / 0.532 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003605/0.5042, allocations: 251.5 kB / 0.5323 GB, free: 15.69 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009073/0.5051, allocations: 260 kB / 0.5325 GB, free: 15.43 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.003384/0.5085, allocations: 1.376 MB / 0.5339 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007397/0.5092, allocations: 234.4 kB / 0.5341 GB, free: 13.82 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00538/0.5146, allocations: 2.125 MB / 0.5362 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.263e-05/0.5146, allocations: 12 kB / 0.5362 GB, free: 11.66 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.95e-05/0.5147, allocations: 11.94 kB / 0.5362 GB, free: 11.65 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/0.5147, allocations: 7.922 kB / 0.5362 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/0.5267, allocations: 5.026 MB / 0.5411 GB, free: 6.551 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.5267, allocations: 0 / 0.5411 GB, free: 6.551 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008176/0.5275, allocations: 155.8 kB / 0.5413 GB, free: 6.398 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002135/0.5297, allocations: 0.6835 MB / 0.5419 GB, free: 5.711 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.5298, allocations: 16 kB / 0.5419 GB, free: 5.695 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005669/0.5354, allocations: 4.062 MB / 0.5459 GB, free: 1.516 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.889e-06/0.5354, allocations: 11.88 kB / 0.5459 GB, free: 1.504 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2649/0.8004, allocations: 4.049 MB / 0.5499 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009022/0.8013, allocations: 215.2 kB / 0.5501 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002855/0.8015, allocations: 18.06 kB / 0.5501 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009919/0.8025, allocations: 68.75 kB / 0.5502 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.8027, allocations: 64.08 kB / 0.5502 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.373e-05/0.8028, allocations: 31.41 kB / 0.5502 GB, free: 121.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002244/0.8051, allocations: 1.701 MB / 0.5519 GB, free: 121 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8051, allocations: 4.562 kB / 0.5519 GB, free: 121 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003135/0.8082, allocations: 0.6722 MB / 0.5526 GB, free: 120.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.005581/0.8138, allocations: 4.738 MB / 0.5572 GB, free: 119 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004508/0.8183, allocations: 3.346 MB / 0.5605 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.8183, allocations: 0 / 0.5605 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.8194, allocations: 0.9651 MB / 0.5614 GB, free: 117.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.8209, allocations: 254.1 kB / 0.5616 GB, free: 117.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03167/0.8526, allocations: 29.96 MB / 0.5909 GB, free: 86.29 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002259/0.8549, allocations: 2.237 MB / 0.5931 GB, free: 84.03 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002414/0.8573, allocations: 1.319 MB / 0.5944 GB, free: 82.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/0.8586, allocations: 1.097 MB / 0.5954 GB, free: 81.61 MB / 462.1 MB Notification: Performance of SimCode: time 1.373e-06/0.8586, allocations: 0 / 0.5954 GB, free: 81.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07975/0.9383, allocations: 48.38 MB / 0.6427 GB, free: 33.53 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.62/20.55, allocations: 3.938 kB / 0.6427 GB, free: 33.52 MB / 462.1 MB " [Timeout remaining time 639] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 23.266543588997592]