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.0009613/0.0009676, allocations: 89.8 kB / 16.65 MB, free: 6.535 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.001021/0.001022, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.337/1.337, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000315/0.000315, allocations: 9.188 kB / 301.5 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1011, allocations: 50.42 MB / 352 MB, free: 3.586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01696/0.1181, allocations: 17.42 MB / 369.4 MB, free: 2.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2211/0.3392, allocations: 5.044 MB / 374.4 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002615/0.3419, allocations: 76.69 kB / 374.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007727/0.3427, allocations: 280.2 kB / 374.8 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003068/0.3457, allocations: 1.254 MB / 376 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001201/0.3469, allocations: 0.5034 MB / 376.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004897/0.3519, allocations: 3.557 MB / 380.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002686/0.3546, allocations: 1.723 MB / 381.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001368/0.3559, allocations: 0.6865 MB / 382.5 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001647/0.3576, allocations: 1.172 MB / 383.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002912/0.3579, allocations: 82.62 kB / 383.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0018/0.3597, allocations: 0.9033 MB / 384.7 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009368/0.3607, allocations: 1.007 MB / 385.7 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009898/0.3617, allocations: 1.213 MB / 386.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00365/0.3653, allocations: 3.854 MB / 390.7 MB, free: 3.883 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3653, allocations: 1.188 kB / 390.7 MB, free: 3.883 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3653, allocations: 0 / 390.7 MB, free: 3.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.339e-05/0.3654, allocations: 0 / 390.7 MB, free: 3.883 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.004487/0.3699, allocations: 2.511 MB / 393.2 MB, free: 2.059 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.37, allocations: 10.44 kB / 393.2 MB, free: 2.059 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004717/0.3705, allocations: 460.4 kB / 393.7 MB, free: 1.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005192/0.3757, allocations: 1.628 MB / 395.3 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002699/0.3784, allocations: 1.69 MB / 397 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/0.3785, allocations: 126.7 kB / 397.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003201/0.3788, allocations: 167 kB / 397.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009591/0.3884, allocations: 6.542 MB / 403.8 MB, free: 9.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.456e-05/0.3885, allocations: 31.75 kB / 403.9 MB, free: 9.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000277/0.3888, allocations: 83.44 kB / 404 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002398/0.3912, allocations: 1.466 MB / 405.4 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01025/0.4015, allocations: 5.846 MB / 411.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02883/0.4303, allocations: 25.76 MB / 437 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005473/0.4358, allocations: 2.576 MB / 439.6 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.4374, allocations: 1.211 MB / 440.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007309/0.4447, allocations: 4.819 MB / 445.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.4447, allocations: 46.5 kB / 445.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.276e-06/0.4447, allocations: 0 / 445.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02421/0.469, allocations: 9.751 MB / 455.4 MB, free: 5.332 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.223e-05/0.4691, allocations: 144.9 kB / 455.6 MB, free: 5.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004231/0.4733, allocations: 2.715 MB / 458.3 MB, free: 2.426 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001487/0.4735, allocations: 41.14 kB / 458.3 MB, free: 2.383 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.4748, allocations: 2.051 MB / 460.4 MB, free: 340 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005157/0.4754, allocations: 425.9 kB / 460.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005191/0.4759, allocations: 350.7 kB / 461.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.84e-05/0.476, allocations: 305.1 kB / 461.4 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002257/0.4782, allocations: 1.433 MB / 462.9 MB, free: 13.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003889/0.4821, allocations: 4.061 MB / 466.9 MB, free: 8.449 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00649/0.4887, allocations: 5.946 MB / 472.9 MB, free: 1.191 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.951e-05/0.4887, allocations: 28 kB / 472.9 MB, free: 1.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.0113/0.5, allocations: 6.002 MB / 478.9 MB, free: 11.15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.306e-05/0.5002, allocations: 54.19 kB / 479 MB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001641/0.5003, allocations: 100.5 kB / 479.1 MB, free: 11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002478/0.5028, allocations: 0.817 MB / 479.9 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002882/0.5057, allocations: 0.944 MB / 480.8 MB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005494/0.5112, allocations: 4.342 MB / 485.2 MB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002912/0.5141, allocations: 249.7 kB / 485.4 MB, free: 4.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004497/0.5146, allocations: 256 kB / 485.7 MB, free: 4.277 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.00234/0.517, allocations: 1.368 MB / 487 MB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004721/0.5174, allocations: 229 kB / 487.2 MB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004415/0.5219, allocations: 2.134 MB / 489.4 MB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-05/0.5219, allocations: 13.8 kB / 489.4 MB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.5219, allocations: 4 kB / 489.4 MB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.5219, allocations: 11.92 kB / 489.4 MB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/0.5322, allocations: 5.088 MB / 494.5 MB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.5322, allocations: 0 / 494.5 MB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007884/0.533, allocations: 151.8 kB / 494.6 MB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002164/0.5352, allocations: 0.6833 MB / 495.3 MB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.5353, allocations: 24.06 kB / 495.4 MB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005124/0.5405, allocations: 3.889 MB / 499.2 MB, free: 6.457 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.5405, allocations: 4.031 kB / 499.2 MB, free: 6.453 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006801/0.5473, allocations: 4.061 MB / 0.4915 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009633/0.5483, allocations: 282.2 kB / 0.4918 GB, free: 2.066 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006169/0.5489, allocations: 23.94 kB / 0.4918 GB, free: 2.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/0.5502, allocations: 71.95 kB / 0.4919 GB, free: 1.973 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.5504, allocations: 56.36 kB / 0.4919 GB, free: 1.918 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.476e-05/0.5505, allocations: 35.27 kB / 0.492 GB, free: 1.887 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003474/0.554, allocations: 1.694 MB / 0.4936 GB, free: 188 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.554, allocations: 0 / 0.4936 GB, free: 188 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.003838/0.5579, allocations: 0.6718 MB / 0.4943 GB, free: 15.51 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.00738/0.5653, allocations: 4.74 MB / 0.4989 GB, free: 10.74 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005662/0.571, allocations: 3.475 MB / 0.5023 GB, free: 7.27 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.571, allocations: 0 / 0.5023 GB, free: 7.27 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.5724, allocations: 1.039 MB / 0.5033 GB, free: 6.215 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002357/0.5747, allocations: 252.7 kB / 0.5035 GB, free: 5.969 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2435/0.8183, allocations: 33.19 MB / 0.536 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002552/0.8209, allocations: 2.235 MB / 0.5381 GB, free: 143.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003575/0.8245, allocations: 1.321 MB / 0.5394 GB, free: 143.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001233/0.8257, allocations: 1.103 MB / 0.5405 GB, free: 142.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.8257, allocations: 0 / 0.5405 GB, free: 142.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06473/0.8904, allocations: 44 MB / 0.5835 GB, free: 108.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/0.8906, allocations: 262.6 kB / 0.5837 GB, free: 107.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.78/3.671, allocations: 0 / 0.5837 GB, free: 107.9 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