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.002114/0.002114, allocations: 108.8 kB / 21.22 MB, free: 0.7305 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.001329/0.001329, allocations: 191.5 kB / 24.51 MB, free: 4.082 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.326/1.326, allocations: 225.6 MB / 253.3 MB, free: 13.23 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 47.92 kB / 371.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2133, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009295/0.2226, allocations: 7.679 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00662/0.2292, allocations: 3.38 MB / 434.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000992/0.2302, allocations: 39.81 kB / 434.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00224/0.2324, allocations: 1.043 MB / 435.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003638/0.2361, allocations: 1.381 MB / 437 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001545/0.2376, allocations: 0.5495 MB / 437.5 MB, free: 472 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003751/0.2413, allocations: 2.59 MB / 440.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001512/0.2429, allocations: 1.23 MB / 441.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001127/0.244, allocations: 0.8524 MB / 442.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001576/0.2456, allocations: 1.261 MB / 443.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002692/0.2458, allocations: 148 kB / 443.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001569/0.2474, allocations: 0.9438 MB / 444.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001024/0.2484, allocations: 1.09 MB / 445.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001184/0.2496, allocations: 1.254 MB / 446.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004275/0.2539, allocations: 4.142 MB / 451 MB, free: 2.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2539, allocations: 7.938 kB / 451 MB, free: 2.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2539, allocations: 4 kB / 451 MB, free: 2.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.486e-05/0.2539, allocations: 0 / 451 MB, free: 2.871 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.005098/0.259, allocations: 3.015 MB / 454 MB, free: 15.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.2591, allocations: 8.031 kB / 454 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.216e-05/0.2591, allocations: 59.31 kB / 454.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005116/0.2597, allocations: 462.4 kB / 454.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005375/0.265, allocations: 1.598 MB / 456.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003215/0.2683, allocations: 1.658 MB / 457.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.2684, allocations: 123 kB / 457.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003428/0.2687, allocations: 163.9 kB / 458.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009594/0.2783, allocations: 6.542 MB / 464.6 MB, free: 4.684 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.736e-05/0.2784, allocations: 27.81 kB / 464.7 MB, free: 4.656 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002359/0.2786, allocations: 83.89 kB / 464.7 MB, free: 4.574 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002507/0.2811, allocations: 1.472 MB / 466.2 MB, free: 3.102 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01045/0.2916, allocations: 5.834 MB / 472 MB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02943/0.321, allocations: 25.61 MB / 497.7 MB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005306/0.3263, allocations: 2.016 MB / 499.7 MB, free: 0.8203 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001504/0.3278, allocations: 1.136 MB / 0.4891 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00733/0.3351, allocations: 4.545 MB / 0.4935 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.3352, allocations: 46.55 kB / 0.4936 GB, free: 11.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.286e-06/0.3352, allocations: 0 / 0.4936 GB, free: 11.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02365/0.3588, allocations: 9.714 MB / 0.503 GB, free: 1.258 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.651e-05/0.3589, allocations: 140.9 kB / 0.5032 GB, free: 1.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003572/0.3625, allocations: 2.723 MB / 0.5058 GB, free: 14.35 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001713/0.3626, allocations: 37.7 kB / 0.5059 GB, free: 14.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001526/0.3642, allocations: 2.136 MB / 0.508 GB, free: 12.15 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004716/0.3646, allocations: 444.6 kB / 0.5084 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001069/0.3657, allocations: 0.8416 MB / 0.5092 GB, free: 10.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3658, allocations: 305.1 kB / 0.5095 GB, free: 10.56 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002131/0.368, allocations: 1.437 MB / 0.5109 GB, free: 9.117 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004139/0.3721, allocations: 4.061 MB / 0.5149 GB, free: 3.738 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006787/0.3789, allocations: 5.943 MB / 0.5207 GB, free: 12.49 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.204e-05/0.3789, allocations: 28 kB / 0.5207 GB, free: 12.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01046/0.3894, allocations: 6.012 MB / 0.5266 GB, free: 6.441 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.431e-05/0.3895, allocations: 44.19 kB / 0.5266 GB, free: 6.398 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.241e-05/0.3896, allocations: 92 kB / 0.5267 GB, free: 6.309 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002325/0.3919, allocations: 0.8237 MB / 0.5275 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002742/0.3946, allocations: 0.9512 MB / 0.5284 GB, free: 4.531 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006043/0.4007, allocations: 4.549 MB / 0.5329 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002766/0.4034, allocations: 247.7 kB / 0.5331 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004376/0.4039, allocations: 260 kB / 0.5334 GB, free: 15.38 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.002001/0.4059, allocations: 1.368 MB / 0.5347 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004037/0.4063, allocations: 238.4 kB / 0.5349 GB, free: 13.76 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004368/0.4106, allocations: 2.13 MB / 0.537 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-05/0.4107, allocations: 12 kB / 0.537 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.4107, allocations: 7.938 kB / 0.537 GB, free: 11.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.4107, allocations: 3.984 kB / 0.537 GB, free: 11.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009332/0.42, allocations: 5.03 MB / 0.5419 GB, free: 6.492 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.42, allocations: 0 / 0.5419 GB, free: 6.492 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007959/0.4208, allocations: 163.7 kB / 0.5421 GB, free: 6.332 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002122/0.423, allocations: 0.6718 MB / 0.5427 GB, free: 5.656 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.4231, allocations: 27.92 kB / 0.5428 GB, free: 5.629 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005515/0.4286, allocations: 4.045 MB / 0.5467 GB, free: 1.465 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.4286, allocations: 7.938 kB / 0.5467 GB, free: 1.457 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1786/0.6072, allocations: 4.052 MB / 0.5507 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00057/0.6077, allocations: 218 kB / 0.5509 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003195/0.6081, allocations: 18.12 kB / 0.5509 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009804/0.609, allocations: 69.42 kB / 0.551 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.6092, allocations: 65.78 kB / 0.551 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.045e-05/0.6093, allocations: 35.98 kB / 0.5511 GB, free: 122.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0021/0.6114, allocations: 1.698 MB / 0.5527 GB, free: 121.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6114, allocations: 3.828 kB / 0.5527 GB, free: 121.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003016/0.6145, allocations: 0.6752 MB / 0.5534 GB, free: 121.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.005808/0.6203, allocations: 4.725 MB / 0.558 GB, free: 119.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004244/0.6245, allocations: 3.345 MB / 0.5613 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.6245, allocations: 0 / 0.5613 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.6256, allocations: 0.9651 MB / 0.5622 GB, free: 118.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/0.6272, allocations: 258.8 kB / 0.5625 GB, free: 118.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03434/0.6615, allocations: 29.97 MB / 0.5917 GB, free: 86.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00145/0.663, allocations: 2.236 MB / 0.5939 GB, free: 84.08 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002151/0.6651, allocations: 1.317 MB / 0.5952 GB, free: 82.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009901/0.6661, allocations: 1.101 MB / 0.5963 GB, free: 81.66 MB / 462.1 MB Notification: Performance of SimCode: time 1.443e-06/0.6661, allocations: 0 / 0.5963 GB, free: 81.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6652/1.331, allocations: 48.4 MB / 0.6435 GB, free: 33.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.56/19.89, allocations: 8.281 kB / 0.6435 GB, free: 33.57 MB / 462.1 MB " [Timeout remaining time 640] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-08 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.mat","/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: 22.86029588599922]