Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001175/0.001175, allocations: 87.62 kB / 21.43 MB, free: 3.129 MB / 18.57 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.004625/0.004625, allocations: 166 kB / 24.7 MB, free: 9.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8961/0.8961, allocations: 158.6 MB / 186.5 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/2.025e-05, allocations: 2.281 kB / 298.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.141/0.141, allocations: 6.848 MB / 305.3 MB, free: 12.18 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005143/0.1461, allocations: 3.091 MB / 308.4 MB, free: 10.57 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009879/0.1471, allocations: 43.78 kB / 308.4 MB, free: 10.55 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001663/0.1488, allocations: 1.059 MB / 309.5 MB, free: 10.11 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002659/0.1514, allocations: 1.42 MB / 310.9 MB, free: 9.492 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.1525, allocations: 0.5894 MB / 311.5 MB, free: 9.273 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002922/0.1554, allocations: 2.918 MB / 314.4 MB, free: 8.242 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001612/0.157, allocations: 1.483 MB / 315.9 MB, free: 7.617 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001697/0.1587, allocations: 1.302 MB / 317.2 MB, free: 7.074 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001359/0.1601, allocations: 1.336 MB / 318.5 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002762/0.1604, allocations: 151.4 kB / 318.7 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001378/0.1617, allocations: 0.8291 MB / 319.5 MB, free: 6.004 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006658/0.1624, allocations: 1.144 MB / 320.7 MB, free: 5.344 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006969/0.1631, allocations: 0.6971 MB / 321.4 MB, free: 4.957 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003308/0.1664, allocations: 4.152 MB / 325.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1664, allocations: 0 / 325.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1664, allocations: 4.75 kB / 325.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.604e-05/0.1665, allocations: 0 / 325.5 MB, free: 2.234 MB / 282.7 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.004103/0.1706, allocations: 3.057 MB / 328.6 MB, free: 44 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.1706, allocations: 17.52 kB / 328.6 MB, free: 36 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004616/0.1711, allocations: 459.8 kB / 329 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003489/0.1746, allocations: 1.661 MB / 330.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002064/0.1766, allocations: 1.556 MB / 332.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.805e-05/0.1767, allocations: 119.6 kB / 332.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.177, allocations: 167.8 kB / 332.5 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007249/0.1842, allocations: 6.549 MB / 339.1 MB, free: 5.445 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.709e-05/0.1843, allocations: 31.75 kB / 339.1 MB, free: 5.414 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000167/0.1844, allocations: 75.89 kB / 339.2 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001542/0.186, allocations: 1.464 MB / 340.7 MB, free: 3.879 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007667/0.1936, allocations: 5.842 MB / 346.5 MB, free: 14.03 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02322/0.2169, allocations: 24.94 MB / 371.4 MB, free: 4.336 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003358/0.2202, allocations: 2.085 MB / 373.5 MB, free: 2.219 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009594/0.2212, allocations: 1.138 MB / 374.7 MB, free: 1.066 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004812/0.226, allocations: 4.403 MB / 379.1 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.226, allocations: 42.5 kB / 379.1 MB, free: 12.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 2.856e-06/0.226, allocations: 4 kB / 379.1 MB, free: 12.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.0161/0.2421, allocations: 10.14 MB / 389.3 MB, free: 2.371 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.2422, allocations: 141 kB / 389.4 MB, free: 2.203 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003239/0.2454, allocations: 3.081 MB / 392.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.375e-05/0.2455, allocations: 41.7 kB / 392.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001233/0.2467, allocations: 2.113 MB / 394.6 MB, free: 12.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003523/0.2471, allocations: 444.7 kB / 395.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007299/0.2478, allocations: 0.8221 MB / 395.9 MB, free: 11.65 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.719e-05/0.2479, allocations: 309 kB / 396.2 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001466/0.2494, allocations: 1.448 MB / 397.6 MB, free: 9.895 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002785/0.2522, allocations: 4.069 MB / 401.7 MB, free: 4.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004876/0.257, allocations: 5.952 MB / 407.7 MB, free: 13.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.249e-05/0.2571, allocations: 28 kB / 407.7 MB, free: 13.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.00708/0.2642, allocations: 6.039 MB / 413.7 MB, free: 7.172 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.2642, allocations: 44 kB / 413.8 MB, free: 7.129 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.071e-05/0.2643, allocations: 95.59 kB / 413.9 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001355/0.2656, allocations: 0.8287 MB / 414.7 MB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0017/0.2673, allocations: 0.9552 MB / 415.6 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004049/0.2714, allocations: 4.525 MB / 420.2 MB, free: 0.6172 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00222/0.2736, allocations: 299.5 kB / 420.5 MB, free: 332 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000278/0.2739, allocations: 260 kB / 420.7 MB, free: 72 kB / 378.7 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.001991/0.2759, allocations: 1.372 MB / 422.1 MB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003228/0.2762, allocations: 246.4 kB / 422.3 MB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002442/0.2786, allocations: 2.124 MB / 424.4 MB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/0.2787, allocations: 15.94 kB / 424.5 MB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.2787, allocations: 7.938 kB / 424.5 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.2787, allocations: 3.984 kB / 424.5 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006232/0.2849, allocations: 4.865 MB / 429.3 MB, free: 7.348 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.553e-06/0.2849, allocations: 0 / 429.3 MB, free: 7.348 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003948/0.2853, allocations: 155.8 kB / 429.5 MB, free: 7.195 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/0.2864, allocations: 0.6873 MB / 430.2 MB, free: 6.504 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.413e-05/0.2865, allocations: 16 kB / 430.2 MB, free: 6.488 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003422/0.2899, allocations: 4.041 MB / 434.2 MB, free: 2.328 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.2899, allocations: 4 kB / 434.2 MB, free: 2.324 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004586/0.2945, allocations: 4.053 MB / 438.3 MB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/0.2955, allocations: 422.1 kB / 438.7 MB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001817/0.2957, allocations: 21.92 kB / 438.7 MB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006246/0.2963, allocations: 119.7 kB / 438.8 MB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.2965, allocations: 68.59 kB / 438.9 MB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.244e-05/0.2965, allocations: 28 kB / 438.9 MB, free: 13.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002057/0.2986, allocations: 1.854 MB / 440.8 MB, free: 11.74 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2986, allocations: 8 kB / 440.8 MB, free: 11.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002439/0.301, allocations: 0.7654 MB / 441.6 MB, free: 10.96 MB / 410.7 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.004636/0.3057, allocations: 4.759 MB / 446.3 MB, free: 6.164 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004088/0.3098, allocations: 3.349 MB / 449.7 MB, free: 2.828 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3098, allocations: 0 / 449.7 MB, free: 2.828 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008945/0.3106, allocations: 0.9739 MB / 450.6 MB, free: 1.836 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001384/0.312, allocations: 259.1 kB / 450.9 MB, free: 1.582 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1718/0.4839, allocations: 30.54 MB / 481.4 MB, free: 134.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001968/0.4858, allocations: 1.681 MB / 483.1 MB, free: 133.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002289/0.4881, allocations: 1.33 MB / 484.5 MB, free: 133.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008649/0.489, allocations: 1.108 MB / 485.6 MB, free: 132.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/0.489, allocations: 0 / 485.6 MB, free: 132.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05629/0.5453, allocations: 47.13 MB / 0.5202 GB, free: 93.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.585/9.13, allocations: 4.062 kB / 0.5202 GB, free: 93.55 MB / 426.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 10.970932365395129]