Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001699/0.001699, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002115/0.002115, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.453/1.453, allocations: 230.6 MB / 258.3 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002118/0.002118, allocations: 68.75 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2677, allocations: 53.36 MB / 431.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009926/0.2776, allocations: 7.653 MB / 439.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007169/0.2848, allocations: 3.399 MB / 443 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00145/0.2862, allocations: 43.81 kB / 443 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002547/0.2888, allocations: 1.059 MB / 444.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004027/0.2928, allocations: 1.347 MB / 445.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001465/0.2943, allocations: 0.5379 MB / 446 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004267/0.2985, allocations: 2.625 MB / 448.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001766/0.3003, allocations: 1.218 MB / 449.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001437/0.3017, allocations: 0.8407 MB / 450.7 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001757/0.3035, allocations: 1.261 MB / 451.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00037/0.3039, allocations: 144 kB / 452.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002021/0.3059, allocations: 0.932 MB / 453 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001204/0.3071, allocations: 1.075 MB / 454.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001616/0.3087, allocations: 1.234 MB / 455.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005377/0.3141, allocations: 4.111 MB / 459.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3141, allocations: 3.938 kB / 459.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3141, allocations: 0 / 459.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.799e-05/0.3142, allocations: 0 / 459.4 MB, free: 11.27 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.006169/0.3203, allocations: 3.001 MB / 462.4 MB, free: 8.227 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.3204, allocations: 8.031 kB / 462.4 MB, free: 8.219 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006932/0.3211, allocations: 462.4 kB / 462.9 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005399/0.3265, allocations: 1.598 MB / 464.5 MB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00353/0.33, allocations: 1.547 MB / 466 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.3301, allocations: 127 kB / 466.1 MB, free: 4.453 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005413/0.3307, allocations: 159.9 kB / 466.3 MB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01112/0.3418, allocations: 6.542 MB / 472.8 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.491e-05/0.3419, allocations: 27.75 kB / 472.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002518/0.3421, allocations: 79.89 kB / 472.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002501/0.3446, allocations: 1.468 MB / 474.4 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01139/0.356, allocations: 5.83 MB / 480.2 MB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03263/0.3886, allocations: 25.62 MB / 0.494 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00549/0.3941, allocations: 2.028 MB / 0.496 GB, free: 9.406 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001714/0.3959, allocations: 1.129 MB / 0.4971 GB, free: 8.266 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008131/0.404, allocations: 4.541 MB / 0.5015 GB, free: 3.695 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.273e-05/0.404, allocations: 42.5 kB / 0.5016 GB, free: 3.645 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.968e-06/0.404, allocations: 0 / 0.5016 GB, free: 3.645 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02498/0.429, allocations: 9.695 MB / 0.511 GB, free: 9.875 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.231e-05/0.4291, allocations: 152.9 kB / 0.5112 GB, free: 9.695 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003803/0.4329, allocations: 2.711 MB / 0.5138 GB, free: 6.965 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002287/0.4331, allocations: 37.7 kB / 0.5139 GB, free: 6.922 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001658/0.4348, allocations: 2.132 MB / 0.5159 GB, free: 4.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005609/0.4354, allocations: 452.6 kB / 0.5164 GB, free: 4.324 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001163/0.4365, allocations: 0.834 MB / 0.5172 GB, free: 3.48 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.4367, allocations: 305.1 kB / 0.5175 GB, free: 3.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002335/0.439, allocations: 1.437 MB / 0.5189 GB, free: 1.738 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004615/0.4436, allocations: 4.065 MB / 0.5228 GB, free: 12.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008478/0.4521, allocations: 5.948 MB / 0.5287 GB, free: 5.102 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.617e-05/0.4522, allocations: 24 kB / 0.5287 GB, free: 5.078 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01231/0.4645, allocations: 6.017 MB / 0.5346 GB, free: 15.05 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.641e-05/0.4646, allocations: 44 kB / 0.5346 GB, free: 15.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001127/0.4647, allocations: 96 kB / 0.5347 GB, free: 14.92 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002408/0.4671, allocations: 0.8166 MB / 0.5355 GB, free: 14.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003137/0.4702, allocations: 0.9396 MB / 0.5364 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008111/0.4783, allocations: 4.572 MB / 0.5409 GB, free: 8.477 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003158/0.4815, allocations: 231.7 kB / 0.5411 GB, free: 8.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005663/0.482, allocations: 260 kB / 0.5413 GB, free: 7.996 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.00233/0.4844, allocations: 1.372 MB / 0.5427 GB, free: 6.613 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004793/0.4849, allocations: 242.3 kB / 0.5429 GB, free: 6.375 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004478/0.4893, allocations: 2.118 MB / 0.545 GB, free: 4.246 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.07e-05/0.4894, allocations: 16 kB / 0.545 GB, free: 4.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.4894, allocations: 4 kB / 0.545 GB, free: 4.227 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.4894, allocations: 3.984 kB / 0.545 GB, free: 4.223 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2287/0.7181, allocations: 5.037 MB / 0.5499 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.312e-05/0.7181, allocations: 0 / 0.5499 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009983/0.7191, allocations: 155.4 kB / 0.5501 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00224/0.7214, allocations: 0.6807 MB / 0.5507 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001668/0.7215, allocations: 17.5 kB / 0.5507 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004858/0.7264, allocations: 4.061 MB / 0.5547 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.7264, allocations: 1.781 kB / 0.5547 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00564/0.732, allocations: 4.059 MB / 0.5587 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005537/0.7326, allocations: 222 kB / 0.5589 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002714/0.7329, allocations: 11.94 kB / 0.5589 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008982/0.7338, allocations: 74.78 kB / 0.559 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.7339, allocations: 56.61 kB / 0.559 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.267e-05/0.734, allocations: 37.83 kB / 0.5591 GB, free: 111.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002169/0.7362, allocations: 1.692 MB / 0.5607 GB, free: 110.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7362, allocations: 3.781 kB / 0.5607 GB, free: 110.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0031/0.7393, allocations: 0.6656 MB / 0.5614 GB, free: 110.4 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.005834/0.7451, allocations: 4.726 MB / 0.566 GB, free: 108.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004653/0.7498, allocations: 3.339 MB / 0.5692 GB, free: 106.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.7498, allocations: 0 / 0.5692 GB, free: 106.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.7509, allocations: 0.9701 MB / 0.5702 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001624/0.7525, allocations: 254 kB / 0.5704 GB, free: 105.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03434/0.7869, allocations: 29.95 MB / 0.5997 GB, free: 72.37 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001593/0.7884, allocations: 2.229 MB / 0.6019 GB, free: 70.11 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002243/0.7907, allocations: 1.325 MB / 0.6032 GB, free: 68.79 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/0.7917, allocations: 1.105 MB / 0.6042 GB, free: 67.69 MB / 462.1 MB Notification: Performance of SimCode: time 1.173e-06/0.7917, allocations: 0 / 0.6042 GB, free: 67.69 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07866/0.8704, allocations: 48.28 MB / 0.6514 GB, free: 19.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.83/18.7, allocations: 3.938 kB / 0.6514 GB, free: 19.68 MB / 462.1 MB " [Timeout remaining time 641] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-08 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.1401108042337] Failed to read output from testmodel.py, exit status != 0: ['time', 'rev.phi', 'rev.w'] 18.813694830983877 18.822777308 18.506101716 Calling exit ...