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.001171/0.001171, allocations: 103.9 kB / 16.51 MB, free: 6.699 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.001191/0.001191, allocations: 193.2 kB / 17.42 MB, free: 6.09 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.273/1.273, allocations: 222.9 MB / 241.1 MB, free: 15.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 42.41 kB / 300.1 MB, free: 6.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08588/0.08704, allocations: 49.44 MB / 349.5 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01679/0.1039, allocations: 18.09 MB / 367.6 MB, free: 2.555 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1548/0.2587, allocations: 5.108 MB / 372.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002232/0.261, allocations: 77.25 kB / 372.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002093/0.2631, allocations: 1.002 MB / 373.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003524/0.2667, allocations: 1.241 MB / 375 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.268, allocations: 0.5031 MB / 375.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005096/0.2731, allocations: 3.567 MB / 379.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001846/0.2749, allocations: 1.355 MB / 380.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001198/0.2761, allocations: 0.7396 MB / 381.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001534/0.2777, allocations: 1.24 MB / 382.4 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000267/0.278, allocations: 104.8 kB / 382.5 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001792/0.2798, allocations: 0.9259 MB / 383.5 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008679/0.2807, allocations: 1.033 MB / 384.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009045/0.2816, allocations: 1.221 MB / 385.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003082/0.2847, allocations: 3.937 MB / 389.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2847, allocations: 0 / 389.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2847, allocations: 1.438 kB / 389.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.052e-05/0.2847, allocations: 0 / 389.7 MB, free: 4.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.004278/0.289, allocations: 3.008 MB / 392.7 MB, free: 2.234 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.2891, allocations: 13.52 kB / 392.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004645/0.2895, allocations: 459.1 kB / 393.1 MB, free: 1.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004721/0.2943, allocations: 1.578 MB / 394.7 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002433/0.2967, allocations: 1.703 MB / 396.4 MB, free: 44 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.402e-05/0.2968, allocations: 124.8 kB / 396.5 MB, free: 12 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000311/0.2971, allocations: 161.5 kB / 396.7 MB, free: 0 / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009189/0.3063, allocations: 6.546 MB / 403.2 MB, free: 9.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001155/0.3065, allocations: 23.81 kB / 403.3 MB, free: 9.906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002262/0.3067, allocations: 82.64 kB / 403.3 MB, free: 9.852 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002281/0.309, allocations: 1.47 MB / 404.8 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01031/0.3193, allocations: 5.832 MB / 410.6 MB, free: 2.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03592/0.3553, allocations: 25.77 MB / 436.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006127/0.3614, allocations: 2.54 MB / 438.9 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001764/0.3632, allocations: 1.219 MB / 440.2 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008563/0.3718, allocations: 4.819 MB / 445 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/0.3719, allocations: 38.56 kB / 445 MB, free: 15.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 4.148e-06/0.3719, allocations: 0 / 445 MB, free: 15.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02561/0.3975, allocations: 9.784 MB / 454.8 MB, free: 5.383 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.834e-05/0.3976, allocations: 141 kB / 454.9 MB, free: 5.215 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005486/0.4031, allocations: 2.715 MB / 457.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002226/0.4034, allocations: 41.7 kB / 457.7 MB, free: 2.434 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001975/0.4054, allocations: 2.054 MB / 459.8 MB, free: 392 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007237/0.4061, allocations: 426.1 kB / 460.2 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001799/0.4079, allocations: 0.8319 MB / 461 MB, free: 15.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.4081, allocations: 301.1 kB / 461.3 MB, free: 14.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002379/0.4104, allocations: 1.445 MB / 462.7 MB, free: 13.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004206/0.4147, allocations: 4.061 MB / 466.8 MB, free: 8.004 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006991/0.4217, allocations: 5.94 MB / 472.7 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.968e-05/0.4218, allocations: 28 kB / 472.8 MB, free: 0.7266 MB / 382.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01135/0.4332, allocations: 6 MB / 478.8 MB, free: 10.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.895e-05/0.4333, allocations: 48.97 kB / 478.8 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001524/0.4334, allocations: 95.98 kB / 478.9 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002355/0.4358, allocations: 0.8201 MB / 479.7 MB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002787/0.4386, allocations: 0.9435 MB / 480.7 MB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005659/0.4443, allocations: 4.341 MB / 485 MB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002764/0.4471, allocations: 246.4 kB / 485.3 MB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004529/0.4475, allocations: 264 kB / 485.5 MB, free: 3.836 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.002174/0.4497, allocations: 1.372 MB / 486.9 MB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004387/0.4501, allocations: 228.9 kB / 487.1 MB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004213/0.4544, allocations: 2.136 MB / 489.2 MB, free: 76 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.23e-05/0.4544, allocations: 12 kB / 489.3 MB, free: 64 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.4544, allocations: 4 kB / 489.3 MB, free: 60 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.4544, allocations: 7.812 kB / 489.3 MB, free: 56 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009437/0.4639, allocations: 5.082 MB / 494.3 MB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/0.4639, allocations: 4 kB / 494.3 MB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007792/0.4647, allocations: 155.7 kB / 494.5 MB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002267/0.467, allocations: 0.6795 MB / 495.2 MB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.4671, allocations: 20.06 kB / 495.2 MB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005159/0.4723, allocations: 3.891 MB / 499.1 MB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.4723, allocations: 64 / 499.1 MB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006729/0.479, allocations: 4.065 MB / 0.4914 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008836/0.48, allocations: 286 kB / 0.4916 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006263/0.4806, allocations: 16 kB / 0.4917 GB, free: 1.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00137/0.482, allocations: 74.39 kB / 0.4917 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002301/0.4822, allocations: 64.58 kB / 0.4918 GB, free: 1.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.4823, allocations: 28 kB / 0.4918 GB, free: 1.453 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003437/0.4858, allocations: 1.694 MB / 0.4935 GB, free: 15.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4858, allocations: 8 kB / 0.4935 GB, free: 15.74 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003917/0.4897, allocations: 0.6679 MB / 0.4941 GB, free: 15.07 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.007128/0.4969, allocations: 4.744 MB / 0.4988 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005677/0.5026, allocations: 3.464 MB / 0.5021 GB, free: 6.84 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.5026, allocations: 0 / 0.5021 GB, free: 6.84 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.504, allocations: 1.036 MB / 0.5032 GB, free: 5.789 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002081/0.5061, allocations: 250.1 kB / 0.5034 GB, free: 5.543 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2472/0.7533, allocations: 33.14 MB / 0.5358 GB, free: 145.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003296/0.7566, allocations: 2.233 MB / 0.5379 GB, free: 144.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003923/0.7606, allocations: 1.322 MB / 0.5392 GB, free: 144.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001437/0.762, allocations: 1.098 MB / 0.5403 GB, free: 143.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.773e-06/0.7621, allocations: 0 / 0.5403 GB, free: 143.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4877/1.25, allocations: 44.49 MB / 0.5837 GB, free: 108.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002412/1.25, allocations: 260.5 kB / 0.584 GB, free: 108.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.124/4.374, allocations: 0 / 0.584 GB, free: 108.1 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