Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001266/0.001266, allocations: 108.8 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00112/0.00112, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 64.12 kB / 306.6 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09146/0.0926, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.161/0.2536, allocations: 17.99 MB / 375.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008761/0.2624, allocations: 5 MB / 380.1 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002833/0.2653, allocations: 77.44 kB / 380.2 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002217/0.2675, allocations: 0.9701 MB / 381.1 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003047/0.2706, allocations: 1.225 MB / 382.3 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.2717, allocations: 0.5139 MB / 382.9 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002907/0.2746, allocations: 2.63 MB / 385.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001559/0.2762, allocations: 1.456 MB / 386.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009504/0.2772, allocations: 0.835 MB / 387.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001161/0.2783, allocations: 1.288 MB / 389.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002197/0.2786, allocations: 147.3 kB / 389.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001497/0.2801, allocations: 0.9023 MB / 390.1 MB, free: 5.395 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007229/0.2808, allocations: 1.063 MB / 391.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008408/0.2816, allocations: 1.256 MB / 392.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003227/0.2849, allocations: 3.949 MB / 396.4 MB, free: 1.332 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2849, allocations: 7.938 kB / 396.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.2849, allocations: 0 / 396.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.544e-05/0.285, allocations: 5.031 kB / 396.4 MB, free: 1.32 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.004863/0.2898, allocations: 2.996 MB / 399.4 MB, free: 15.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.2899, allocations: 8.438 kB / 399.4 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005175/0.2904, allocations: 462.2 kB / 399.9 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004966/0.2954, allocations: 1.583 MB / 401.4 MB, free: 14.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00249/0.2979, allocations: 1.581 MB / 403 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.51e-05/0.298, allocations: 126.6 kB / 403.1 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002901/0.2983, allocations: 166.2 kB / 403.3 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007975/0.3063, allocations: 6.533 MB / 409.8 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.586e-05/0.3064, allocations: 27.8 kB / 409.9 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002134/0.3066, allocations: 81.69 kB / 409.9 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002229/0.3088, allocations: 1.469 MB / 411.4 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008883/0.3177, allocations: 5.83 MB / 417.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02552/0.3432, allocations: 25.77 MB / 443 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005121/0.3484, allocations: 2.554 MB / 445.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001435/0.3499, allocations: 1.22 MB / 446.8 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007357/0.3572, allocations: 4.794 MB / 451.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.3573, allocations: 46.5 kB / 451.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 5.541e-06/0.3573, allocations: 0 / 451.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02258/0.3799, allocations: 9.798 MB / 461.4 MB, free: 1.328 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.38, allocations: 137 kB / 461.6 MB, free: 1.164 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003758/0.3838, allocations: 2.706 MB / 464.3 MB, free: 14.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.3839, allocations: 41.64 kB / 464.3 MB, free: 14.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001233/0.3851, allocations: 2.049 MB / 466.4 MB, free: 12.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003838/0.3855, allocations: 435.3 kB / 466.8 MB, free: 11.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001044/0.3866, allocations: 0.8311 MB / 467.6 MB, free: 11.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.826e-05/0.3867, allocations: 301.1 kB / 467.9 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002107/0.3888, allocations: 1.437 MB / 469.3 MB, free: 9.344 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003446/0.3922, allocations: 4.065 MB / 473.4 MB, free: 3.961 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005519/0.3978, allocations: 5.938 MB / 479.3 MB, free: 12.72 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-05/0.3978, allocations: 32 kB / 479.4 MB, free: 12.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.00975/0.4076, allocations: 6.004 MB / 485.4 MB, free: 6.672 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.248e-05/0.4077, allocations: 47.94 kB / 485.4 MB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001049/0.4078, allocations: 96 kB / 485.5 MB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002299/0.4101, allocations: 0.8202 MB / 486.3 MB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002657/0.4128, allocations: 0.9357 MB / 487.3 MB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005278/0.4181, allocations: 4.666 MB / 491.9 MB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002572/0.4207, allocations: 236.1 kB / 492.2 MB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003836/0.4211, allocations: 260 kB / 492.4 MB, free: 15.49 MB / 414.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.001857/0.4229, allocations: 1.378 MB / 493.8 MB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003844/0.4233, allocations: 225.1 kB / 494 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003878/0.4272, allocations: 2.134 MB / 496.2 MB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-05/0.4272, allocations: 12 kB / 496.2 MB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.4273, allocations: 7.938 kB / 496.2 MB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.4273, allocations: 3.984 kB / 496.2 MB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008367/0.4356, allocations: 5.085 MB / 0.4895 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/0.4357, allocations: 4 kB / 0.4895 GB, free: 6.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007077/0.4364, allocations: 147.8 kB / 0.4897 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001977/0.4384, allocations: 0.6873 MB / 0.4903 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.887e-05/0.4385, allocations: 16 kB / 0.4903 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004747/0.4432, allocations: 4.147 MB / 0.4944 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.4433, allocations: 4.062 kB / 0.4944 GB, free: 1.406 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005999/0.4493, allocations: 4.053 MB / 0.4984 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000561/0.4499, allocations: 286.1 kB / 0.4986 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003815/0.4502, allocations: 12 kB / 0.4986 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.4513, allocations: 79.88 kB / 0.4987 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.4515, allocations: 60.23 kB / 0.4988 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.016e-05/0.4516, allocations: 32.28 kB / 0.4988 GB, free: 12.84 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002522/0.4541, allocations: 1.693 MB / 0.5005 GB, free: 11.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4541, allocations: 0 / 0.5005 GB, free: 11.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003056/0.4572, allocations: 0.6712 MB / 0.5011 GB, free: 10.47 MB / 430.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.006482/0.4637, allocations: 4.725 MB / 0.5057 GB, free: 5.711 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005642/0.4693, allocations: 3.692 MB / 0.5093 GB, free: 2.023 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.4694, allocations: 0 / 0.5093 GB, free: 2.023 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001275/0.4707, allocations: 1.036 MB / 0.5103 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001785/0.4725, allocations: 266 kB / 0.5106 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1858/0.6583, allocations: 33.09 MB / 0.5429 GB, free: 138.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00208/0.6604, allocations: 2.231 MB / 0.5451 GB, free: 137.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002831/0.6632, allocations: 1.321 MB / 0.5464 GB, free: 137.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/0.6643, allocations: 1.105 MB / 0.5475 GB, free: 136.9 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.6643, allocations: 0 / 0.5475 GB, free: 136.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.65/3.315, allocations: 45.35 MB / 0.5917 GB, free: 97.59 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/3.315, allocations: 253.1 kB / 0.592 GB, free: 97.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.555/8.869, allocations: 6.672 kB / 0.592 GB, free: 97.33 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches