Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.001355/0.001355, allocations: 112.3 kB / 20.22 MB, free: 1.793 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.00142/0.00142, allocations: 215.5 kB / 23.48 MB, free: 5.227 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.449/1.449, allocations: 230.4 MB / 257 MB, free: 8.258 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.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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.001895/0.001895, allocations: 67.89 kB / 377.1 MB, free: 3.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2955, allocations: 53.32 MB / 430.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004724/0.3002, allocations: 2.891 MB / 433.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002655/0.3028, allocations: 1.291 MB / 434.6 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002632/0.3031, allocations: 4 kB / 434.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004108/0.3035, allocations: 87.23 kB / 434.6 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006707/0.3042, allocations: 223.6 kB / 434.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006337/0.3048, allocations: 251.5 kB / 435.1 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000839/0.3057, allocations: 0.7095 MB / 435.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000213/0.3059, allocations: 91.44 kB / 435.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005296/0.3064, allocations: 331 kB / 436.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005269/0.3069, allocations: 382.8 kB / 436.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001389/0.3071, allocations: 63.94 kB / 436.7 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003876/0.3074, allocations: 159.9 kB / 436.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002332/0.3077, allocations: 159.6 kB / 437 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003106/0.308, allocations: 278.6 kB / 437.3 MB, free: 348 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.309, allocations: 0.7127 MB / 438 MB, free: 15.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3091, allocations: 0 / 438 MB, free: 15.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3091, allocations: 0 / 438 MB, free: 15.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.3091, allocations: 0 / 438 MB, free: 15.63 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.00181/0.3109, allocations: 0.8608 MB / 438.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.3109, allocations: 8.031 kB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001333/0.3111, allocations: 82.72 kB / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004537/0.3115, allocations: 76.62 kB / 439 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007262/0.3122, allocations: 374.5 kB / 439.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000152/0.3124, allocations: 101 kB / 439.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.3125, allocations: 40.33 kB / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.3137, allocations: 0.5643 MB / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.3137, allocations: 0 / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.3137, allocations: 16 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.3137, allocations: 8 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.3151, allocations: 0.6128 MB / 440.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002704/0.3178, allocations: 1.303 MB / 442 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.3191, allocations: 0.4999 MB / 442.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006347/0.3197, allocations: 282.4 kB / 442.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.694e-05/0.3197, allocations: 8.547 kB / 442.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.3198, allocations: 43.12 kB / 442.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.043e-06/0.3198, allocations: 0 / 442.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007115/0.3269, allocations: 2.735 MB / 445.6 MB, free: 7.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.327, allocations: 93.61 kB / 445.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005011/0.3275, allocations: 347.3 kB / 446 MB, free: 7.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.379e-05/0.3275, allocations: 45.7 kB / 446 MB, free: 7.207 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.3277, allocations: 169.7 kB / 446.2 MB, free: 7.035 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002328/0.3279, allocations: 238 kB / 446.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.3282, allocations: 130.2 kB / 446.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.3284, allocations: 346.8 kB / 446.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006148/0.329, allocations: 277.1 kB / 447.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006668/0.3296, allocations: 330.5 kB / 447.5 MB, free: 5.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.3307, allocations: 487.2 kB / 448 MB, free: 5.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3307, allocations: 4.031 kB / 448 MB, free: 5.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001812/0.3325, allocations: 0.8219 MB / 448.8 MB, free: 4.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.3325, allocations: 7.938 kB / 448.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3325, allocations: 0 / 448.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.3337, allocations: 445.9 kB / 449.2 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003853/0.3341, allocations: 87.88 kB / 449.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001426/0.3355, allocations: 1.029 MB / 450.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004921/0.336, allocations: 56 kB / 450.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.882e-05/0.336, allocations: 31.98 kB / 450.4 MB, free: 2.723 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002787/0.3363, allocations: 177.8 kB / 450.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.3364, allocations: 47.72 kB / 450.7 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000173/0.3366, allocations: 71.86 kB / 450.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.3366, allocations: 4 kB / 450.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.3366, allocations: 4 kB / 450.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3366, allocations: 3.984 kB / 450.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003368/0.34, allocations: 1.69 MB / 452.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.34, allocations: 0 / 452.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003876/0.3404, allocations: 79.88 kB / 452.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.3414, allocations: 424.5 kB / 452.9 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.757e-05/0.3415, allocations: 19.98 kB / 452.9 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001349/0.3428, allocations: 0.9745 MB / 453.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3428, allocations: 0 / 453.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002681/0.3455, allocations: 1.209 MB / 455.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000357/0.3459, allocations: 188.7 kB / 455.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.346, allocations: 24.06 kB / 455.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004581/0.3464, allocations: 51.92 kB / 455.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/0.3467, allocations: 92.36 kB / 455.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-05/0.3467, allocations: 35.91 kB / 455.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003584/0.3471, allocations: 249.9 kB / 455.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3471, allocations: 0 / 455.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005827/0.3477, allocations: 143.9 kB / 455.9 MB, free: 13.12 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004319/0.352, allocations: 2.037 MB / 457.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.3537, allocations: 0.6338 MB / 458.6 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3537, allocations: 3.938 kB / 458.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008783/0.3546, allocations: 340 kB / 458.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006066/0.3552, allocations: 68.53 kB / 459 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009239/0.3644, allocations: 4.865 MB / 463.8 MB, free: 5.184 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004949/0.3649, allocations: 0.8251 MB / 464.7 MB, free: 4.328 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003144/0.3652, allocations: 87.36 kB / 464.7 MB, free: 4.242 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002777/0.3655, allocations: 143.3 kB / 464.9 MB, free: 4.102 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3655, allocations: 0 / 464.9 MB, free: 4.102 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04783/0.4133, allocations: 14.74 MB / 479.6 MB, free: 5.441 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.72, allocations: 5.781 kB / 479.6 MB, free: 5.441 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.127387468935922] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'bearingFriction.mode', 'bearingFriction.startBackward', 'bearingFriction.startForward', 'gear.mode'] 12.872409602859989 12.890457718 12.576931435 Calling exit ...