Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009185/0.0009184, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.183/1.183, allocations: 226.5 MB / 244.7 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007603/0.0007603, allocations: 92.09 kB / 296.7 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002017/0.0002018, allocations: 8 kB / 356.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1729, allocations: 51.28 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009967/0.1829, allocations: 16.29 MB / 424.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006686/0.1896, allocations: 4.766 MB / 429.2 MB, free: 6.582 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001619/0.1913, allocations: 71.81 kB / 429.3 MB, free: 6.512 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00115/0.1924, allocations: 0.7892 MB / 430 MB, free: 5.719 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003957/0.1964, allocations: 2.662 MB / 432.7 MB, free: 3.047 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008586/0.1973, allocations: 0.4913 MB / 433.2 MB, free: 2.555 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002212/0.1995, allocations: 2.886 MB / 436.1 MB, free: 15.66 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001806/0.2013, allocations: 1.677 MB / 437.8 MB, free: 13.94 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007988/0.2021, allocations: 0.7589 MB / 438.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001106/0.2032, allocations: 1.16 MB / 439.7 MB, free: 12.01 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001753/0.2034, allocations: 84 kB / 439.8 MB, free: 11.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001301/0.2047, allocations: 0.8657 MB / 440.6 MB, free: 11.06 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000711/0.2054, allocations: 0.9856 MB / 441.6 MB, free: 10.07 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008317/0.2063, allocations: 1.135 MB / 442.7 MB, free: 8.926 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002425/0.2087, allocations: 3.084 MB / 445.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2087, allocations: 0 / 445.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2087, allocations: 0 / 445.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.254e-05/0.2088, allocations: 4 kB / 445.8 MB, free: 5.832 MB / 314.7 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.003684/0.2125, allocations: 2.512 MB / 448.3 MB, free: 3.262 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2125, allocations: 8.031 kB / 448.4 MB, free: 3.254 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004386/0.213, allocations: 470.4 kB / 448.8 MB, free: 2.785 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004836/0.2178, allocations: 1.619 MB / 450.4 MB, free: 1.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002403/0.2202, allocations: 1.598 MB / 452 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.618e-05/0.2203, allocations: 127 kB / 452.2 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002761/0.2206, allocations: 163.8 kB / 452.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00794/0.2286, allocations: 6.53 MB / 458.8 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.524e-05/0.2286, allocations: 27.81 kB / 458.9 MB, free: 8.188 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002081/0.2289, allocations: 79.89 kB / 458.9 MB, free: 8.109 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002237/0.2311, allocations: 1.472 MB / 460.4 MB, free: 6.641 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008857/0.24, allocations: 5.806 MB / 466.2 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02496/0.265, allocations: 25.77 MB / 492 MB, free: 6.301 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005042/0.27, allocations: 2.587 MB / 494.6 MB, free: 3.566 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.2715, allocations: 1.211 MB / 495.8 MB, free: 2.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006776/0.2783, allocations: 4.791 MB / 0.4889 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.2783, allocations: 42.56 kB / 0.4889 GB, free: 13.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=97): time 3.155e-06/0.2784, allocations: 3.938 kB / 0.4889 GB, free: 13.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.02219/0.3005, allocations: 9.755 MB / 0.4984 GB, free: 3.496 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.365e-05/0.3007, allocations: 137 kB / 0.4986 GB, free: 3.332 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003914/0.3046, allocations: 2.703 MB / 0.5012 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001783/0.3048, allocations: 41.7 kB / 0.5012 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1535/0.4583, allocations: 2.042 MB / 0.5032 GB, free: 93.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006865/0.459, allocations: 427.8 kB / 0.5036 GB, free: 93.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004373/0.4594, allocations: 79.84 kB / 0.5037 GB, free: 93.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003737/0.4598, allocations: 492.9 kB / 0.5042 GB, free: 93.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002728/0.4626, allocations: 1.424 MB / 0.5056 GB, free: 92.76 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003162/0.4658, allocations: 4.045 MB / 0.5095 GB, free: 88.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005376/0.4711, allocations: 5.931 MB / 0.5153 GB, free: 83.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-05/0.4712, allocations: 31.72 kB / 0.5153 GB, free: 83.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.009352/0.4806, allocations: 5.968 MB / 0.5212 GB, free: 81.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.246e-05/0.4807, allocations: 46.41 kB / 0.5212 GB, free: 81.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001059/0.4808, allocations: 93.09 kB / 0.5213 GB, free: 81.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002052/0.4829, allocations: 0.8201 MB / 0.5221 GB, free: 81.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002394/0.4853, allocations: 0.9451 MB / 0.523 GB, free: 80.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00434/0.4896, allocations: 4.335 MB / 0.5273 GB, free: 75.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002522/0.4922, allocations: 249.6 kB / 0.5275 GB, free: 75.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003676/0.4925, allocations: 260 kB / 0.5277 GB, free: 75.45 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001689/0.4942, allocations: 1.382 MB / 0.5291 GB, free: 74.06 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003554/0.4946, allocations: 221.1 kB / 0.5293 GB, free: 73.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003612/0.4982, allocations: 2.126 MB / 0.5314 GB, free: 71.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.976e-05/0.4983, allocations: 12.75 kB / 0.5314 GB, free: 71.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.4983, allocations: 7.984 kB / 0.5314 GB, free: 71.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.4983, allocations: 3.984 kB / 0.5314 GB, free: 71.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007791/0.5061, allocations: 5.071 MB / 0.5364 GB, free: 66.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.5061, allocations: 0 / 0.5364 GB, free: 66.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007119/0.5069, allocations: 159.7 kB / 0.5365 GB, free: 66.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001885/0.5088, allocations: 0.6848 MB / 0.5372 GB, free: 65.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.5089, allocations: 16 kB / 0.5372 GB, free: 65.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003896/0.5128, allocations: 3.9 MB / 0.541 GB, free: 61.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.5128, allocations: 4.031 kB / 0.541 GB, free: 61.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005166/0.518, allocations: 4.046 MB / 0.545 GB, free: 57.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005582/0.5186, allocations: 290 kB / 0.5452 GB, free: 57.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003786/0.5189, allocations: 27.98 kB / 0.5453 GB, free: 57.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.52, allocations: 71.89 kB / 0.5453 GB, free: 57.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002573/0.5203, allocations: 52.38 kB / 0.5454 GB, free: 57.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.18e-05/0.5204, allocations: 31.98 kB / 0.5454 GB, free: 57.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002243/0.5226, allocations: 1.678 MB / 0.547 GB, free: 55.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5226, allocations: 0 / 0.547 GB, free: 55.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002827/0.5255, allocations: 0.6799 MB / 0.5477 GB, free: 54.76 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00547/0.531, allocations: 4.723 MB / 0.5523 GB, free: 50 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00442/0.5354, allocations: 3.452 MB / 0.5557 GB, free: 46.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.5354, allocations: 3.938 kB / 0.5557 GB, free: 46.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.5365, allocations: 1.032 MB / 0.5567 GB, free: 45.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002119/0.5387, allocations: 255.3 kB / 0.557 GB, free: 45.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0289/0.5676, allocations: 21.52 MB / 0.578 GB, free: 21.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001504/0.5691, allocations: 2.238 MB / 0.5802 GB, free: 19.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/0.5703, allocations: 1.132 MB / 0.5813 GB, free: 17.92 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5704, allocations: 0 / 0.5813 GB, free: 17.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.358/5.928, allocations: 57.87 MB / 0.6378 GB, free: 8.074 MB / 426.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches