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.001378/0.001378, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001569/0.001569, allocations: 212.6 kB / 24.54 MB, free: 4.016 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.417/1.417, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.001953/0.001953, allocations: 68.77 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.266, allocations: 53.37 MB / 431.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003857/0.2698, allocations: 2.306 MB / 434.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.2714, allocations: 0.884 MB / 435.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.2715, allocations: 11.94 kB / 435.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002467/0.2717, allocations: 51.58 kB / 435.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002718/0.272, allocations: 107.2 kB / 435.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.2722, allocations: 83.81 kB / 435.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003578/0.2726, allocations: 287.4 kB / 435.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.2727, allocations: 48.5 kB / 435.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002468/0.273, allocations: 143.5 kB / 435.8 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000222/0.2732, allocations: 131.5 kB / 435.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.346e-05/0.2732, allocations: 24 kB / 436 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.2734, allocations: 79.92 kB / 436 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.414e-05/0.2735, allocations: 55.81 kB / 436.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.2736, allocations: 119.4 kB / 436.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004106/0.274, allocations: 315.6 kB / 436.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.274, allocations: 0 / 436.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.274, allocations: 0 / 436.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.274, allocations: 0 / 436.5 MB, free: 2.266 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001015/0.275, allocations: 0.5258 MB / 437 MB, free: 1.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.2751, allocations: 12.03 kB / 437.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.431e-05/0.2751, allocations: 46.73 kB / 437.1 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001647/0.2753, allocations: 44.73 kB / 437.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000357/0.2757, allocations: 183.8 kB / 437.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.2757, allocations: 16.38 kB / 437.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.819e-05/0.2757, allocations: 20.38 kB / 437.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004738/0.2762, allocations: 239.1 kB / 437.6 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.2762, allocations: 3.984 kB / 437.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/0.2762, allocations: 8 kB / 437.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.2762, allocations: 4 kB / 437.6 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004732/0.2767, allocations: 179.8 kB / 437.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009829/0.2777, allocations: 0.6282 MB / 438.4 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000552/0.2783, allocations: 198.3 kB / 438.6 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002499/0.2785, allocations: 88.81 kB / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.2785, allocations: 4 kB / 438.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003859/0.2789, allocations: 163.2 kB / 438.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.854e-06/0.2789, allocations: 0 / 438.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002469/0.2814, allocations: 0.9427 MB / 439.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.2814, allocations: 55.39 kB / 439.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000242/0.2817, allocations: 203.2 kB / 440.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.2817, allocations: 29.7 kB / 440.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.2818, allocations: 136.5 kB / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.969e-05/0.2819, allocations: 99.16 kB / 440.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.282, allocations: 61.69 kB / 440.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.2822, allocations: 330.8 kB / 440.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/0.2824, allocations: 99.94 kB / 440.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002959/0.2827, allocations: 147.1 kB / 440.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004961/0.2832, allocations: 238 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.2832, allocations: 0 / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007943/0.284, allocations: 377.7 kB / 441.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.997e-05/0.2841, allocations: 37.69 kB / 441.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.2841, allocations: 0 / 441.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002082/0.2843, allocations: 60.81 kB / 441.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002143/0.2845, allocations: 63.88 kB / 441.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001943/0.2864, allocations: 1.701 MB / 443.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002518/0.2867, allocations: 31.95 kB / 443.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.2867, allocations: 12 kB / 443.4 MB, free: 10.92 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: 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.0001804/0.2869, allocations: 141.8 kB / 443.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.305e-05/0.2869, allocations: 23.92 kB / 443.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.65e-05/0.287, allocations: 30.64 kB / 443.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.287, allocations: 4 kB / 443.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.287, allocations: 3.938 kB / 443.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.287, allocations: 3.984 kB / 443.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.2882, allocations: 0.6586 MB / 444.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2882, allocations: 0 / 444.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002194/0.2884, allocations: 43.95 kB / 444.3 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001419/0.2886, allocations: 52.83 kB / 444.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.889e-05/0.2886, allocations: 7.984 kB / 444.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001625/0.2902, allocations: 1.546 MB / 445.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2902, allocations: 0 / 445.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009977/0.2912, allocations: 0.5052 MB / 446.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.971e-05/0.2913, allocations: 39.86 kB / 446.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.615e-05/0.2914, allocations: 4 kB / 446.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002386/0.2916, allocations: 35.91 kB / 446.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.2918, allocations: 75.8 kB / 446.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.2918, allocations: 15.98 kB / 446.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001661/0.292, allocations: 148.9 kB / 446.8 MB, free: 7.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.292, allocations: 0 / 446.8 MB, free: 7.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000431/0.2924, allocations: 75.94 kB / 446.8 MB, free: 7.316 MB / 350.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.002589/0.295, allocations: 1.299 MB / 448.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009666/0.296, allocations: 434.4 kB / 448.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.296, allocations: 4.125 kB / 448.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004873/0.2965, allocations: 258.5 kB / 448.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000441/0.2969, allocations: 59.34 kB / 448.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004477/0.3014, allocations: 2.823 MB / 451.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.3018, allocations: 0.7518 MB / 452.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.3019, allocations: 25.89 kB / 452.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.3021, allocations: 75.41 kB / 452.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3021, allocations: 0 / 452.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0409/0.343, allocations: 7.411 MB / 460 MB, free: 10.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.05, allocations: 0 / 460 MB, free: 10.22 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.582214777823538] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 12.220819081179798 12.246161391 11.967344592 Calling exit ...