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.00157/0.001571, allocations: 104.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001964/0.001964, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 59.19 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0974/0.09884, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.00966/0.1085, allocations: 7.593 MB / 365.2 MB, free: 6.344 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006379/0.115, allocations: 3.36 MB / 368.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.1161, allocations: 35.94 kB / 368.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002424/0.1186, allocations: 1.035 MB / 369.6 MB, free: 1.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003299/0.1219, allocations: 1.308 MB / 370.9 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001295/0.1232, allocations: 0.5495 MB / 371.5 MB, free: 36 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1746/0.2978, allocations: 2.605 MB / 374.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002011/0.2998, allocations: 1.388 MB / 375.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001611/0.3015, allocations: 0.8236 MB / 376.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001752/0.3032, allocations: 1.145 MB / 377.4 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004265/0.3037, allocations: 151.1 kB / 377.6 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00192/0.3056, allocations: 0.8877 MB / 378.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001102/0.3067, allocations: 1.042 MB / 379.5 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001162/0.3079, allocations: 1.237 MB / 380.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004923/0.3128, allocations: 3.912 MB / 384.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3129, allocations: 0 / 384.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3129, allocations: 1.406 kB / 384.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001094/0.313, allocations: 0 / 384.7 MB, free: 7.297 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.007826/0.3208, allocations: 2.992 MB / 387.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.03e-05/0.3209, allocations: 12.62 kB / 387.7 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007283/0.3216, allocations: 468.7 kB / 388.1 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0057/0.3273, allocations: 1.583 MB / 389.7 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004102/0.3315, allocations: 1.58 MB / 391.3 MB, free: 3.805 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.3316, allocations: 123.5 kB / 391.4 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003898/0.332, allocations: 163.3 kB / 391.6 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009684/0.3417, allocations: 6.531 MB / 398.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.051e-05/0.3418, allocations: 31.56 kB / 398.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002617/0.3421, allocations: 84.75 kB / 398.2 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002679/0.3448, allocations: 1.469 MB / 399.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01172/0.3565, allocations: 5.837 MB / 405.5 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0399/0.3965, allocations: 25.76 MB / 431.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006079/0.4026, allocations: 2.544 MB / 433.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001683/0.4043, allocations: 1.215 MB / 435 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008081/0.4124, allocations: 4.801 MB / 439.8 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.4124, allocations: 46.5 kB / 439.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.577e-06/0.4125, allocations: 4 kB / 439.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02665/0.4391, allocations: 9.787 MB / 449.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.095e-05/0.4392, allocations: 140.9 kB / 449.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005139/0.4444, allocations: 2.71 MB / 452.5 MB, free: 9.051 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002582/0.4447, allocations: 45.36 kB / 452.6 MB, free: 9.004 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001797/0.4465, allocations: 2.047 MB / 454.6 MB, free: 6.961 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006774/0.4472, allocations: 428.3 kB / 455 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001663/0.4488, allocations: 0.8252 MB / 455.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000233/0.4491, allocations: 305.1 kB / 456.2 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003241/0.4523, allocations: 1.437 MB / 457.6 MB, free: 3.969 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005105/0.4575, allocations: 4.065 MB / 461.7 MB, free: 14.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007538/0.465, allocations: 5.947 MB / 467.6 MB, free: 7.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001205/0.4652, allocations: 28 kB / 467.6 MB, free: 7.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01383/0.479, allocations: 6.004 MB / 473.6 MB, free: 1.316 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001536/0.4792, allocations: 48.94 kB / 473.7 MB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002122/0.4794, allocations: 95.94 kB / 473.8 MB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002885/0.4823, allocations: 0.8162 MB / 474.6 MB, free: 364 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003583/0.4859, allocations: 0.9474 MB / 475.5 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006533/0.4925, allocations: 4.66 MB / 480.2 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003403/0.4959, allocations: 243.6 kB / 480.4 MB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008336/0.4968, allocations: 260 kB / 480.7 MB, free: 10.12 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.003764/0.5006, allocations: 1.368 MB / 482.1 MB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009124/0.5015, allocations: 225.1 kB / 482.3 MB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005509/0.507, allocations: 2.13 MB / 484.4 MB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.604e-05/0.5071, allocations: 19.92 kB / 484.4 MB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.908e-05/0.5071, allocations: 4 kB / 484.4 MB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/0.5071, allocations: 3.984 kB / 484.4 MB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/0.519, allocations: 5.074 MB / 489.5 MB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.771e-05/0.519, allocations: 0 / 489.5 MB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008541/0.5199, allocations: 167.7 kB / 489.7 MB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002173/0.5221, allocations: 0.6761 MB / 490.3 MB, free: 372 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.5222, allocations: 19.98 kB / 490.4 MB, free: 352 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005378/0.5276, allocations: 4.151 MB / 494.5 MB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.5276, allocations: 0 / 494.5 MB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009847/0.5375, allocations: 4.055 MB / 498.6 MB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.5386, allocations: 278 kB / 498.8 MB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007368/0.5394, allocations: 20 kB / 498.9 MB, free: 7.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001985/0.5414, allocations: 74.77 kB / 498.9 MB, free: 7.582 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003401/0.5418, allocations: 60.23 kB / 499 MB, free: 7.523 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/0.5419, allocations: 35.98 kB / 499 MB, free: 7.488 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005148/0.5471, allocations: 1.689 MB / 0.489 GB, free: 5.789 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5471, allocations: 0 / 0.489 GB, free: 5.789 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004448/0.5516, allocations: 0.6601 MB / 0.4896 GB, free: 5.129 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.00799/0.5596, allocations: 4.73 MB / 0.4942 GB, free: 384 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006659/0.5663, allocations: 3.703 MB / 0.4979 GB, free: 12.68 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.862e-06/0.5663, allocations: 0 / 0.4979 GB, free: 12.68 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/0.5679, allocations: 1.036 MB / 0.4989 GB, free: 11.63 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002497/0.5704, allocations: 275.8 kB / 0.4991 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2404/0.8109, allocations: 31.99 MB / 0.5304 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002576/0.8135, allocations: 2.234 MB / 0.5326 GB, free: 140.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003794/0.8173, allocations: 1.313 MB / 0.5338 GB, free: 140.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001409/0.8187, allocations: 1.098 MB / 0.5349 GB, free: 140.1 MB / 446.1 MB Notification: Performance of SimCode: time 3.327e-06/0.8188, allocations: 0 / 0.5349 GB, free: 140.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07055/0.8893, allocations: 45.46 MB / 0.5793 GB, free: 104.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/11.47, allocations: 10.88 kB / 0.5793 GB, free: 104.8 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/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