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.001327/0.001327, allocations: 117.8 kB / 18.5 MB, free: 4.434 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.001443/0.001443, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.426/1.426, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.001909/0.001909, allocations: 67.89 kB / 373.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1156, allocations: 53.32 MB / 426.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00741/0.123, allocations: 2.873 MB / 429.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003811/0.1268, allocations: 1.275 MB / 431 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003039/0.1271, allocations: 15.94 kB / 431 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000488/0.1276, allocations: 83.28 kB / 431.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009261/0.1285, allocations: 211.6 kB / 431.3 MB, free: 388 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008584/0.1294, allocations: 255.5 kB / 431.6 MB, free: 132 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2202/0.3496, allocations: 0.7073 MB / 432.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.3498, allocations: 83.95 kB / 432.4 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006141/0.3504, allocations: 325.3 kB / 432.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005044/0.3509, allocations: 390.1 kB / 433.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.351, allocations: 59.5 kB / 433.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003088/0.3513, allocations: 158.1 kB / 433.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001607/0.3515, allocations: 164.8 kB / 433.4 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002122/0.3517, allocations: 267.2 kB / 433.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008002/0.3525, allocations: 0.7173 MB / 434.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3525, allocations: 4.906 kB / 434.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3525, allocations: 0 / 434.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.3525, allocations: 0 / 434.4 MB, free: 7.438 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.001627/0.3542, allocations: 0.855 MB / 435.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.3542, allocations: 9.688 kB / 435.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.3543, allocations: 77.69 kB / 435.4 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004491/0.3548, allocations: 77.86 kB / 435.4 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006372/0.3554, allocations: 372.9 kB / 435.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.3555, allocations: 102.8 kB / 435.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.739e-05/0.3556, allocations: 44.91 kB / 435.9 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.3567, allocations: 0.5569 MB / 436.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.3567, allocations: 9.328 kB / 436.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.089e-05/0.3568, allocations: 16.81 kB / 436.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.3568, allocations: 13.5 kB / 436.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.3581, allocations: 0.6116 MB / 437.2 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/0.3606, allocations: 1.301 MB / 438.5 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.3617, allocations: 497 kB / 438.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005993/0.3623, allocations: 282.6 kB / 439.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.669e-05/0.3624, allocations: 13.55 kB / 439.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.3624, allocations: 44.72 kB / 439.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.775e-06/0.3624, allocations: 1.125 kB / 439.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.00671/0.3691, allocations: 2.737 MB / 442 MB, free: 4.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.3692, allocations: 88.23 kB / 442.1 MB, free: 4.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004607/0.3696, allocations: 348.2 kB / 442.4 MB, free: 3.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.051e-05/0.3697, allocations: 44.64 kB / 442.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.829e-05/0.3698, allocations: 169.3 kB / 442.6 MB, free: 3.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.3699, allocations: 239.7 kB / 442.9 MB, free: 3.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/0.3701, allocations: 127 kB / 443 MB, free: 3.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.3702, allocations: 348.8 kB / 443.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005592/0.3708, allocations: 271 kB / 443.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006014/0.3714, allocations: 331.8 kB / 443.9 MB, free: 2.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009547/0.3723, allocations: 496.6 kB / 444.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.3723, allocations: 0 / 444.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001756/0.3741, allocations: 0.8161 MB / 445.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.567e-05/0.3741, allocations: 5.516 kB / 445.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3741, allocations: 1.156 kB / 445.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.3752, allocations: 444.1 kB / 445.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003911/0.3756, allocations: 91.8 kB / 445.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/0.3768, allocations: 1.025 MB / 446.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005514/0.3773, allocations: 61.02 kB / 446.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.567e-05/0.3774, allocations: 25.44 kB / 446.9 MB, free: 1.531 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.0003024/0.3777, allocations: 187.1 kB / 447.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.3778, allocations: 48.81 kB / 447.1 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001358/0.378, allocations: 67.36 kB / 447.2 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.378, allocations: 6.906 kB / 447.2 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.378, allocations: 5.156 kB / 447.2 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.378, allocations: 3.75 kB / 447.2 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003307/0.3813, allocations: 1.691 MB / 448.9 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.3813, allocations: 1.656 kB / 448.9 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004456/0.3817, allocations: 81.42 kB / 449 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009743/0.3827, allocations: 421.2 kB / 449.4 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.947e-05/0.3828, allocations: 20.36 kB / 449.4 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.384, allocations: 0.9841 MB / 450.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.384, allocations: 0 / 450.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002712/0.3867, allocations: 1.204 MB / 451.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003924/0.3871, allocations: 200.4 kB / 451.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.3872, allocations: 19.05 kB / 451.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004678/0.3877, allocations: 50.92 kB / 451.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000237/0.3879, allocations: 88.16 kB / 451.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.13e-05/0.388, allocations: 33.03 kB / 452 MB, free: 14.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003786/0.3884, allocations: 254.5 kB / 452.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3884, allocations: 4 kB / 452.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006703/0.389, allocations: 144.8 kB / 452.4 MB, free: 14.68 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.004296/0.3933, allocations: 2.034 MB / 454.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.3951, allocations: 0.6319 MB / 455 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3951, allocations: 3.938 kB / 455 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008668/0.396, allocations: 338.3 kB / 455.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006331/0.3966, allocations: 75.84 kB / 455.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00936/0.406, allocations: 4.856 MB / 460.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005104/0.4065, allocations: 0.8259 MB / 461.1 MB, free: 9.812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003489/0.4068, allocations: 80.7 kB / 461.2 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002691/0.4071, allocations: 143.9 kB / 461.3 MB, free: 9.695 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4071, allocations: 0 / 461.3 MB, free: 9.695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0462/0.4533, allocations: 14.52 MB / 475.9 MB, free: 14.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.6, allocations: 19.92 kB / 475.9 MB, free: 14.82 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: 14.984953661914915] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'bearingFriction.mode', 'bearingFriction.startBackward', 'bearingFriction.startForward', 'gear.mode'] 12.748225705232471 12.762258259 12.406570772 Calling exit ...