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.001197/0.001197, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2665, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008011/0.2746, allocations: 7.595 MB / 416.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005698/0.2803, allocations: 3.352 MB / 419.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.2814, allocations: 35.94 kB / 419.7 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002274/0.2838, allocations: 1.027 MB / 420.8 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003275/0.2871, allocations: 1.312 MB / 422.1 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.2884, allocations: 0.5457 MB / 422.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003171/0.2916, allocations: 2.625 MB / 425.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/0.2932, allocations: 1.375 MB / 426.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.2944, allocations: 0.829 MB / 427.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.2956, allocations: 1.141 MB / 428.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002658/0.2959, allocations: 148 kB / 428.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001519/0.2974, allocations: 0.8969 MB / 429.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008068/0.2982, allocations: 1.052 MB / 430.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009506/0.2992, allocations: 1.238 MB / 431.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003597/0.3028, allocations: 4.087 MB / 436 MB, free: 6.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3028, allocations: 0 / 436 MB, free: 6.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3028, allocations: 0 / 436 MB, free: 6.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.495e-05/0.3029, allocations: 0 / 436 MB, free: 6.152 MB / 350.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.004833/0.3077, allocations: 2.996 MB / 439 MB, free: 3.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.3078, allocations: 8.031 kB / 439 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004497/0.3082, allocations: 466.4 kB / 439.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00484/0.3131, allocations: 1.573 MB / 441 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/0.3159, allocations: 1.612 MB / 442.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.226e-05/0.316, allocations: 127 kB / 442.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003041/0.3163, allocations: 159.9 kB / 442.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008686/0.325, allocations: 6.538 MB / 449.5 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.818e-05/0.3251, allocations: 27.56 kB / 449.5 MB, free: 8.059 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002271/0.3253, allocations: 83.84 kB / 449.6 MB, free: 7.977 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002199/0.3275, allocations: 1.468 MB / 451.1 MB, free: 6.508 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009475/0.337, allocations: 5.83 MB / 456.9 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0302/0.3672, allocations: 25.64 MB / 482.5 MB, free: 6.266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005567/0.3729, allocations: 2.549 MB / 485.1 MB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/0.3744, allocations: 1.215 MB / 486.3 MB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007653/0.3821, allocations: 4.811 MB / 491.1 MB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.3822, allocations: 50.44 kB / 491.2 MB, free: 13.37 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 4.789e-06/0.3822, allocations: 3.984 kB / 491.2 MB, free: 13.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02338/0.4056, allocations: 9.784 MB / 0.4892 GB, free: 3.434 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/0.4057, allocations: 137 kB / 0.4893 GB, free: 3.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003965/0.4097, allocations: 2.714 MB / 0.492 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001648/0.4098, allocations: 37.7 kB / 0.492 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.4112, allocations: 2.052 MB / 0.494 GB, free: 14.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005084/0.4117, allocations: 422.8 kB / 0.4944 GB, free: 13.99 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001257/0.413, allocations: 0.8291 MB / 0.4952 GB, free: 13.15 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.316e-05/0.4131, allocations: 305.1 kB / 0.4955 GB, free: 12.85 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002162/0.4153, allocations: 1.441 MB / 0.4969 GB, free: 11.41 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003835/0.4191, allocations: 4.057 MB / 0.5009 GB, free: 6.031 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006206/0.4254, allocations: 5.946 MB / 0.5067 GB, free: 14.78 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.932e-05/0.4255, allocations: 28 kB / 0.5067 GB, free: 14.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01036/0.4358, allocations: 6.012 MB / 0.5126 GB, free: 8.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.912e-05/0.436, allocations: 44 kB / 0.5126 GB, free: 8.688 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001379/0.4361, allocations: 96 kB / 0.5127 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002273/0.4384, allocations: 0.8277 MB / 0.5135 GB, free: 7.766 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002695/0.4411, allocations: 0.9396 MB / 0.5145 GB, free: 6.824 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005729/0.4468, allocations: 4.652 MB / 0.519 GB, free: 2.031 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002759/0.4496, allocations: 235.6 kB / 0.5192 GB, free: 1.801 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005508/0.4502, allocations: 272 kB / 0.5195 GB, free: 1.535 MB / 446.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.002187/0.4524, allocations: 1.372 MB / 0.5208 GB, free: 152 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005202/0.4529, allocations: 229.1 kB / 0.521 GB, free: 15.92 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004151/0.4571, allocations: 2.134 MB / 0.5231 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.851e-05/0.4571, allocations: 16 kB / 0.5231 GB, free: 13.76 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.4571, allocations: 4 kB / 0.5231 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.4572, allocations: 3.984 kB / 0.5231 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009319/0.4665, allocations: 5.07 MB / 0.5281 GB, free: 8.605 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/0.4665, allocations: 0.5625 kB / 0.5281 GB, free: 8.605 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007657/0.4673, allocations: 151.8 kB / 0.5282 GB, free: 8.457 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/0.4694, allocations: 0.6911 MB / 0.5289 GB, free: 7.762 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001174/0.4695, allocations: 16 kB / 0.5289 GB, free: 7.746 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004996/0.4745, allocations: 4.151 MB / 0.533 GB, free: 3.453 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.4745, allocations: 0 / 0.533 GB, free: 3.453 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2307/0.7052, allocations: 4.048 MB / 0.5369 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007051/0.7059, allocations: 282.2 kB / 0.5372 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003248/0.7063, allocations: 16.92 kB / 0.5372 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.7073, allocations: 73.7 kB / 0.5373 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.7075, allocations: 58.19 kB / 0.5374 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.7076, allocations: 33.56 kB / 0.5374 GB, free: 124.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002638/0.7103, allocations: 1.691 MB / 0.539 GB, free: 124 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7103, allocations: 0 / 0.539 GB, free: 124 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002917/0.7132, allocations: 0.6604 MB / 0.5397 GB, free: 123.9 MB / 462.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.005502/0.7187, allocations: 4.736 MB / 0.5443 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004323/0.7231, allocations: 3.479 MB / 0.5477 GB, free: 120.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.7231, allocations: 0 / 0.5477 GB, free: 120.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.7242, allocations: 1.045 MB / 0.5487 GB, free: 120.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001561/0.7258, allocations: 268.4 kB / 0.549 GB, free: 120.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03303/0.7588, allocations: 29.8 MB / 0.5781 GB, free: 90.61 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001719/0.7606, allocations: 2.237 MB / 0.5803 GB, free: 88.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002323/0.7629, allocations: 1.317 MB / 0.5815 GB, free: 87.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/0.764, allocations: 1.089 MB / 0.5826 GB, free: 85.93 MB / 462.1 MB Notification: Performance of SimCode: time 6.61e-07/0.764, allocations: 0 / 0.5826 GB, free: 85.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06997/0.834, allocations: 45.43 MB / 0.627 GB, free: 40.79 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.6/17.44, allocations: 4.062 kB / 0.627 GB, free: 40.79 MB / 462.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