Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 211.4 kB / 23.73 MB, free: 4.41 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.434/1.434, allocations: 230.6 MB / 257.5 MB, free: 7.809 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 47.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2497, allocations: 53.36 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003813/0.2535, allocations: 2.229 MB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.2551, allocations: 0.8179 MB / 434.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000146/0.2552, allocations: 3.938 kB / 434.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002726/0.2555, allocations: 51.62 kB / 434.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003073/0.2558, allocations: 107.2 kB / 434.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002219/0.256, allocations: 83.83 kB / 434.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000346/0.2564, allocations: 271.4 kB / 434.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.2565, allocations: 56.5 kB / 434.7 MB, free: 3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002561/0.2568, allocations: 127.5 kB / 434.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.257, allocations: 115.5 kB / 434.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.541e-05/0.2571, allocations: 20 kB / 434.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001719/0.2572, allocations: 79.97 kB / 435 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.978e-05/0.2573, allocations: 55.83 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.2574, allocations: 99.53 kB / 435.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004296/0.2578, allocations: 316.4 kB / 435.5 MB, free: 2.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2578, allocations: 0 / 435.5 MB, free: 2.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2579, allocations: 4 kB / 435.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.2579, allocations: 0 / 435.5 MB, free: 2.199 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0008518/0.2587, allocations: 477.2 kB / 435.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.2588, allocations: 12.03 kB / 436 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.682e-05/0.2588, allocations: 50.73 kB / 436 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.259, allocations: 40.78 kB / 436 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003742/0.2594, allocations: 186.2 kB / 436.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.2594, allocations: 16.75 kB / 436.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.301e-05/0.2594, allocations: 20.33 kB / 436.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004033/0.2598, allocations: 222.5 kB / 436.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.2598, allocations: 0 / 436.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.2599, allocations: 11.94 kB / 436.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.2599, allocations: 11.94 kB / 436.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003512/0.2602, allocations: 155.3 kB / 436.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.2614, allocations: 0.678 MB / 437.3 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.2618, allocations: 142.7 kB / 437.5 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.2619, allocations: 63.41 kB / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.2619, allocations: 4.391 kB / 437.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.262, allocations: 34.56 kB / 437.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.463e-06/0.262, allocations: 4 kB / 437.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001846/0.2638, allocations: 0.7619 MB / 438.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.2639, allocations: 55.41 kB / 438.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002628/0.2641, allocations: 222.7 kB / 438.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.2642, allocations: 37.7 kB / 438.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.2643, allocations: 136.5 kB / 438.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.041e-05/0.2643, allocations: 79.38 kB / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.913e-05/0.2644, allocations: 45.7 kB / 438.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.2646, allocations: 330.8 kB / 439.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.2648, allocations: 71.97 kB / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.265, allocations: 107.4 kB / 439.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.2653, allocations: 159.3 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2653, allocations: 4 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000521/0.2658, allocations: 266.2 kB / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.2658, allocations: 11.12 kB / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2658, allocations: 0 / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002101/0.266, allocations: 56.83 kB / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.2662, allocations: 35.92 kB / 439.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001974/0.2682, allocations: 1.711 MB / 441.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.2684, allocations: 23.97 kB / 441.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.2684, allocations: 8 kB / 441.7 MB, free: 11.61 MB / 350.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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * 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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001528/0.2686, allocations: 142 kB / 441.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.134e-05/0.2686, allocations: 27.8 kB / 441.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.561e-05/0.2687, allocations: 25.95 kB / 441.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.2687, allocations: 4 kB / 441.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.2687, allocations: 3.938 kB / 441.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.2687, allocations: 0 / 441.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009365/0.2696, allocations: 0.5471 MB / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2696, allocations: 3.984 kB / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.2698, allocations: 32.05 kB / 442.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001669/0.27, allocations: 56.83 kB / 442.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.27, allocations: 11.88 kB / 442.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001715/0.2717, allocations: 1.542 MB / 444.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.2717, allocations: 12.03 kB / 444.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007493/0.2724, allocations: 431.7 kB / 444.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.762e-05/0.2725, allocations: 31.92 kB / 444.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.055e-05/0.2726, allocations: 11.94 kB / 444.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001883/0.2728, allocations: 23.97 kB / 444.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.2729, allocations: 59.89 kB / 444.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.2729, allocations: 15.98 kB / 444.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001737/0.2731, allocations: 156.6 kB / 444.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2731, allocations: 0 / 444.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004183/0.2735, allocations: 72 kB / 444.8 MB, free: 8.215 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002304/0.2758, allocations: 1.237 MB / 446.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006934/0.2765, allocations: 310.3 kB / 446.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2765, allocations: 0 / 446.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.2769, allocations: 222.7 kB / 446.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004417/0.2773, allocations: 51.22 kB / 446.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003909/0.2812, allocations: 2.675 MB / 449.3 MB, free: 3.719 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.2814, allocations: 138.2 kB / 449.5 MB, free: 3.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.2815, allocations: 17.95 kB / 449.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.2816, allocations: 67.41 kB / 449.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of SimCode: time 1.223e-06/0.2816, allocations: 0 / 449.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04073/0.3224, allocations: 6.959 MB / 456.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.06, allocations: 4.062 kB / 456.5 MB, free: 12.61 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_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_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] Could not SIGINT process: 2492305. Could not SIGINT process: 2492306. Could not SIGINT process: 2492309. Could not SIGINT process: 2487096. [Calling os._exit(0), Time elapsed: 68.83756498992443] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 13.239288564771414 13.266356651 13.00342987 Calling exit ...