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.001273/0.001273, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00138/0.00138, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.2/1.2, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 55.09 kB / 306.4 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08066/0.08181, allocations: 50.53 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.1632/0.245, allocations: 17.98 MB / 374.9 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008625/0.2537, allocations: 5.106 MB / 380 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002455/0.2562, allocations: 74.38 kB / 380.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001923/0.2582, allocations: 0.9937 MB / 381 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003187/0.2614, allocations: 1.234 MB / 382.3 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001193/0.2626, allocations: 0.497 MB / 382.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003908/0.2665, allocations: 3.578 MB / 386.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001465/0.268, allocations: 1.357 MB / 387.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008802/0.2689, allocations: 0.735 MB / 388.4 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.27, allocations: 1.233 MB / 389.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002056/0.2702, allocations: 105.8 kB / 389.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001532/0.2718, allocations: 0.9043 MB / 390.7 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007236/0.2725, allocations: 1.025 MB / 391.7 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007731/0.2733, allocations: 1.204 MB / 392.9 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002905/0.2762, allocations: 3.893 MB / 396.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2762, allocations: 0 / 396.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2762, allocations: 6.5 kB / 396.8 MB, free: 1.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.864e-05/0.2763, allocations: 0 / 396.8 MB, free: 1.02 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.0042/0.2805, allocations: 2.994 MB / 399.8 MB, free: 14.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.2805, allocations: 9.469 kB / 399.8 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004401/0.2809, allocations: 470.9 kB / 400.3 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004599/0.2856, allocations: 1.572 MB / 401.9 MB, free: 13.83 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002268/0.2878, allocations: 1.586 MB / 403.4 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.392e-05/0.2879, allocations: 127.4 kB / 403.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002717/0.2882, allocations: 158.5 kB / 403.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007782/0.296, allocations: 6.536 MB / 410.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.238e-05/0.2961, allocations: 31.73 kB / 410.3 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002128/0.2963, allocations: 82.25 kB / 410.4 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002195/0.2985, allocations: 1.474 MB / 411.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008574/0.3071, allocations: 5.822 MB / 417.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02535/0.3324, allocations: 25.77 MB / 443.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005045/0.3375, allocations: 2.554 MB / 446 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001438/0.339, allocations: 1.219 MB / 447.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006685/0.3457, allocations: 4.793 MB / 452 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.3457, allocations: 50.48 kB / 452 MB, free: 10.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.166e-06/0.3457, allocations: 4 kB / 452.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02095/0.3667, allocations: 9.781 MB / 461.8 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/0.3668, allocations: 144.9 kB / 462 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003029/0.3698, allocations: 2.706 MB / 464.7 MB, free: 13.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.137e-05/0.3699, allocations: 41.7 kB / 464.7 MB, free: 13.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.371, allocations: 2.046 MB / 466.8 MB, free: 11.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003225/0.3713, allocations: 430.7 kB / 467.2 MB, free: 11.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009154/0.3723, allocations: 0.8278 MB / 468 MB, free: 10.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.202e-05/0.3723, allocations: 305.1 kB / 468.3 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001845/0.3742, allocations: 1.437 MB / 469.8 MB, free: 8.742 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003282/0.3775, allocations: 4.061 MB / 473.8 MB, free: 3.363 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005715/0.3832, allocations: 5.949 MB / 479.8 MB, free: 12.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.323e-05/0.3833, allocations: 24 kB / 479.8 MB, free: 12.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.00883/0.3921, allocations: 6.009 MB / 485.8 MB, free: 6.066 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.028e-05/0.3922, allocations: 56.17 kB / 485.8 MB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.229e-05/0.3922, allocations: 92.47 kB / 485.9 MB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002117/0.3944, allocations: 0.8161 MB / 486.8 MB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/0.3969, allocations: 0.9435 MB / 487.7 MB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005132/0.402, allocations: 4.34 MB / 492 MB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00252/0.4045, allocations: 243.4 kB / 492.3 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/0.4049, allocations: 260 kB / 492.5 MB, free: 15.2 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.001752/0.4066, allocations: 1.376 MB / 493.9 MB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003165/0.407, allocations: 221.1 kB / 494.1 MB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003855/0.4108, allocations: 2.138 MB / 496.3 MB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.862e-05/0.4109, allocations: 12 kB / 496.3 MB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4109, allocations: 4 kB / 496.3 MB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.4109, allocations: 7.922 kB / 496.3 MB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007853/0.4187, allocations: 5.081 MB / 0.4896 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.4188, allocations: 4 kB / 0.4896 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006788/0.4194, allocations: 151.8 kB / 0.4898 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/0.4214, allocations: 0.6835 MB / 0.4904 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.348e-05/0.4215, allocations: 20 kB / 0.4904 GB, free: 5.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004386/0.4259, allocations: 3.889 MB / 0.4942 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4259, allocations: 96 / 0.4942 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005468/0.4314, allocations: 4.072 MB / 0.4982 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.4317, allocations: 278 kB / 0.4985 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002259/0.4319, allocations: 20 kB / 0.4985 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008107/0.4327, allocations: 71.88 kB / 0.4986 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/0.4329, allocations: 52.36 kB / 0.4986 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.737e-05/0.433, allocations: 34.19 kB / 0.4987 GB, free: 12.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001915/0.4349, allocations: 1.697 MB / 0.5003 GB, free: 11.11 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4349, allocations: 0 / 0.5003 GB, free: 11.11 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002585/0.4375, allocations: 0.6562 MB / 0.501 GB, free: 10.46 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.005924/0.4434, allocations: 4.726 MB / 0.5056 GB, free: 5.695 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004102/0.4476, allocations: 3.468 MB / 0.509 GB, free: 2.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4476, allocations: 0 / 0.509 GB, free: 2.23 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.4488, allocations: 1.047 MB / 0.51 GB, free: 1.176 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.45, allocations: 247.2 kB / 0.5102 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1427/0.5928, allocations: 33.1 MB / 0.5425 GB, free: 138.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001664/0.5945, allocations: 2.238 MB / 0.5447 GB, free: 137.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002492/0.597, allocations: 1.312 MB / 0.546 GB, free: 137.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009476/0.5979, allocations: 1.098 MB / 0.5471 GB, free: 136.8 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.5979, allocations: 0 / 0.5471 GB, free: 136.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.3/7.898, allocations: 44.46 MB / 0.5905 GB, free: 98.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/7.899, allocations: 248 kB / 0.5907 GB, free: 98.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.134/11.03, allocations: 3.938 kB / 0.5907 GB, free: 98.55 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