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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001778/0.001778, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002052/0.002052, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.504/1.504, allocations: 227.7 MB / 247.2 MB, free: 10.2 MB / 206.1 MB 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.002918/0.002918, allocations: 59.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3087, allocations: 50.54 MB / 409.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003957/0.3128, allocations: 2.331 MB / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.3143, allocations: 0.8569 MB / 412.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.3145, allocations: 4 kB / 412.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002541/0.3147, allocations: 55.56 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002643/0.315, allocations: 103.2 kB / 412.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.3152, allocations: 83.83 kB / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003322/0.3156, allocations: 271.4 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.3157, allocations: 72.3 kB / 412.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002274/0.316, allocations: 123.5 kB / 412.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002267/0.3162, allocations: 135.4 kB / 413.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.244e-05/0.3163, allocations: 24 kB / 413.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/0.3164, allocations: 79.98 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.647e-05/0.3165, allocations: 51.83 kB / 413.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.3166, allocations: 111.4 kB / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004117/0.3171, allocations: 309.8 kB / 413.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3171, allocations: 4 kB / 413.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3171, allocations: 4 kB / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.3171, allocations: 0 / 413.6 MB, free: 12.74 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.0008716/0.318, allocations: 0.5452 MB / 414.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.318, allocations: 12.03 kB / 414.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.614e-05/0.3181, allocations: 50.73 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.3182, allocations: 36.78 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003867/0.3186, allocations: 252 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.3187, allocations: 16.73 kB / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.216e-05/0.3187, allocations: 24.33 kB / 414.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003901/0.3191, allocations: 214.7 kB / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.3191, allocations: 4 kB / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.3192, allocations: 11.94 kB / 414.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.3192, allocations: 4 kB / 414.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003336/0.3195, allocations: 163 kB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.3207, allocations: 0.7742 MB / 415.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000378/0.3211, allocations: 142.5 kB / 415.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.3213, allocations: 69.02 kB / 415.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.3213, allocations: 8.344 kB / 415.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.3213, allocations: 30.56 kB / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.473e-06/0.3214, allocations: 0 / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001973/0.3233, allocations: 0.9971 MB / 417 MB, free: 9.102 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.3234, allocations: 51.41 kB / 417 MB, free: 9.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.3237, allocations: 226.8 kB / 417.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.3237, allocations: 29.7 kB / 417.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.3238, allocations: 144.4 kB / 417.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.569e-05/0.3239, allocations: 71.38 kB / 417.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.095e-05/0.324, allocations: 53.69 kB / 417.5 MB, free: 8.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.3242, allocations: 330.8 kB / 417.9 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.3244, allocations: 71.91 kB / 417.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.3245, allocations: 111.4 kB / 418 MB, free: 7.973 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.3249, allocations: 156 kB / 418.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.3249, allocations: 3.938 kB / 418.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005089/0.3254, allocations: 282.1 kB / 418.5 MB, free: 7.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.3254, allocations: 4 kB / 418.5 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.3254, allocations: 0 / 418.5 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002327/0.3257, allocations: 56.83 kB / 418.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.3258, allocations: 39.92 kB / 418.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002139/0.328, allocations: 1.811 MB / 420.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/0.3282, allocations: 28.03 kB / 420.4 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.3282, allocations: 12 kB / 420.4 MB, free: 5.434 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: 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.000157/0.3284, allocations: 129.8 kB / 420.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.959e-05/0.3284, allocations: 31.78 kB / 420.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.083e-05/0.3285, allocations: 25.88 kB / 420.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.3285, allocations: 4 kB / 420.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.3285, allocations: 3.938 kB / 420.6 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.3285, allocations: 7.984 kB / 420.6 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009517/0.3295, allocations: 0.6096 MB / 421.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3295, allocations: 0 / 421.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.3297, allocations: 31.98 kB / 421.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001508/0.3298, allocations: 60.88 kB / 421.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.3299, allocations: 7.938 kB / 421.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001727/0.3316, allocations: 1.657 MB / 423 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3316, allocations: 0 / 423 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007129/0.3323, allocations: 430.2 kB / 423.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.3324, allocations: 116.9 kB / 423.5 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/0.3325, allocations: 11.94 kB / 423.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001904/0.3327, allocations: 19.97 kB / 423.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/0.3328, allocations: 63.91 kB / 423.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.3329, allocations: 12 kB / 423.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000177/0.3331, allocations: 156.6 kB / 423.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3331, allocations: 0 / 423.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004238/0.3335, allocations: 71.98 kB / 423.8 MB, free: 1.742 MB / 334.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.002202/0.3357, allocations: 1.204 MB / 425.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006597/0.3364, allocations: 333.5 kB / 425.4 MB, free: 304 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3364, allocations: 0 / 425.4 MB, free: 304 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003388/0.3367, allocations: 234.4 kB / 425.6 MB, free: 56 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003931/0.3371, allocations: 36.17 kB / 425.6 MB, free: 20 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004215/0.3414, allocations: 2.666 MB / 428.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005623/0.342, allocations: 0.7402 MB / 429 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.3421, allocations: 37.91 kB / 429.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.3422, allocations: 67.41 kB / 429.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3422, allocations: 0 / 429.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03773/0.3799, allocations: 6.522 MB / 435.7 MB, free: 6.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.32, allocations: 13.38 kB / 435.7 MB, free: 6.059 MB / 350.1 MB (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)