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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001341/0.001341, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 204.6 kB / 18.74 MB, free: 4.332 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.429/1.429, 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.001936/0.001936, allocations: 67.89 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2465, allocations: 50.54 MB / 409.1 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003582/0.2501, allocations: 2.284 MB / 411.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.2515, allocations: 0.8646 MB / 412.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.806e-05/0.2516, allocations: 0 / 412.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002265/0.2519, allocations: 55.56 kB / 412.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.2522, allocations: 111.2 kB / 412.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/0.2524, allocations: 87.81 kB / 412.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003585/0.2528, allocations: 287.4 kB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.2529, allocations: 60.34 kB / 412.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.2532, allocations: 135.5 kB / 412.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.2534, allocations: 131.5 kB / 413.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.936e-05/0.2535, allocations: 31.94 kB / 413.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001893/0.2537, allocations: 79.97 kB / 413.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.2538, allocations: 51.83 kB / 413.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.2539, allocations: 119.4 kB / 413.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004394/0.2544, allocations: 317.7 kB / 413.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2544, allocations: 0 / 413.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2544, allocations: 0 / 413.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.2544, allocations: 0 / 413.6 MB, free: 12.79 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.001021/0.2554, allocations: 0.6012 MB / 414.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.2555, allocations: 8.031 kB / 414.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.106e-05/0.2555, allocations: 50.73 kB / 414.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.2557, allocations: 36.78 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.2561, allocations: 252.8 kB / 414.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.2561, allocations: 12.38 kB / 414.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.148e-05/0.2561, allocations: 20.38 kB / 414.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004817/0.2566, allocations: 235 kB / 414.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.2567, allocations: 4 kB / 414.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.275e-05/0.2567, allocations: 8 kB / 414.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.2567, allocations: 4 kB / 414.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005446/0.2572, allocations: 175.9 kB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009672/0.2582, allocations: 0.6564 MB / 415.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005712/0.2588, allocations: 210.3 kB / 415.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002509/0.2591, allocations: 104.8 kB / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.2591, allocations: 0 / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003757/0.2595, allocations: 174.4 kB / 416.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.693e-06/0.2595, allocations: 0 / 416.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002527/0.262, allocations: 1.164 MB / 417.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.2621, allocations: 55.41 kB / 417.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002225/0.2623, allocations: 194.8 kB / 417.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.2624, allocations: 33.7 kB / 417.6 MB, free: 8.492 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.2625, allocations: 132.5 kB / 417.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.313e-05/0.2625, allocations: 99.2 kB / 417.8 MB, free: 8.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.2627, allocations: 61.7 kB / 417.9 MB, free: 8.195 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.2628, allocations: 334.8 kB / 418.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.2631, allocations: 103.9 kB / 418.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002946/0.2634, allocations: 141 kB / 418.5 MB, free: 7.609 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005167/0.2639, allocations: 238.9 kB / 418.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.2639, allocations: 0 / 418.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008286/0.2648, allocations: 381.8 kB / 419.1 MB, free: 6.973 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.685e-05/0.2648, allocations: 29.7 kB / 419.1 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.2648, allocations: 0 / 419.1 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002011/0.265, allocations: 60.77 kB / 419.2 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002072/0.2653, allocations: 55.84 kB / 419.2 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/0.2672, allocations: 1.807 MB / 421 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/0.2675, allocations: 31.95 kB / 421 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.2675, allocations: 12 kB / 421.1 MB, free: 4.828 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 (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.000155/0.2677, allocations: 145.7 kB / 421.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.944e-05/0.2677, allocations: 19.86 kB / 421.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.468e-05/0.2678, allocations: 30.55 kB / 421.2 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2678, allocations: 8.062 kB / 421.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2678, allocations: 3.938 kB / 421.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2678, allocations: 0 / 421.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001238/0.2691, allocations: 0.6869 MB / 421.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2691, allocations: 0 / 421.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002288/0.2693, allocations: 55.89 kB / 422 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001419/0.2695, allocations: 48.78 kB / 422 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.2695, allocations: 7.984 kB / 422.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/0.2712, allocations: 1.649 MB / 423.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2712, allocations: 0 / 423.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.2722, allocations: 0.5094 MB / 424.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.2724, allocations: 117 kB / 424.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.2724, allocations: 8 kB / 424.3 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002381/0.2727, allocations: 35.89 kB / 424.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.2728, allocations: 75.89 kB / 424.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.2729, allocations: 4 kB / 424.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001514/0.273, allocations: 147.6 kB / 424.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.273, allocations: 4 kB / 424.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003845/0.2734, allocations: 71.94 kB / 424.7 MB, free: 0.9648 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 (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.0025/0.2759, allocations: 1.312 MB / 426 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009101/0.2768, allocations: 445.7 kB / 426.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2769, allocations: 0 / 426.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004574/0.2773, allocations: 266.6 kB / 426.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004009/0.2777, allocations: 51.42 kB / 426.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004204/0.2819, allocations: 2.833 MB / 429.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000396/0.2824, allocations: 0.7441 MB / 430.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001231/0.2825, allocations: 29.92 kB / 430.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.2826, allocations: 71.36 kB / 430.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2826, allocations: 0 / 430.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04656/0.3292, allocations: 7.148 MB / 437.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.23, allocations: 0.9375 kB / 437.5 MB, free: 4.211 MB / 350.1 MB (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)