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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 114 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 213.4 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 59.91 kB / 377.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2509, allocations: 53.4 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.00978/0.2607, allocations: 7.66 MB / 438.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007183/0.2679, allocations: 3.399 MB / 442.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.2691, allocations: 43.81 kB / 442.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003015/0.2721, allocations: 1.051 MB / 443.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003538/0.2756, allocations: 1.343 MB / 444.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00167/0.2773, allocations: 0.5379 MB / 445.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004005/0.2813, allocations: 2.629 MB / 447.9 MB, free: 5.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001931/0.2832, allocations: 1.224 MB / 449.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001848/0.2851, allocations: 0.8368 MB / 449.9 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001944/0.287, allocations: 1.258 MB / 451.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004958/0.2875, allocations: 148 kB / 451.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001946/0.2894, allocations: 0.932 MB / 452.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001679/0.2911, allocations: 1.075 MB / 453.3 MB, free: 468 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.2929, allocations: 1.242 MB / 454.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005641/0.2986, allocations: 4.101 MB / 458.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2986, allocations: 0 / 458.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2986, allocations: 4 kB / 458.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001135/0.2987, allocations: 0 / 458.7 MB, free: 11.09 MB / 366.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.00663/0.3053, allocations: 3.005 MB / 461.7 MB, free: 8.035 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.3053, allocations: 8.031 kB / 461.7 MB, free: 8.027 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007016/0.3061, allocations: 454.5 kB / 462.1 MB, free: 7.574 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005875/0.3119, allocations: 1.602 MB / 463.7 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003667/0.3156, allocations: 1.547 MB / 465.3 MB, free: 4.387 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.3157, allocations: 127 kB / 465.4 MB, free: 4.262 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004119/0.3161, allocations: 163.9 kB / 465.6 MB, free: 4.102 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01061/0.3267, allocations: 6.538 MB / 472.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.418e-05/0.3268, allocations: 27.75 kB / 472.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002642/0.3271, allocations: 79.89 kB / 472.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002465/0.3295, allocations: 1.472 MB / 473.7 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01075/0.3403, allocations: 5.837 MB / 479.5 MB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03296/0.3733, allocations: 25.61 MB / 0.4933 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005624/0.3789, allocations: 2.024 MB / 0.4953 GB, free: 9.223 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001799/0.3807, allocations: 1.132 MB / 0.4964 GB, free: 8.082 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008037/0.3887, allocations: 4.541 MB / 0.5008 GB, free: 3.512 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.3888, allocations: 50.5 kB / 0.5008 GB, free: 3.453 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.286e-06/0.3888, allocations: 0 / 0.5008 GB, free: 3.453 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02465/0.4134, allocations: 9.686 MB / 0.5103 GB, free: 9.691 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.4135, allocations: 148.8 kB / 0.5104 GB, free: 9.516 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004315/0.4178, allocations: 2.719 MB / 0.5131 GB, free: 6.777 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001538/0.418, allocations: 37.7 kB / 0.5131 GB, free: 6.734 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001919/0.4199, allocations: 2.128 MB / 0.5152 GB, free: 4.586 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004994/0.4204, allocations: 452.6 kB / 0.5156 GB, free: 4.141 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001179/0.4216, allocations: 0.8377 MB / 0.5165 GB, free: 3.293 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.4217, allocations: 301.1 kB / 0.5167 GB, free: 2.996 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00233/0.424, allocations: 1.437 MB / 0.5182 GB, free: 1.555 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00472/0.4288, allocations: 4.065 MB / 0.5221 GB, free: 12.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007465/0.4362, allocations: 5.954 MB / 0.5279 GB, free: 4.914 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-05/0.4363, allocations: 28 kB / 0.528 GB, free: 4.887 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01196/0.4482, allocations: 6.018 MB / 0.5338 GB, free: 14.86 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.507e-05/0.4483, allocations: 44 kB / 0.5339 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001243/0.4485, allocations: 96 kB / 0.534 GB, free: 14.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002662/0.4511, allocations: 0.8084 MB / 0.5348 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002939/0.4541, allocations: 0.9514 MB / 0.5357 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00674/0.4608, allocations: 4.556 MB / 0.5401 GB, free: 8.289 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002693/0.4635, allocations: 235.7 kB / 0.5404 GB, free: 8.059 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005248/0.464, allocations: 260 kB / 0.5406 GB, free: 7.805 MB / 462.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.002528/0.4665, allocations: 1.372 MB / 0.542 GB, free: 6.422 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004683/0.467, allocations: 238.3 kB / 0.5422 GB, free: 6.188 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004728/0.4717, allocations: 2.122 MB / 0.5443 GB, free: 4.055 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.58e-05/0.4718, allocations: 12 kB / 0.5443 GB, free: 4.043 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.4718, allocations: 4 kB / 0.5443 GB, free: 4.039 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.4718, allocations: 3.984 kB / 0.5443 GB, free: 4.035 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1945/0.6663, allocations: 5.035 MB / 0.5492 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/0.6663, allocations: 4.781 kB / 0.5492 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008338/0.6671, allocations: 158.7 kB / 0.5493 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002187/0.6693, allocations: 0.6785 MB / 0.55 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001177/0.6694, allocations: 19.03 kB / 0.55 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004364/0.6738, allocations: 4.051 MB / 0.554 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.6738, allocations: 1.5 kB / 0.554 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005832/0.6796, allocations: 4.056 MB / 0.5579 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000496/0.6801, allocations: 218.1 kB / 0.5582 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005729/0.6807, allocations: 17.84 kB / 0.5582 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009614/0.6817, allocations: 73.53 kB / 0.5582 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.6818, allocations: 60.92 kB / 0.5583 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.026e-05/0.6819, allocations: 36.91 kB / 0.5583 GB, free: 110.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001947/0.6839, allocations: 1.69 MB / 0.56 GB, free: 110.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6839, allocations: 1.094 kB / 0.56 GB, free: 110.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002655/0.6865, allocations: 0.6634 MB / 0.5606 GB, free: 110.2 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.005567/0.6921, allocations: 4.745 MB / 0.5653 GB, free: 108.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004168/0.6962, allocations: 3.338 MB / 0.5685 GB, free: 106.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/0.6963, allocations: 192 / 0.5685 GB, free: 106.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009984/0.6972, allocations: 0.9667 MB / 0.5695 GB, free: 105.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001808/0.6991, allocations: 262.9 kB / 0.5697 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03272/0.7318, allocations: 29.95 MB / 0.599 GB, free: 71.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001719/0.7335, allocations: 2.232 MB / 0.6011 GB, free: 69.65 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00265/0.7361, allocations: 1.322 MB / 0.6024 GB, free: 68.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001059/0.7372, allocations: 1.097 MB / 0.6035 GB, free: 67.23 MB / 462.1 MB Notification: Performance of SimCode: time 1.453e-06/0.7372, allocations: 3.938 kB / 0.6035 GB, free: 67.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09052/0.8277, allocations: 48.32 MB / 0.6507 GB, free: 19.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.81/19.64, allocations: 10.58 kB / 0.6507 GB, free: 19.11 MB / 462.1 MB " [Timeout remaining time 640] (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 --stepSize=0.0019992 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.41933485912159]