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.001689/0.001689, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00219/0.00219, allocations: 212.1 kB / 23.73 MB, free: 4.523 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.439/1.439, 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.001512/0.001512, allocations: 47.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.255, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004005/0.259, allocations: 2.236 MB / 433.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.2605, allocations: 0.8101 MB / 434.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.2606, allocations: 7.938 kB / 434.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002694/0.2609, allocations: 59.56 kB / 434.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003135/0.2612, allocations: 103.2 kB / 434.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.2614, allocations: 83.84 kB / 434.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003442/0.2617, allocations: 279.4 kB / 434.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.2619, allocations: 44.53 kB / 434.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002381/0.2622, allocations: 119.6 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/0.2624, allocations: 143.4 kB / 434.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.493e-05/0.2624, allocations: 20 kB / 435 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.2626, allocations: 75.98 kB / 435 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.536e-05/0.2627, allocations: 55.81 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.2628, allocations: 91.59 kB / 435.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004412/0.2632, allocations: 320.5 kB / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2632, allocations: 0 / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2632, allocations: 0 / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.2632, allocations: 0 / 435.5 MB, free: 2.207 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.0009001/0.2641, allocations: 493.1 kB / 436 MB, free: 1.691 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.2642, allocations: 8.031 kB / 436 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.23e-05/0.2643, allocations: 50.73 kB / 436 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.2644, allocations: 36.78 kB / 436.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.2648, allocations: 190.2 kB / 436.2 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.2648, allocations: 12.75 kB / 436.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.256e-05/0.2649, allocations: 28.33 kB / 436.3 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004084/0.2653, allocations: 222.5 kB / 436.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.2653, allocations: 4 kB / 436.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.2653, allocations: 8 kB / 436.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.2653, allocations: 4 kB / 436.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003151/0.2656, allocations: 151.3 kB / 436.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.2667, allocations: 0.6819 MB / 437.3 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003428/0.2671, allocations: 138.5 kB / 437.5 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.2673, allocations: 69.06 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.2673, allocations: 4.344 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.2673, allocations: 34.56 kB / 437.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.543e-06/0.2673, allocations: 0 / 437.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001872/0.2692, allocations: 0.7739 MB / 438.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.2692, allocations: 55.39 kB / 438.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.2695, allocations: 222.7 kB / 438.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.2695, allocations: 29.7 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.2696, allocations: 140.5 kB / 438.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.336e-05/0.2697, allocations: 67.39 kB / 438.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.058e-05/0.2698, allocations: 53.69 kB / 438.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.27, allocations: 330.8 kB / 439.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.2701, allocations: 67.97 kB / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.2703, allocations: 111.3 kB / 439.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.2706, allocations: 159.3 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.2706, allocations: 0 / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005383/0.2711, allocations: 270.2 kB / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.2712, allocations: 7.938 kB / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2712, allocations: 0 / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002241/0.2714, allocations: 60.89 kB / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.2715, allocations: 39.92 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002017/0.2736, allocations: 1.702 MB / 441.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001923/0.2738, allocations: 24.05 kB / 441.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.2738, allocations: 12 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.000143/0.2739, allocations: 141.9 kB / 441.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.694e-05/0.274, allocations: 23.84 kB / 441.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.515e-05/0.274, allocations: 29.95 kB / 441.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.274, allocations: 4.062 kB / 441.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.274, allocations: 4 kB / 441.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.274, allocations: 3.984 kB / 441.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009243/0.275, allocations: 0.5432 MB / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.275, allocations: 0 / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.2751, allocations: 39.97 kB / 442.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001612/0.2753, allocations: 52.81 kB / 442.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/0.2753, allocations: 11.94 kB / 442.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00171/0.277, allocations: 1.549 MB / 444.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.277, allocations: 0 / 444.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007/0.2777, allocations: 432.9 kB / 444.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.1e-05/0.2778, allocations: 31.92 kB / 444.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.2779, allocations: 11.94 kB / 444.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001772/0.278, allocations: 23.98 kB / 444.6 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.2782, allocations: 71.88 kB / 444.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.2782, allocations: 4 kB / 444.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001722/0.2784, allocations: 160.6 kB / 444.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2784, allocations: 0 / 444.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004566/0.2789, allocations: 68 kB / 444.9 MB, free: 8.211 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.002257/0.2811, allocations: 1.236 MB / 446.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006357/0.2817, allocations: 314.4 kB / 446.4 MB, free: 6.773 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.2817, allocations: 0 / 446.4 MB, free: 6.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003408/0.2821, allocations: 222.5 kB / 446.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004197/0.2825, allocations: 43.16 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.00377/0.2863, allocations: 2.67 MB / 449.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000154/0.2864, allocations: 146 kB / 449.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000109/0.2865, allocations: 33.92 kB / 449.5 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.2867, allocations: 67.41 kB / 449.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2867, allocations: 0 / 449.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03822/0.3249, allocations: 7.018 MB / 456.6 MB, free: 12.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.13, allocations: 3.938 kB / 456.6 MB, free: 12.54 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: 1524454. Could not SIGINT process: 1524455. Could not SIGINT process: 1524461. Could not SIGINT process: 1519039. [Calling os._exit(0), Time elapsed: 68.93554980799672] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 13.301915240997914 13.318314374 13.051817018 Calling exit ...