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.001579/0.00158, allocations: 122.2 kB / 18.45 MB, free: 4.633 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.001912/0.001912, allocations: 207.3 kB / 21.41 MB, free: 1.684 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.489/1.489, allocations: 227.7 MB / 251.9 MB, free: 24 kB / 190.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.002164/0.002164, allocations: 68.02 kB / 365.2 MB, free: 232 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1048, allocations: 50.55 MB / 415.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004462/0.1093, allocations: 2.859 MB / 418.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002562/0.1119, allocations: 1.267 MB / 419.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003363/0.1123, allocations: 8 kB / 419.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004406/0.1128, allocations: 87.27 kB / 420 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008133/0.1136, allocations: 213.6 kB / 420.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000764/0.1144, allocations: 251.5 kB / 420.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001029/0.1154, allocations: 0.7172 MB / 421.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002956/0.1158, allocations: 119.4 kB / 421.3 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006548/0.1164, allocations: 327.1 kB / 421.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006356/0.1171, allocations: 378.8 kB / 422 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001876/0.1173, allocations: 59.94 kB / 422 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004213/0.1177, allocations: 163.9 kB / 422.2 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002558/0.118, allocations: 155.6 kB / 422.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003691/0.1183, allocations: 266.8 kB / 422.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.1195, allocations: 0.72 MB / 423.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1195, allocations: 0 / 423.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.1195, allocations: 0 / 423.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.804e-05/0.1196, allocations: 4 kB / 423.3 MB, free: 6.039 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.002226/0.1218, allocations: 0.8569 MB / 424.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.381e-05/0.1219, allocations: 12.03 kB / 424.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001517/0.122, allocations: 82.7 kB / 424.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005169/0.1226, allocations: 72.62 kB / 424.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007924/0.1234, allocations: 370.5 kB / 424.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001677/0.1235, allocations: 104.9 kB / 424.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.1237, allocations: 48.33 kB / 424.8 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.1249, allocations: 0.5526 MB / 425.4 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.464e-05/0.125, allocations: 0 / 425.4 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.1e-05/0.1251, allocations: 16 kB / 425.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/0.1251, allocations: 12 kB / 425.4 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.1265, allocations: 0.6167 MB / 426 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002975/0.1295, allocations: 1.303 MB / 427.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.1309, allocations: 0.5249 MB / 427.9 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006908/0.1316, allocations: 310.4 kB / 428.2 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.013e-05/0.1317, allocations: 12.55 kB / 428.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/0.1317, allocations: 47.12 kB / 428.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 3.667e-06/0.1317, allocations: 0 / 428.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.00804/0.1398, allocations: 2.754 MB / 431 MB, free: 14.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.623e-05/0.1399, allocations: 85.67 kB / 431.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006315/0.1406, allocations: 347.3 kB / 431.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.418e-05/0.1407, allocations: 49.69 kB / 431.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000187/0.1409, allocations: 161.8 kB / 431.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002932/0.1412, allocations: 242 kB / 431.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003089/0.1415, allocations: 126.3 kB / 432 MB, free: 13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.1417, allocations: 354.8 kB / 432.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006727/0.1424, allocations: 265.2 kB / 432.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007297/0.1431, allocations: 334.4 kB / 432.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.1444, allocations: 499.2 kB / 433.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.1444, allocations: 0 / 433.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002135/0.1465, allocations: 0.8336 MB / 434.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.1466, allocations: 8.031 kB / 434.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.1466, allocations: 4 kB / 434.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/0.1478, allocations: 448.3 kB / 434.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004598/0.1483, allocations: 91.86 kB / 434.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.1499, allocations: 1.021 MB / 435.8 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005955/0.1505, allocations: 59.92 kB / 435.8 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.1506, allocations: 31.92 kB / 435.9 MB, free: 9.035 MB / 366.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.000367/0.151, allocations: 177.8 kB / 436.1 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001793/0.1512, allocations: 43.72 kB / 436.1 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001922/0.1514, allocations: 71.8 kB / 436.2 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/0.1514, allocations: 8 kB / 436.2 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.1514, allocations: 0 / 436.2 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.1514, allocations: 3.984 kB / 436.2 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00375/0.1552, allocations: 1.698 MB / 437.9 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.1552, allocations: 0 / 437.9 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004099/0.1556, allocations: 79.88 kB / 438 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.1567, allocations: 420.5 kB / 438.4 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.044e-05/0.1568, allocations: 27.97 kB / 438.4 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001337/0.1582, allocations: 0.9822 MB / 439.4 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.1582, allocations: 0 / 439.4 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0028/0.161, allocations: 1.228 MB / 440.6 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003504/0.1614, allocations: 188.7 kB / 440.8 MB, free: 3.973 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.1615, allocations: 16 kB / 440.8 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005279/0.1621, allocations: 51.94 kB / 440.9 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002691/0.1624, allocations: 88.42 kB / 440.9 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-05/0.1624, allocations: 31.91 kB / 441 MB, free: 3.789 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004162/0.1629, allocations: 258 kB / 441.2 MB, free: 3.539 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1629, allocations: 0 / 441.2 MB, free: 3.539 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006648/0.1635, allocations: 143.9 kB / 441.4 MB, free: 3.398 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.004524/0.1681, allocations: 2.064 MB / 443.4 MB, free: 1.445 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002006/0.1701, allocations: 0.6728 MB / 444.1 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.1702, allocations: 0 / 444.1 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.1712, allocations: 380.2 kB / 444.5 MB, free: 416 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007281/0.172, allocations: 64.41 kB / 444.5 MB, free: 352 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2026/0.3746, allocations: 4.882 MB / 449.4 MB, free: 29.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.3749, allocations: 0.8209 MB / 450.2 MB, free: 28.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002956/0.3752, allocations: 85.41 kB / 450.3 MB, free: 28.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002486/0.3755, allocations: 151 kB / 450.5 MB, free: 28.56 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3755, allocations: 0 / 450.5 MB, free: 28.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04945/0.425, allocations: 14.4 MB / 464.9 MB, free: 24.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.82, allocations: 15.73 kB / 464.9 MB, free: 24.62 MB / 366.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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.53557439299766] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'bearingFriction.mode', 'bearingFriction.startBackward', 'bearingFriction.startForward', 'gear.mode'] 12.973372203996405 12.993436528 12.870237684 Calling exit ...