Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.001969/0.001969, allocations: 107.6 kB / 21.18 MB, free: 0.5781 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.001698/0.001698, allocations: 217 kB / 24.48 MB, free: 3.867 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 53.8 kB / 347.2 MB, free: 9.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2584, allocations: 49.15 MB / 396.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003116/0.2615, allocations: 2.09 MB / 398.4 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.2627, allocations: 0.6995 MB / 399.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.2628, allocations: 5.375 kB / 399.1 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.2629, allocations: 40.33 kB / 399.2 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.2631, allocations: 67.45 kB / 399.2 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003814/0.2635, allocations: 114 kB / 399.3 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002902/0.2638, allocations: 271.4 kB / 399.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.2639, allocations: 43.59 kB / 399.7 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000209/0.2641, allocations: 120.1 kB / 399.8 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002059/0.2643, allocations: 123.9 kB / 399.9 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.071e-05/0.2644, allocations: 21.34 kB / 399.9 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.2645, allocations: 67.8 kB / 400 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.001e-05/0.2646, allocations: 54.14 kB / 400 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.2647, allocations: 94.62 kB / 400.1 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003962/0.2651, allocations: 280.9 kB / 400.4 MB, free: 6.426 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2651, allocations: 1.062 kB / 400.4 MB, free: 6.426 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2651, allocations: 0 / 400.4 MB, free: 6.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.2651, allocations: 0 / 400.4 MB, free: 6.426 MB / 318.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.0008994/0.266, allocations: 0.4973 MB / 400.9 MB, free: 6.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.2661, allocations: 14.39 kB / 400.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.794e-05/0.2661, allocations: 52.89 kB / 401 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.645e-05/0.2662, allocations: 24.58 kB / 401 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.2664, allocations: 177.4 kB / 401.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.2665, allocations: 17.25 kB / 401.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.432e-05/0.2665, allocations: 17.5 kB / 401.2 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004648/0.267, allocations: 237.7 kB / 401.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.267, allocations: 14 kB / 401.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.355e-05/0.267, allocations: 6.25 kB / 401.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.425e-06/0.267, allocations: 4.969 kB / 401.5 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004746/0.2675, allocations: 187.9 kB / 401.6 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009048/0.2684, allocations: 0.5958 MB / 402.2 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005508/0.269, allocations: 199.7 kB / 402.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002229/0.2692, allocations: 93.02 kB / 402.5 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.2692, allocations: 3.625 kB / 402.5 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003397/0.2696, allocations: 162.9 kB / 402.7 MB, free: 4.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.2696, allocations: 0 / 402.7 MB, free: 4.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002192/0.2717, allocations: 0.9337 MB / 403.6 MB, free: 4.449 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.2718, allocations: 55.67 kB / 403.7 MB, free: 4.387 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.272, allocations: 188.7 kB / 403.9 MB, free: 4.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.272, allocations: 33.08 kB / 403.9 MB, free: 4.223 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.17e-05/0.2721, allocations: 140.2 kB / 404 MB, free: 4.098 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.859e-05/0.2721, allocations: 93.78 kB / 404.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.2722, allocations: 60.56 kB / 404.2 MB, free: 3.988 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.058e-05/0.2723, allocations: 335.2 kB / 404.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.2726, allocations: 135.4 kB / 404.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.2728, allocations: 177 kB / 404.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000461/0.2733, allocations: 238.7 kB / 405 MB, free: 3.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2733, allocations: 1.344 kB / 405 MB, free: 3.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000806/0.2741, allocations: 433.6 kB / 405.5 MB, free: 3.145 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.2741, allocations: 37.14 kB / 405.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2741, allocations: 2.141 kB / 405.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002402/0.2744, allocations: 71.2 kB / 405.6 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/0.2746, allocations: 49.45 kB / 405.6 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003911/0.275, allocations: 0.6171 MB / 406.2 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/0.2753, allocations: 31.34 kB / 406.3 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.2753, allocations: 13.09 kB / 406.3 MB, free: 2.504 MB / 318.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.0001156/0.2754, allocations: 148.2 kB / 406.4 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-05/0.2754, allocations: 25.34 kB / 406.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.007e-05/0.2755, allocations: 31.95 kB / 406.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.2755, allocations: 3.844 kB / 406.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.2755, allocations: 0.8594 kB / 406.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2755, allocations: 5.359 kB / 406.5 MB, free: 2.316 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.2765, allocations: 0.6164 MB / 407.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2765, allocations: 0 / 407.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.2767, allocations: 41.88 kB / 407.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001557/0.2769, allocations: 69.02 kB / 407.2 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/0.2769, allocations: 11.86 kB / 407.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003181/0.2772, allocations: 0.6069 MB / 407.8 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2772, allocations: 4.547 kB / 407.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008848/0.2781, allocations: 0.5053 MB / 408.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.03e-05/0.2782, allocations: 41.33 kB / 408.4 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.911e-05/0.2783, allocations: 6.172 kB / 408.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002367/0.2785, allocations: 25.73 kB / 408.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.2786, allocations: 39.95 kB / 408.5 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/0.2786, allocations: 6.5 kB / 408.5 MB, free: 1.004 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000102/0.2787, allocations: 144.3 kB / 408.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2787, allocations: 0 / 408.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003654/0.2791, allocations: 65.55 kB / 408.7 MB, free: 0.9023 MB / 318.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.001176/0.2803, allocations: 1.068 MB / 409.7 MB, free: 88 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007613/0.281, allocations: 336 kB / 410.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.281, allocations: 5.375 kB / 410.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003509/0.2814, allocations: 133.2 kB / 410.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004143/0.2818, allocations: 42.25 kB / 410.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004661/0.2865, allocations: 2.951 MB / 413.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001753/0.2866, allocations: 140.2 kB / 413.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.2868, allocations: 22.27 kB / 413.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.2869, allocations: 63.98 kB / 413.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2869, allocations: 0 / 413.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03783/0.3247, allocations: 6.47 MB / 419.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.17, allocations: 2.562 kB / 419.9 MB, free: 10.02 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] Could not SIGINT process: 2909361. Could not SIGINT process: 2909362. Could not SIGINT process: 2909368. Could not SIGINT process: 2903996. [Calling os._exit(0), Time elapsed: 69.06623341143131] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 13.28928713593632 13.311156651 13.041425963 Calling exit ...