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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 106.9 kB / 16.92 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001598/0.001597, allocations: 190.1 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 45.39 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09966/0.1008, allocations: 49.45 MB / 350.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009651/0.1105, allocations: 7.616 MB / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007457/0.118, allocations: 3.34 MB / 361.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001631/0.1197, allocations: 39.88 kB / 361.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002491/0.1223, allocations: 1.024 MB / 362.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003617/0.1259, allocations: 1.336 MB / 363.5 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001415/0.1273, allocations: 0.5496 MB / 364.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003732/0.1311, allocations: 2.585 MB / 366.7 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002334/0.1335, allocations: 1.386 MB / 368 MB, free: 2.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001978/0.1355, allocations: 0.8368 MB / 368.9 MB, free: 1.543 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002241/0.1377, allocations: 1.152 MB / 370 MB, free: 396 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007607/0.1385, allocations: 148 kB / 370.2 MB, free: 248 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1723/0.3108, allocations: 0.8968 MB / 371.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001415/0.3123, allocations: 1.053 MB / 372.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001797/0.3141, allocations: 1.251 MB / 373.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004365/0.3185, allocations: 3.951 MB / 377.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3185, allocations: 1.531 kB / 377.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3185, allocations: 4.125 kB / 377.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.656e-05/0.3185, allocations: 1.281 kB / 377.3 MB, free: 10.88 MB / 302.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.004436/0.323, allocations: 3.009 MB / 380.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.323, allocations: 10.03 kB / 380.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004339/0.3235, allocations: 460.4 kB / 380.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004779/0.3282, allocations: 1.586 MB / 382.4 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002258/0.3305, allocations: 1.697 MB / 384.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.554e-05/0.3306, allocations: 122.9 kB / 384.2 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002917/0.3309, allocations: 173.3 kB / 384.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007105/0.338, allocations: 6.534 MB / 390.9 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.609e-05/0.3381, allocations: 30.16 kB / 390.9 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002486/0.3384, allocations: 86.31 kB / 391 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002104/0.3405, allocations: 1.466 MB / 392.5 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007596/0.3481, allocations: 5.833 MB / 398.3 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0241/0.3722, allocations: 25.75 MB / 424.1 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005053/0.3773, allocations: 2.555 MB / 426.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.3787, allocations: 1.214 MB / 427.8 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006528/0.3852, allocations: 4.819 MB / 432.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.3853, allocations: 49.84 kB / 432.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.326e-06/0.3853, allocations: 0 / 432.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02063/0.4059, allocations: 9.785 MB / 442.5 MB, free: 5.762 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.406, allocations: 141 kB / 442.6 MB, free: 5.594 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003044/0.409, allocations: 2.716 MB / 445.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.419e-05/0.4091, allocations: 41.7 kB / 445.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.4102, allocations: 2.043 MB / 447.4 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000304/0.4105, allocations: 432.6 kB / 447.9 MB, free: 364 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009063/0.4114, allocations: 0.8315 MB / 448.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.117e-05/0.4115, allocations: 301.1 kB / 449 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001807/0.4133, allocations: 1.445 MB / 450.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003046/0.4164, allocations: 4.061 MB / 454.5 MB, free: 8.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005224/0.4216, allocations: 5.94 MB / 460.4 MB, free: 1.566 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.343e-05/0.4217, allocations: 28 kB / 460.5 MB, free: 1.539 MB / 366.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.008507/0.4302, allocations: 6.012 MB / 466.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.812e-05/0.4302, allocations: 44 kB / 466.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-05/0.4303, allocations: 99.94 kB / 466.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002007/0.4324, allocations: 0.8242 MB / 467.4 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002272/0.4346, allocations: 0.9396 MB / 468.4 MB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00496/0.4396, allocations: 4.664 MB / 473 MB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/0.4416, allocations: 239.6 kB / 473.3 MB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002736/0.4419, allocations: 260 kB / 473.5 MB, free: 4.391 MB / 382.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.001522/0.4435, allocations: 1.368 MB / 474.9 MB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003005/0.4438, allocations: 229.2 kB / 475.1 MB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003723/0.4475, allocations: 2.134 MB / 477.3 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.792e-05/0.4475, allocations: 22.53 kB / 477.3 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.4475, allocations: 8 kB / 477.3 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.4476, allocations: 3.984 kB / 477.3 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007492/0.455, allocations: 5.069 MB / 482.4 MB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4551, allocations: 0 / 482.4 MB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006648/0.4557, allocations: 155.8 kB / 482.5 MB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001895/0.4576, allocations: 0.6879 MB / 483.2 MB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.054e-05/0.4577, allocations: 16 kB / 483.2 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00443/0.4622, allocations: 4.159 MB / 487.4 MB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4622, allocations: 0 / 487.4 MB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005323/0.4675, allocations: 4.061 MB / 491.4 MB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.4678, allocations: 285.9 kB / 491.7 MB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000229/0.468, allocations: 20 kB / 491.7 MB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008519/0.4689, allocations: 67.89 kB / 491.8 MB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.4691, allocations: 60.3 kB / 491.9 MB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.461e-05/0.4691, allocations: 31.12 kB / 491.9 MB, free: 1.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001822/0.471, allocations: 1.701 MB / 493.6 MB, free: 40 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.471, allocations: 0 / 493.6 MB, free: 40 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.002306/0.4733, allocations: 0.668 MB / 494.3 MB, free: 15.37 MB / 414.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.005771/0.4791, allocations: 4.734 MB / 499 MB, free: 10.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004232/0.4833, allocations: 3.69 MB / 0.4909 GB, free: 6.914 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4833, allocations: 0 / 0.4909 GB, free: 6.914 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.4845, allocations: 1.044 MB / 0.4919 GB, free: 5.855 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.4857, allocations: 259.1 kB / 0.4922 GB, free: 5.605 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03242/0.5181, allocations: 32.03 MB / 0.5234 GB, free: 1.031 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1184/0.6365, allocations: 2.237 MB / 0.5256 GB, free: 154.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002715/0.6393, allocations: 1.323 MB / 0.5269 GB, free: 154.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001025/0.6403, allocations: 1.1 MB / 0.528 GB, free: 154.6 MB / 446.1 MB Notification: Performance of SimCode: time 5.31e-07/0.6403, allocations: 2 kB / 0.528 GB, free: 154.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8772/1.518, allocations: 45.47 MB / 0.5724 GB, free: 122.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/14.78, allocations: 11.36 kB / 0.5724 GB, free: 122.6 MB / 446.1 MB (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 --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) 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) Reference file matches