Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.001333/0.001333, allocations: 105.1 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.001483/0.001483, allocations: 213.9 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.448/1.448, allocations: 230.6 MB / 258.3 MB, free: 8.07 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.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.00195/0.00195, allocations: 64.77 kB / 378.5 MB, free: 3.297 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2566, allocations: 53.37 MB / 431.9 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004357/0.2609, allocations: 2.355 MB / 434.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.2624, allocations: 0.8646 MB / 435.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.2625, allocations: 11.88 kB / 435.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002797/0.2628, allocations: 55.56 kB / 435.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002783/0.2631, allocations: 111.2 kB / 435.3 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002219/0.2633, allocations: 83.83 kB / 435.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003831/0.2637, allocations: 271.4 kB / 435.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.2639, allocations: 55.58 kB / 435.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002375/0.2641, allocations: 123.6 kB / 435.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002325/0.2643, allocations: 127.5 kB / 435.9 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.2644, allocations: 20 kB / 436 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.2645, allocations: 87.97 kB / 436.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.513e-05/0.2646, allocations: 55.83 kB / 436.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.2647, allocations: 111.4 kB / 436.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004422/0.2652, allocations: 311.6 kB / 436.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2652, allocations: 0 / 436.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2652, allocations: 0 / 436.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.2652, allocations: 4 kB / 436.5 MB, free: 2.32 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.0008856/0.2661, allocations: 485.2 kB / 437 MB, free: 1.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.2661, allocations: 12.03 kB / 437 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.334e-05/0.2662, allocations: 50.73 kB / 437.1 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.2663, allocations: 36.78 kB / 437.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.2667, allocations: 194.1 kB / 437.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.2667, allocations: 12.75 kB / 437.3 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.508e-05/0.2668, allocations: 24.33 kB / 437.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004195/0.2672, allocations: 218.5 kB / 437.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.2672, allocations: 4 kB / 437.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.2673, allocations: 4 kB / 437.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.2673, allocations: 4 kB / 437.5 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003512/0.2676, allocations: 159.2 kB / 437.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.2689, allocations: 0.7248 MB / 438.4 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004057/0.2693, allocations: 138.5 kB / 438.6 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.2694, allocations: 65.02 kB / 438.6 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.2694, allocations: 0 / 438.6 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.2695, allocations: 34.91 kB / 438.7 MB, free: 32 kB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 9.22e-07/0.2695, allocations: 11.94 kB / 438.7 MB, free: 20 kB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001944/0.2714, allocations: 0.7616 MB / 439.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.2715, allocations: 55.41 kB / 439.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.2718, allocations: 222.8 kB / 439.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.2718, allocations: 29.64 kB / 439.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.2719, allocations: 144.5 kB / 439.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.521e-05/0.272, allocations: 75.38 kB / 439.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.437e-05/0.272, allocations: 49.7 kB / 440 MB, free: 14.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.2722, allocations: 334.8 kB / 440.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.2724, allocations: 71.91 kB / 440.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.2726, allocations: 111.4 kB / 440.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.2729, allocations: 159.3 kB / 440.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.2729, allocations: 0 / 440.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005032/0.2734, allocations: 266.2 kB / 440.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.2734, allocations: 11.94 kB / 440.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.2734, allocations: 0 / 440.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002198/0.2736, allocations: 56.83 kB / 441 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.2738, allocations: 36.05 kB / 441 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/0.2759, allocations: 1.719 MB / 442.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/0.2761, allocations: 24 kB / 442.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.2761, allocations: 8 kB / 442.8 MB, free: 11.67 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.0001678/0.2763, allocations: 142.1 kB / 442.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.324e-05/0.2763, allocations: 19.84 kB / 442.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.59e-05/0.2764, allocations: 25.95 kB / 443 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2764, allocations: 4 kB / 443 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-06/0.2764, allocations: 0 / 443 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2764, allocations: 0 / 443 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009481/0.2773, allocations: 0.5888 MB / 443.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2773, allocations: 0 / 443.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.2775, allocations: 35.91 kB / 443.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001518/0.2777, allocations: 56.83 kB / 443.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.2777, allocations: 12 kB / 443.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001699/0.2794, allocations: 1.561 MB / 445.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2794, allocations: 64 / 445.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007328/0.2801, allocations: 426.2 kB / 445.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.475e-05/0.2802, allocations: 35.88 kB / 445.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.724e-05/0.2802, allocations: 11.94 kB / 445.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.2804, allocations: 19.98 kB / 445.7 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.2806, allocations: 67.97 kB / 445.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.2806, allocations: 8 kB / 445.8 MB, free: 8.457 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001756/0.2807, allocations: 152.6 kB / 445.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2807, allocations: 0 / 445.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004008/0.2811, allocations: 71.98 kB / 446 MB, free: 8.238 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.002206/0.2834, allocations: 1.209 MB / 447.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006296/0.284, allocations: 310.4 kB / 447.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.284, allocations: 0 / 447.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000355/0.2843, allocations: 234.5 kB / 447.7 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.2847, allocations: 50.94 kB / 447.8 MB, free: 6.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003654/0.2884, allocations: 2.674 MB / 450.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/0.2888, allocations: 0.7441 MB / 451.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.835e-05/0.2889, allocations: 29.92 kB / 451.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.289, allocations: 71.41 kB / 451.3 MB, free: 2.867 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.289, allocations: 0 / 451.3 MB, free: 2.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03849/0.3275, allocations: 6.75 MB / 458 MB, free: 12.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.24, allocations: 4.062 kB / 458 MB, free: 12.2 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.823130784090608] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 12.409161116927862 12.435568765 12.165421585 Calling exit ...