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.001673/0.001679, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002066/0.002066, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001755, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2664, allocations: 50.55 MB / 408.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009079/0.2755, allocations: 7.595 MB / 416.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006319/0.2819, allocations: 3.36 MB / 419.8 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008689/0.2828, allocations: 31.94 kB / 419.8 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00207/0.2849, allocations: 1.027 MB / 420.9 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003062/0.288, allocations: 1.312 MB / 422.2 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.2893, allocations: 0.5379 MB / 422.7 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003433/0.2927, allocations: 2.625 MB / 425.3 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001772/0.2945, allocations: 1.378 MB / 426.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0012/0.2957, allocations: 0.8251 MB / 427.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001486/0.2972, allocations: 1.141 MB / 428.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003263/0.2975, allocations: 148 kB / 428.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001701/0.2992, allocations: 0.8969 MB / 429.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009728/0.3002, allocations: 1.036 MB / 430.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001217/0.3015, allocations: 1.238 MB / 432 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005034/0.3065, allocations: 4.107 MB / 436.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3065, allocations: 3.938 kB / 436.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3065, allocations: 8 kB / 436.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.174e-05/0.3066, allocations: 0 / 436.1 MB, free: 6.086 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.005446/0.3121, allocations: 3.065 MB / 439.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.3121, allocations: 12.03 kB / 439.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005342/0.3127, allocations: 458.4 kB / 439.6 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005425/0.3181, allocations: 1.602 MB / 441.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003487/0.3216, allocations: 1.609 MB / 442.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.3218, allocations: 123 kB / 443 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003354/0.3221, allocations: 163.8 kB / 443.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/0.3322, allocations: 6.538 MB / 449.7 MB, free: 7.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.96e-05/0.3323, allocations: 23.81 kB / 449.7 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000242/0.3326, allocations: 83.89 kB / 449.8 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002545/0.3351, allocations: 1.468 MB / 451.2 MB, free: 6.355 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01072/0.3458, allocations: 5.838 MB / 457.1 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03024/0.3761, allocations: 25.69 MB / 482.8 MB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005688/0.3818, allocations: 2.561 MB / 485.3 MB, free: 3.352 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001656/0.3835, allocations: 1.211 MB / 486.5 MB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007455/0.391, allocations: 4.824 MB / 491.4 MB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.3911, allocations: 42.56 kB / 491.4 MB, free: 13.15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 5.78e-06/0.3911, allocations: 0 / 491.4 MB, free: 13.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.0242/0.4153, allocations: 9.928 MB / 0.4896 GB, free: 3.094 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.362e-05/0.4154, allocations: 137 kB / 0.4897 GB, free: 2.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003797/0.4192, allocations: 2.719 MB / 0.4924 GB, free: 196 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001608/0.4194, allocations: 37.64 kB / 0.4924 GB, free: 152 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001556/0.421, allocations: 2.128 MB / 0.4945 GB, free: 14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004942/0.4215, allocations: 452.6 kB / 0.4949 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001077/0.4225, allocations: 0.8338 MB / 0.4957 GB, free: 12.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4227, allocations: 305.1 kB / 0.496 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002272/0.425, allocations: 1.441 MB / 0.4974 GB, free: 10.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004699/0.4297, allocations: 4.065 MB / 0.5014 GB, free: 5.582 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007532/0.4372, allocations: 5.943 MB / 0.5072 GB, free: 14.33 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.842e-05/0.4373, allocations: 28 kB / 0.5072 GB, free: 14.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01143/0.4488, allocations: 6.023 MB / 0.5131 GB, free: 8.273 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.166e-05/0.4489, allocations: 48 kB / 0.5131 GB, free: 8.227 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.692e-05/0.449, allocations: 92 kB / 0.5132 GB, free: 8.137 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002404/0.4514, allocations: 0.8196 MB / 0.514 GB, free: 7.316 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002838/0.4542, allocations: 0.9475 MB / 0.515 GB, free: 6.367 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006316/0.4606, allocations: 4.652 MB / 0.5195 GB, free: 1.574 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002945/0.4635, allocations: 243.6 kB / 0.5197 GB, free: 1.336 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005234/0.4641, allocations: 260 kB / 0.52 GB, free: 1.082 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.002202/0.4663, allocations: 1.372 MB / 0.5213 GB, free: 15.69 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004542/0.4668, allocations: 242.3 kB / 0.5216 GB, free: 15.45 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004496/0.4713, allocations: 2.134 MB / 0.5236 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.627e-05/0.4713, allocations: 12 kB / 0.5236 GB, free: 13.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.4713, allocations: 4 kB / 0.5237 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.4713, allocations: 7.984 kB / 0.5237 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009597/0.481, allocations: 5.07 MB / 0.5286 GB, free: 8.141 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.481, allocations: 4.031 kB / 0.5286 GB, free: 8.137 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007685/0.4818, allocations: 155.8 kB / 0.5288 GB, free: 7.984 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002138/0.4839, allocations: 0.6833 MB / 0.5294 GB, free: 7.297 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.013e-05/0.484, allocations: 16 kB / 0.5294 GB, free: 7.281 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005965/0.49, allocations: 4.148 MB / 0.5335 GB, free: 2.992 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.49, allocations: 7.984 kB / 0.5335 GB, free: 2.984 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2178/0.7079, allocations: 4.063 MB / 0.5375 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007155/0.7086, allocations: 295.6 kB / 0.5378 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003377/0.709, allocations: 13.5 kB / 0.5378 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.7101, allocations: 76.05 kB / 0.5378 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/0.7103, allocations: 54.91 kB / 0.5379 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.7104, allocations: 30.22 kB / 0.5379 GB, free: 124.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002715/0.7132, allocations: 1.697 MB / 0.5396 GB, free: 123.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7132, allocations: 0 / 0.5396 GB, free: 123.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00295/0.7161, allocations: 0.6622 MB / 0.5402 GB, free: 123.7 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.005657/0.7218, allocations: 4.745 MB / 0.5449 GB, free: 121.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004549/0.7264, allocations: 3.47 MB / 0.5482 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.7264, allocations: 3.938 kB / 0.5482 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.7275, allocations: 1.043 MB / 0.5493 GB, free: 120.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.7291, allocations: 260.8 kB / 0.5495 GB, free: 120.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03032/0.7594, allocations: 29.92 MB / 0.5787 GB, free: 89.86 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001555/0.761, allocations: 2.23 MB / 0.5809 GB, free: 87.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002225/0.7632, allocations: 1.313 MB / 0.5822 GB, free: 86.28 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009943/0.7642, allocations: 1.097 MB / 0.5833 GB, free: 85.19 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.7642, allocations: 0 / 0.5833 GB, free: 85.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1049/0.8692, allocations: 44.7 MB / 0.6269 GB, free: 40.78 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.08/17.95, allocations: 0 / 0.6269 GB, free: 40.78 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.1.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