Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0008276/0.0008275, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.198/1.198, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007474/0.0007474, allocations: 98.33 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002782/0.0002782, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.1982, allocations: 47.58 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01167/0.2099, allocations: 16.34 MB / 391.5 MB, free: 32.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007423/0.2174, allocations: 4.684 MB / 396.2 MB, free: 27.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003427/0.2209, allocations: 71.81 kB / 396.3 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00223/0.2231, allocations: 0.7932 MB / 397.1 MB, free: 26.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005285/0.2284, allocations: 2.654 MB / 399.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.2297, allocations: 0.4991 MB / 400.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002666/0.2324, allocations: 2.859 MB / 403.1 MB, free: 20.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002152/0.2345, allocations: 1.686 MB / 404.8 MB, free: 19.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00123/0.2358, allocations: 0.7627 MB / 405.5 MB, free: 18.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001495/0.2373, allocations: 1.172 MB / 406.7 MB, free: 17.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004369/0.2377, allocations: 80 kB / 406.8 MB, free: 16.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001487/0.2392, allocations: 0.8696 MB / 407.7 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008467/0.2401, allocations: 0.9855 MB / 408.6 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008054/0.2409, allocations: 1.143 MB / 409.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002143/0.2431, allocations: 3.092 MB / 412.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2431, allocations: 0 / 412.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2431, allocations: 0 / 412.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.004e-05/0.2431, allocations: 0 / 412.9 MB, free: 10.88 MB / 298.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.003212/0.2463, allocations: 2.512 MB / 415.4 MB, free: 8.305 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.2464, allocations: 12.03 kB / 415.4 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003798/0.2468, allocations: 454.4 kB / 415.8 MB, free: 7.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004499/0.2513, allocations: 1.631 MB / 417.5 MB, free: 6.203 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002237/0.2535, allocations: 1.839 MB / 419.3 MB, free: 4.316 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.408e-05/0.2536, allocations: 134.9 kB / 419.5 MB, free: 4.184 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002502/0.2539, allocations: 163.8 kB / 419.6 MB, free: 4.023 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007034/0.2609, allocations: 6.534 MB / 426.1 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.855e-05/0.261, allocations: 31.73 kB / 426.2 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002056/0.2612, allocations: 83.89 kB / 426.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002288/0.2635, allocations: 1.464 MB / 427.7 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008597/0.2721, allocations: 5.814 MB / 433.5 MB, free: 5.609 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02471/0.2968, allocations: 25.78 MB / 459.3 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004997/0.3019, allocations: 2.576 MB / 461.9 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.3032, allocations: 1.215 MB / 463.1 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006428/0.3097, allocations: 4.799 MB / 467.9 MB, free: 2.207 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.3097, allocations: 42.5 kB / 468 MB, free: 2.156 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 4.408e-06/0.3097, allocations: 4 kB / 468 MB, free: 2.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.02221/0.332, allocations: 9.8 MB / 477.8 MB, free: 8.207 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/0.3321, allocations: 148.9 kB / 477.9 MB, free: 8.031 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003692/0.3358, allocations: 2.715 MB / 480.6 MB, free: 5.297 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.769e-05/0.3359, allocations: 41.7 kB / 480.7 MB, free: 5.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001383/0.3373, allocations: 2.056 MB / 482.7 MB, free: 3.164 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003903/0.3377, allocations: 430.6 kB / 483.1 MB, free: 2.738 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001932/0.3379, allocations: 80 kB / 483.2 MB, free: 2.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002908/0.3382, allocations: 487 kB / 483.7 MB, free: 2.176 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002127/0.3403, allocations: 1.421 MB / 485.1 MB, free: 0.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003726/0.344, allocations: 4.045 MB / 489.2 MB, free: 11.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005879/0.3499, allocations: 5.928 MB / 495.1 MB, free: 4.152 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.89e-05/0.35, allocations: 24 kB / 495.1 MB, free: 4.129 MB / 378.7 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.009922/0.3599, allocations: 5.985 MB / 0.4893 GB, free: 14.14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.993e-05/0.36, allocations: 44 kB / 0.4894 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001175/0.3601, allocations: 92 kB / 0.4895 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002312/0.3625, allocations: 0.8168 MB / 0.4903 GB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002583/0.3651, allocations: 0.9396 MB / 0.4912 GB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0054/0.3705, allocations: 4.347 MB / 0.4954 GB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002513/0.373, allocations: 243.6 kB / 0.4957 GB, free: 7.523 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000391/0.3734, allocations: 263.9 kB / 0.4959 GB, free: 7.266 MB / 394.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.001926/0.3753, allocations: 1.385 MB / 0.4973 GB, free: 5.867 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003895/0.3757, allocations: 229 kB / 0.4975 GB, free: 5.641 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004104/0.3798, allocations: 2.122 MB / 0.4996 GB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/0.3799, allocations: 12 kB / 0.4996 GB, free: 3.484 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.3799, allocations: 7.938 kB / 0.4996 GB, free: 3.477 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.198e-06/0.3799, allocations: 3.984 kB / 0.4996 GB, free: 3.473 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1637/0.5436, allocations: 5.075 MB / 0.5045 GB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/0.5437, allocations: 3.531 kB / 0.5045 GB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007687/0.5444, allocations: 156.9 kB / 0.5047 GB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001959/0.5464, allocations: 0.6839 MB / 0.5054 GB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001292/0.5466, allocations: 19.3 kB / 0.5054 GB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004847/0.5514, allocations: 3.881 MB / 0.5092 GB, free: 119.6 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.5514, allocations: 4.812 kB / 0.5092 GB, free: 119.6 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006176/0.5576, allocations: 4.051 MB / 0.5131 GB, free: 118.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009385/0.5586, allocations: 458.7 kB / 0.5136 GB, free: 118.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004673/0.559, allocations: 14.03 kB / 0.5136 GB, free: 118.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.5602, allocations: 75.66 kB / 0.5137 GB, free: 118 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002596/0.5604, allocations: 62 kB / 0.5137 GB, free: 118 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.056e-05/0.5605, allocations: 29.3 kB / 0.5137 GB, free: 118 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002902/0.5634, allocations: 1.695 MB / 0.5154 GB, free: 117.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5635, allocations: 0 / 0.5154 GB, free: 117.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003014/0.5665, allocations: 0.6713 MB / 0.5161 GB, free: 117.4 MB / 394.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.006137/0.5726, allocations: 4.731 MB / 0.5207 GB, free: 115.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004469/0.5771, allocations: 3.447 MB / 0.524 GB, free: 112.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.5772, allocations: 0 / 0.524 GB, free: 112.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.5782, allocations: 1.037 MB / 0.5251 GB, free: 111.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.5804, allocations: 242.1 kB / 0.5253 GB, free: 111.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02903/0.6094, allocations: 21.6 MB / 0.5464 GB, free: 87.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002068/0.6115, allocations: 2.247 MB / 0.5486 GB, free: 85.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/0.6128, allocations: 1.132 MB / 0.5497 GB, free: 84.38 MB / 394.7 MB Notification: Performance of SimCode: time 1.503e-06/0.6129, allocations: 4 kB / 0.5497 GB, free: 84.38 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.227/5.84, allocations: 57.95 MB / 0.6063 GB, free: 26.36 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches