Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001771/0.001771, allocations: 122.2 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.001881/0.001882, allocations: 202 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.407/1.407, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.001798/0.001798, allocations: 71.83 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2606, allocations: 50.54 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002725/0.2634, allocations: 1.456 MB / 410.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002941/0.2637, allocations: 91.75 kB / 410.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.432e-05/0.2638, allocations: 0 / 410.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.804e-05/0.2638, allocations: 3.938 kB / 410.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.552e-05/0.2639, allocations: 3.938 kB / 410.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002587/0.2641, allocations: 27.16 kB / 410.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.201e-05/0.2642, allocations: 19.98 kB / 410.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.534e-05/0.2643, allocations: 12 kB / 410.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.148e-05/0.2644, allocations: 19.86 kB / 410.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.197e-05/0.2644, allocations: 7.938 kB / 410.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.2644, allocations: 4 kB / 410.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.638e-06/0.2644, allocations: 0 / 410.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.862e-05/0.2645, allocations: 15.92 kB / 410.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.332e-05/0.2645, allocations: 15.92 kB / 410.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.652e-05/0.2646, allocations: 19.91 kB / 410.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2646, allocations: 0 / 410.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2646, allocations: 0 / 410.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.2646, allocations: 0 / 410.7 MB, free: 15.68 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004656/0.2651, allocations: 342.4 kB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.2652, allocations: 12.02 kB / 411.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.927e-05/0.2652, allocations: 34.75 kB / 411.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.445e-05/0.2652, allocations: 8.891 kB / 411.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002185/0.2655, allocations: 172.3 kB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.2655, allocations: 12.31 kB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.2655, allocations: 384 / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003073/0.2658, allocations: 111.8 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.2658, allocations: 3.938 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.782e-06/0.2658, allocations: 0 / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.2658, allocations: 0 / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.724e-05/0.2659, allocations: 27.91 kB / 411.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001644/0.2661, allocations: 157.6 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001579/0.2663, allocations: 58.58 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.172e-05/0.2663, allocations: 24.88 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.2664, allocations: 4 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.2664, allocations: 38.5 kB / 411.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.2664, allocations: 0 / 411.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002288/0.2666, allocations: 69.61 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.2667, allocations: 55.41 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.597e-05/0.2668, allocations: 109.8 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.2668, allocations: 25.7 kB / 412 MB, free: 14.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.366e-05/0.2669, allocations: 88.14 kB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.592e-06/0.2669, allocations: 0 / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.2669, allocations: 17.72 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2671, allocations: 314.8 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.389e-05/0.2671, allocations: 8 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.523e-05/0.2671, allocations: 31.38 kB / 412.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.74e-05/0.2672, allocations: 35.36 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.2672, allocations: 8 kB / 412.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.753e-05/0.2673, allocations: 53.59 kB / 412.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2673, allocations: 7.938 kB / 412.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2673, allocations: 0 / 412.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.2673, allocations: 4 kB / 412.5 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.334e-05/0.2674, allocations: 8.234 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.2674, allocations: 3.984 kB / 412.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.423e-05/0.2674, allocations: 8 kB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.376e-06/0.2675, allocations: 128 / 412.6 MB, free: 13.59 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: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.789e-05/0.2676, allocations: 125.7 kB / 412.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.2677, allocations: 57.61 kB / 412.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.398e-05/0.2677, allocations: 11.91 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.2677, allocations: 0 / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2677, allocations: 0 / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2677, allocations: 0 / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000131/0.2679, allocations: 153.7 kB / 412.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.2679, allocations: 0 / 412.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.386e-05/0.2679, allocations: 15.98 kB / 412.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.268, allocations: 11.81 kB / 412.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.268, allocations: 0 / 412.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.268, allocations: 0 / 412.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.268, allocations: 0 / 412.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001425/0.2681, allocations: 89 kB / 413 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.578e-05/0.2682, allocations: 85.05 kB / 413.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.2682, allocations: 3.938 kB / 413.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.298e-05/0.2682, allocations: 4 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.705e-06/0.2682, allocations: 384 / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.2683, allocations: 4 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.93e-05/0.2683, allocations: 87.27 kB / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2683, allocations: 0 / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001863/0.2685, allocations: 4 kB / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004879/0.269, allocations: 0.6318 MB / 413.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00011/0.2691, allocations: 19.98 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.2691, allocations: 0 / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.42e-07/0.2691, allocations: 0 / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.2694, allocations: 29.42 kB / 413.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.2705, allocations: 1.143 MB / 415 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.2708, allocations: 0.6846 MB / 415.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.559e-05/0.2708, allocations: 4 kB / 415.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.646e-05/0.2709, allocations: 7.438 kB / 415.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2709, allocations: 4 kB / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02356/0.2945, allocations: 1.256 MB / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.358/8.653, allocations: 3.859 kB / 417 MB, free: 9.039 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1)