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.001216/0.001216, allocations: 110.7 kB / 16.62 MB, free: 6.816 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.0013/0.0013, allocations: 189.8 kB / 17.55 MB, free: 5.926 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.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 49.7 kB / 300.2 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1014, allocations: 49.45 MB / 349.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01746/0.1189, allocations: 18.09 MB / 367.8 MB, free: 2.262 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1552/0.2741, allocations: 5.001 MB / 372.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001992/0.2762, allocations: 73.59 kB / 372.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001841/0.278, allocations: 0.9713 MB / 373.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002653/0.2807, allocations: 1.26 MB / 375.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.2818, allocations: 0.5082 MB / 375.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002948/0.2847, allocations: 2.608 MB / 378.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001656/0.2864, allocations: 1.463 MB / 379.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001276/0.2877, allocations: 0.8459 MB / 380.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00162/0.2893, allocations: 1.292 MB / 381.8 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003016/0.2896, allocations: 146.6 kB / 381.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001713/0.2914, allocations: 0.9183 MB / 382.9 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000931/0.2923, allocations: 1.073 MB / 383.9 MB, free: 7.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008841/0.2932, allocations: 1.278 MB / 385.2 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003469/0.2967, allocations: 3.995 MB / 389.2 MB, free: 4.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.706e-06/0.2967, allocations: 0 / 389.2 MB, free: 4.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2967, allocations: 0 / 389.2 MB, free: 4.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.525e-05/0.2967, allocations: 0 / 389.2 MB, free: 4.27 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.004142/0.3009, allocations: 3.006 MB / 392.2 MB, free: 2.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.3009, allocations: 13.62 kB / 392.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004033/0.3013, allocations: 464.4 kB / 392.7 MB, free: 1.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004818/0.3062, allocations: 1.578 MB / 394.3 MB, free: 1.062 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002686/0.3089, allocations: 1.704 MB / 396 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.388e-05/0.309, allocations: 123 kB / 396.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003452/0.3093, allocations: 163.6 kB / 396.2 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008472/0.3178, allocations: 6.542 MB / 402.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.47e-05/0.3179, allocations: 23.81 kB / 402.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002226/0.3181, allocations: 81.16 kB / 402.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003932/0.322, allocations: 1.469 MB / 404.4 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01284/0.3349, allocations: 5.833 MB / 410.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02884/0.3638, allocations: 25.77 MB / 436 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004959/0.3687, allocations: 2.541 MB / 438.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/0.3701, allocations: 1.216 MB / 439.7 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006996/0.3772, allocations: 4.814 MB / 444.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.882e-05/0.3772, allocations: 46.55 kB / 444.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 4.098e-06/0.3772, allocations: 0 / 444.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02264/0.3999, allocations: 9.788 MB / 454.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.489e-05/0.4, allocations: 137 kB / 454.5 MB, free: 5.648 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004031/0.404, allocations: 2.719 MB / 457.2 MB, free: 2.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001441/0.4042, allocations: 41.7 kB / 457.3 MB, free: 2.863 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001346/0.4055, allocations: 2.046 MB / 459.3 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004408/0.406, allocations: 422.2 kB / 459.7 MB, free: 420 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001162/0.4071, allocations: 0.8394 MB / 460.6 MB, free: 15.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.681e-05/0.4072, allocations: 305.1 kB / 460.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002177/0.4094, allocations: 1.437 MB / 462.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003243/0.4127, allocations: 4.053 MB / 466.3 MB, free: 8.449 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005467/0.4182, allocations: 5.958 MB / 472.3 MB, free: 1.184 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.29e-05/0.4182, allocations: 28 kB / 472.3 MB, free: 1.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.009277/0.4275, allocations: 6 MB / 478.3 MB, free: 11.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.416e-05/0.4276, allocations: 44.19 kB / 478.4 MB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.514e-05/0.4277, allocations: 99.94 kB / 478.5 MB, free: 11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002165/0.4298, allocations: 0.8245 MB / 479.3 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002452/0.4323, allocations: 0.9434 MB / 480.2 MB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00543/0.4377, allocations: 4.663 MB / 484.9 MB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002381/0.4401, allocations: 239.6 kB / 485.1 MB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003233/0.4405, allocations: 260 kB / 485.4 MB, free: 3.945 MB / 398.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.001886/0.4424, allocations: 1.378 MB / 486.8 MB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003856/0.4428, allocations: 229 kB / 487 MB, free: 2.332 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003849/0.4466, allocations: 2.126 MB / 489.1 MB, free: 192 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/0.4466, allocations: 15.94 kB / 489.1 MB, free: 176 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.4467, allocations: 4 kB / 489.1 MB, free: 172 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.4467, allocations: 7.984 kB / 489.1 MB, free: 164 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008038/0.4547, allocations: 5.089 MB / 494.2 MB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.4547, allocations: 0 / 494.2 MB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006905/0.4554, allocations: 155.8 kB / 494.4 MB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/0.4574, allocations: 0.6873 MB / 495.1 MB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.844e-05/0.4575, allocations: 16 kB / 495.1 MB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004568/0.462, allocations: 4.15 MB / 499.2 MB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.4621, allocations: 0 / 499.2 MB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005846/0.4679, allocations: 4.058 MB / 0.4915 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00042/0.4683, allocations: 286.1 kB / 0.4918 GB, free: 1.469 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003062/0.4687, allocations: 16 kB / 0.4918 GB, free: 1.453 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000933/0.4696, allocations: 71.89 kB / 0.4919 GB, free: 1.383 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.4698, allocations: 64.36 kB / 0.4919 GB, free: 1.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.598e-05/0.4699, allocations: 30.42 kB / 0.492 GB, free: 1.293 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002099/0.472, allocations: 1.694 MB / 0.4936 GB, free: 15.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.472, allocations: 4 kB / 0.4936 GB, free: 15.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002702/0.4747, allocations: 0.6641 MB / 0.4943 GB, free: 14.92 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.006038/0.4807, allocations: 4.736 MB / 0.4989 GB, free: 10.15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006651/0.4874, allocations: 3.689 MB / 0.5025 GB, free: 6.469 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.4874, allocations: 0 / 0.5025 GB, free: 6.469 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001503/0.4889, allocations: 1.043 MB / 0.5035 GB, free: 5.41 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002219/0.4912, allocations: 275 kB / 0.5038 GB, free: 5.145 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1735/0.6647, allocations: 33.13 MB / 0.5361 GB, free: 145.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002955/0.6677, allocations: 2.232 MB / 0.5383 GB, free: 144.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003576/0.6713, allocations: 1.316 MB / 0.5396 GB, free: 144.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001231/0.6725, allocations: 1.101 MB / 0.5407 GB, free: 143.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/0.6725, allocations: 0 / 0.5407 GB, free: 143.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2166/0.8892, allocations: 45.37 MB / 0.585 GB, free: 106.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000191/0.8894, allocations: 256.2 kB / 0.5852 GB, free: 106.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.184/4.073, allocations: 0 / 0.5852 GB, free: 106.7 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