Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.00181/0.00181, allocations: 121.8 kB / 18.5 MB, free: 4.57 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.002048/0.002048, allocations: 203.3 kB / 21.45 MB, free: 1.621 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.471/1.471, allocations: 230.5 MB / 254.8 MB, free: 15.25 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.OneWayClutch,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutch",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.003281/0.003281, allocations: 75.81 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1171, allocations: 53.33 MB / 427 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004217/0.1213, allocations: 2.3 MB / 429.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.1229, allocations: 0.8723 MB / 430.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.123, allocations: 7.938 kB / 430.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000299/0.1233, allocations: 47.62 kB / 430.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003321/0.1237, allocations: 111.2 kB / 430.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.1239, allocations: 87.77 kB / 430.4 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003816/0.1243, allocations: 291.4 kB / 430.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.1244, allocations: 40.39 kB / 430.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.1247, allocations: 135.5 kB / 430.9 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002371/0.1249, allocations: 139.4 kB / 431 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.32e-05/0.125, allocations: 20 kB / 431 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.1251, allocations: 79.98 kB / 431.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.982e-05/0.1252, allocations: 55.81 kB / 431.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000146/0.1254, allocations: 127.3 kB / 431.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004656/0.1258, allocations: 302.8 kB / 431.6 MB, free: 232 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1258, allocations: 7.938 kB / 431.6 MB, free: 224 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1258, allocations: 0 / 431.6 MB, free: 224 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.1259, allocations: 0 / 431.6 MB, free: 224 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001181/0.127, allocations: 0.5895 MB / 432.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.1271, allocations: 16.03 kB / 432.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.282e-05/0.1271, allocations: 46.73 kB / 432.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.1273, allocations: 40.73 kB / 432.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.1278, allocations: 256.8 kB / 432.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.1278, allocations: 12.38 kB / 432.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.108e-05/0.1278, allocations: 20.38 kB / 432.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005011/0.1283, allocations: 235 kB / 432.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.1284, allocations: 7.984 kB / 432.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.657e-05/0.1284, allocations: 8 kB / 432.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.1284, allocations: 4 kB / 432.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005014/0.1289, allocations: 175.8 kB / 433 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001126/0.13, allocations: 0.6487 MB / 433.6 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006003/0.1306, allocations: 190.4 kB / 433.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002536/0.1309, allocations: 88.81 kB / 433.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.1309, allocations: 11.94 kB / 433.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004194/0.1313, allocations: 159.3 kB / 434.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 4.248e-06/0.1313, allocations: 3.984 kB / 434.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.002715/0.1341, allocations: 1.168 MB / 435.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/0.1341, allocations: 67.33 kB / 435.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.1343, allocations: 194.8 kB / 435.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.251e-05/0.1344, allocations: 29.7 kB / 435.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.1345, allocations: 136.5 kB / 435.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.258e-05/0.1346, allocations: 95.22 kB / 435.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.1347, allocations: 61.69 kB / 435.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1349, allocations: 330.8 kB / 436.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002808/0.1351, allocations: 103.9 kB / 436.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003224/0.1355, allocations: 145 kB / 436.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005274/0.136, allocations: 242.1 kB / 436.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.136, allocations: 0 / 436.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008567/0.1369, allocations: 369.8 kB / 437 MB, free: 10.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.975e-05/0.1369, allocations: 37.69 kB / 437 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.1369, allocations: 4.062 kB / 437 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002468/0.1372, allocations: 64.75 kB / 437.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002204/0.1374, allocations: 47.91 kB / 437.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002274/0.1397, allocations: 1.809 MB / 438.9 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002867/0.1399, allocations: 32.03 kB / 439 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/0.14, allocations: 12 kB / 439 MB, free: 8.277 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001931/0.1402, allocations: 149.7 kB / 439.1 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.843e-05/0.1402, allocations: 23.86 kB / 439.1 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.571e-05/0.1403, allocations: 26.56 kB / 439.2 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.1403, allocations: 4 kB / 439.2 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1403, allocations: 3.938 kB / 439.2 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.1403, allocations: 7.984 kB / 439.2 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.1415, allocations: 0.6791 MB / 439.9 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1415, allocations: 0 / 439.9 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.1417, allocations: 43.91 kB / 439.9 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001689/0.1419, allocations: 60.81 kB / 440 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.1419, allocations: 4 kB / 440 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001704/0.1436, allocations: 1.649 MB / 441.6 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1436, allocations: 64 / 441.6 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.1447, allocations: 0.5058 MB / 442.1 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.1448, allocations: 113 kB / 442.2 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.708e-05/0.1448, allocations: 11.94 kB / 442.3 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.1451, allocations: 35.89 kB / 442.3 MB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.1453, allocations: 71.89 kB / 442.4 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.1453, allocations: 8 kB / 442.4 MB, free: 4.641 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.1454, allocations: 151.6 kB / 442.5 MB, free: 4.492 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1454, allocations: 0 / 442.5 MB, free: 4.492 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004374/0.1459, allocations: 75.92 kB / 442.6 MB, free: 4.418 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002567/0.1484, allocations: 1.311 MB / 443.9 MB, free: 3.215 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009561/0.1494, allocations: 429.8 kB / 444.3 MB, free: 2.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1494, allocations: 7.938 kB / 444.3 MB, free: 2.762 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004664/0.1499, allocations: 263.1 kB / 444.6 MB, free: 2.492 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/0.1503, allocations: 39.97 kB / 444.6 MB, free: 2.453 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1796/0.3299, allocations: 2.821 MB / 447.4 MB, free: 23.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001932/0.3301, allocations: 0.7449 MB / 448.2 MB, free: 22.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001546/0.3302, allocations: 29.38 kB / 448.2 MB, free: 22.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.3304, allocations: 69.5 kB / 448.3 MB, free: 22.63 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3304, allocations: 0 / 448.3 MB, free: 22.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03779/0.3682, allocations: 7.187 MB / 455.5 MB, free: 21.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.15, allocations: 13.39 kB / 455.5 MB, free: 21.9 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv --start-time 0 --stop-time 2 --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_OneWayClutch.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.735694773029536] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 12.30325022013858 12.320088501 12.190337508 Calling exit ...