Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00173/0.00173, allocations: 188.3 kB / 23.7 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 43.94 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2392, allocations: 52.19 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003467/0.2427, allocations: 2.083 MB / 424.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.2439, allocations: 0.6584 MB / 425.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.219e-05/0.244, allocations: 0 / 425.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001725/0.2442, allocations: 35.66 kB / 425.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001897/0.2444, allocations: 71.47 kB / 425.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003885/0.2448, allocations: 115.7 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003452/0.2451, allocations: 267.4 kB / 425.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.2452, allocations: 44.5 kB / 425.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002039/0.2455, allocations: 119.6 kB / 425.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002175/0.2457, allocations: 119.4 kB / 426.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.071e-05/0.2457, allocations: 20 kB / 426.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001592/0.2459, allocations: 71.94 kB / 426.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.215e-05/0.246, allocations: 51.83 kB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.2461, allocations: 95.58 kB / 426.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003976/0.2465, allocations: 288.5 kB / 426.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2465, allocations: 4 kB / 426.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2465, allocations: 0 / 426.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.2465, allocations: 0 / 426.6 MB, free: 10.37 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001065/0.2476, allocations: 494.8 kB / 427.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.2476, allocations: 12.03 kB / 427.1 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.617e-05/0.2477, allocations: 54.72 kB / 427.1 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.277e-05/0.2477, allocations: 32.75 kB / 427.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.2481, allocations: 174.2 kB / 427.3 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.2481, allocations: 16.38 kB / 427.3 MB, free: 9.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.2482, allocations: 16.38 kB / 427.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005184/0.2487, allocations: 247.2 kB / 427.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.2487, allocations: 11.89 kB / 427.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/0.2487, allocations: 8 kB / 427.6 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.2487, allocations: 4 kB / 427.6 MB, free: 9.242 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005056/0.2492, allocations: 191.9 kB / 427.8 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.2503, allocations: 0.6009 MB / 428.4 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005685/0.2509, allocations: 182.5 kB / 428.6 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002413/0.2511, allocations: 96.81 kB / 428.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.2511, allocations: 4 kB / 428.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003907/0.2515, allocations: 170.9 kB / 428.9 MB, free: 7.941 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.224e-06/0.2515, allocations: 3.938 kB / 428.9 MB, free: 7.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.002491/0.254, allocations: 0.9129 MB / 429.8 MB, free: 6.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.2541, allocations: 63.33 kB / 429.8 MB, free: 6.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/0.2543, allocations: 192 kB / 430 MB, free: 6.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.453e-05/0.2543, allocations: 37.7 kB / 430.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.2544, allocations: 136.5 kB / 430.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.293e-05/0.2545, allocations: 95.27 kB / 430.3 MB, free: 6.418 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.2546, allocations: 61.69 kB / 430.3 MB, free: 6.352 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.2548, allocations: 330.8 kB / 430.7 MB, free: 6.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000307/0.2551, allocations: 133.7 kB / 430.8 MB, free: 5.879 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003209/0.2554, allocations: 174 kB / 431 MB, free: 5.691 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005234/0.256, allocations: 247.8 kB / 431.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.256, allocations: 0 / 431.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008887/0.2568, allocations: 430.6 kB / 431.6 MB, free: 4.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.764e-05/0.2569, allocations: 41.62 kB / 431.7 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.2569, allocations: 4.062 kB / 431.7 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000242/0.2571, allocations: 72.81 kB / 431.8 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.2574, allocations: 51.89 kB / 431.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005624/0.2579, allocations: 0.6109 MB / 432.4 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002643/0.2582, allocations: 32 kB / 432.4 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.2582, allocations: 20.05 kB / 432.5 MB, free: 4.129 MB / 334.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 (32): * Single equations (assignments): 30 * 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.000168/0.2584, allocations: 141.7 kB / 432.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.817e-05/0.2584, allocations: 19.91 kB / 432.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.142e-05/0.2585, allocations: 25.97 kB / 432.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.2585, allocations: 7.984 kB / 432.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.2585, allocations: 3.938 kB / 432.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2585, allocations: 0 / 432.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.2597, allocations: 0.6354 MB / 433.3 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.2597, allocations: 0 / 433.3 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002284/0.2599, allocations: 35.97 kB / 433.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001768/0.2601, allocations: 64.81 kB / 433.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.2601, allocations: 8 kB / 433.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005299/0.2606, allocations: 0.6109 MB / 434 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.2606, allocations: 8 kB / 434 MB, free: 2.484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.2617, allocations: 0.5007 MB / 434.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.2618, allocations: 35.88 kB / 434.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.166e-05/0.2618, allocations: 8 kB / 434.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000242/0.2621, allocations: 27.95 kB / 434.6 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.734e-05/0.2622, allocations: 39.94 kB / 434.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.2622, allocations: 4 kB / 434.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001433/0.2623, allocations: 147.4 kB / 434.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2623, allocations: 0 / 434.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003487/0.2627, allocations: 75.94 kB / 434.9 MB, free: 1.629 MB / 334.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 (20): * Single equations (assignments): 17 * 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.001491/0.2642, allocations: 1.073 MB / 435.9 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008123/0.265, allocations: 337 kB / 436.3 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.265, allocations: 0 / 436.3 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003573/0.2653, allocations: 143.7 kB / 436.4 MB, free: 36 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003985/0.2657, allocations: 36.11 kB / 436.4 MB, free: 0 / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004558/0.2703, allocations: 2.939 MB / 439.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.2704, allocations: 133.6 kB / 439.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.2705, allocations: 25.94 kB / 439.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.2706, allocations: 63.42 kB / 439.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2706, allocations: 0 / 439.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03825/0.3089, allocations: 6.471 MB / 446.1 MB, free: 6.395 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.04, allocations: 7.688 kB / 446.1 MB, free: 6.391 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] Could not SIGINT process: 2723852. Could not SIGINT process: 2723853. Could not SIGINT process: 2723857. Could not SIGINT process: 2718441. [Calling os._exit(0), Time elapsed: 68.85026978701353] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 13.196875050198287 13.214089567 12.964280055 Calling exit ...