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.0006999/0.0006999, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009658/0.0009658, allocations: 205.8 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.21/1.21, allocations: 227.7 MB / 246.8 MB, free: 9.559 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001948/0.000195, allocations: 4 kB / 307.8 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07665/0.07686, allocations: 51.52 MB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.1532/0.2301, allocations: 17.32 MB / 376.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007913/0.2381, allocations: 5.038 MB / 381.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001615/0.2397, allocations: 73.53 kB / 381.8 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005991/0.2403, allocations: 280.8 kB / 382.1 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002356/0.2427, allocations: 1.243 MB / 383.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009357/0.2437, allocations: 0.4946 MB / 383.8 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003289/0.247, allocations: 3.583 MB / 387.4 MB, free: 6.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001808/0.2488, allocations: 1.73 MB / 389.1 MB, free: 6.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007759/0.2496, allocations: 0.6774 MB / 389.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001243/0.2508, allocations: 1.169 MB / 391 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001875/0.251, allocations: 82.22 kB / 391 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001377/0.2524, allocations: 0.8854 MB / 391.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000683/0.2531, allocations: 0.9941 MB / 392.9 MB, free: 4.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007532/0.2539, allocations: 1.198 MB / 394.1 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002599/0.2565, allocations: 3.808 MB / 397.9 MB, free: 1.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2565, allocations: 5.469 kB / 397.9 MB, free: 1.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2565, allocations: 0 / 397.9 MB, free: 1.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.125e-05/0.2565, allocations: 0 / 397.9 MB, free: 1.266 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.003381/0.2599, allocations: 2.495 MB / 400.4 MB, free: 15.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.2599, allocations: 11.69 kB / 400.4 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004189/0.2604, allocations: 464.3 kB / 400.9 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004854/0.2652, allocations: 1.624 MB / 402.5 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002118/0.2674, allocations: 1.583 MB / 404.1 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.689e-05/0.2674, allocations: 129 kB / 404.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002881/0.2677, allocations: 159.7 kB / 404.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008125/0.2759, allocations: 6.546 MB / 410.9 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.585e-05/0.276, allocations: 27.72 kB / 411 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002123/0.2762, allocations: 79.11 kB / 411 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002343/0.2785, allocations: 1.469 MB / 412.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009366/0.2879, allocations: 5.848 MB / 418.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02509/0.313, allocations: 25.76 MB / 444.1 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005074/0.3181, allocations: 2.587 MB / 446.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001383/0.3195, allocations: 1.215 MB / 447.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006215/0.3258, allocations: 4.798 MB / 452.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.3258, allocations: 38.56 kB / 452.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 2.645e-06/0.3258, allocations: 4 kB / 452.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02146/0.3473, allocations: 9.743 MB / 462.5 MB, free: 1.469 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.237e-05/0.3474, allocations: 141 kB / 462.6 MB, free: 1.301 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003311/0.3507, allocations: 2.714 MB / 465.3 MB, free: 14.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.35e-05/0.3508, allocations: 40.12 kB / 465.4 MB, free: 14.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001237/0.352, allocations: 2.041 MB / 467.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000339/0.3524, allocations: 432.6 kB / 467.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003925/0.3528, allocations: 354.7 kB / 468.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.362e-05/0.3528, allocations: 309.1 kB / 468.5 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001993/0.3548, allocations: 1.441 MB / 469.9 MB, free: 9.961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003497/0.3584, allocations: 4.057 MB / 474 MB, free: 4.586 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005957/0.3643, allocations: 5.942 MB / 479.9 MB, free: 13.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.301e-05/0.3644, allocations: 28 kB / 480 MB, free: 13.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.009883/0.3743, allocations: 6.002 MB / 486 MB, free: 7.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.977e-05/0.3744, allocations: 51.06 kB / 486 MB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.667e-05/0.3745, allocations: 96 kB / 486.1 MB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002189/0.3767, allocations: 0.8246 MB / 486.9 MB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002487/0.3792, allocations: 0.9435 MB / 487.9 MB, free: 5.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005055/0.3842, allocations: 4.344 MB / 492.2 MB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/0.3866, allocations: 247.5 kB / 492.5 MB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000319/0.3869, allocations: 263 kB / 492.7 MB, free: 428 kB / 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.001793/0.3887, allocations: 1.373 MB / 494.1 MB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003465/0.3891, allocations: 221.2 kB / 494.3 MB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004037/0.3931, allocations: 2.134 MB / 496.4 MB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.3932, allocations: 15.98 kB / 496.5 MB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3932, allocations: 4 kB / 496.5 MB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.3932, allocations: 11.92 kB / 496.5 MB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008045/0.4012, allocations: 5.071 MB / 0.4898 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.4013, allocations: 0 / 0.4898 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007054/0.402, allocations: 159.7 kB / 0.4899 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001977/0.404, allocations: 0.6834 MB / 0.4906 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-05/0.404, allocations: 19.98 kB / 0.4906 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004438/0.4085, allocations: 3.893 MB / 0.4944 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.4085, allocations: 8.016 kB / 0.4944 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00567/0.4142, allocations: 4.055 MB / 0.4984 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004203/0.4146, allocations: 286.1 kB / 0.4987 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000252/0.4149, allocations: 26.56 kB / 0.4987 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008893/0.4158, allocations: 67.89 kB / 0.4988 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.4159, allocations: 56.31 kB / 0.4988 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-05/0.416, allocations: 32.27 kB / 0.4988 GB, free: 14.04 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002237/0.4183, allocations: 1.693 MB / 0.5005 GB, free: 12.33 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4183, allocations: 0 / 0.5005 GB, free: 12.33 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002685/0.421, allocations: 0.6666 MB / 0.5011 GB, free: 11.67 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.006116/0.4271, allocations: 4.733 MB / 0.5058 GB, free: 6.902 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004529/0.4316, allocations: 3.464 MB / 0.5092 GB, free: 3.441 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4316, allocations: 0 / 0.5092 GB, free: 3.441 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001224/0.4329, allocations: 1.037 MB / 0.5102 GB, free: 2.395 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/0.4346, allocations: 244 kB / 0.5104 GB, free: 2.156 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1774/0.612, allocations: 33.17 MB / 0.5428 GB, free: 138.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00191/0.6139, allocations: 2.227 MB / 0.545 GB, free: 137.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002545/0.6165, allocations: 1.326 MB / 0.5463 GB, free: 137.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001/0.6175, allocations: 1.09 MB / 0.5473 GB, free: 136.7 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.6175, allocations: 0 / 0.5473 GB, free: 136.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04687/0.6643, allocations: 43.98 MB / 0.5903 GB, free: 99.45 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/0.6645, allocations: 256.5 kB / 0.5905 GB, free: 99.19 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.945/3.61, allocations: 0 / 0.5905 GB, free: 99.19 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