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.Sample1.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.Sample1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001326/0.001326, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001468/0.001468, allocations: 204.6 kB / 18.73 MB, free: 4.438 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.439/1.439, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.003103/0.003103, allocations: 64.03 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2546, allocations: 50.55 MB / 409.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002922/0.2576, allocations: 1.518 MB / 410.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004409/0.2581, allocations: 135.5 kB / 410.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.054e-05/0.2582, allocations: 0 / 410.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.005e-05/0.2582, allocations: 3.938 kB / 410.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.2584, allocations: 15.92 kB / 410.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.2587, allocations: 39.03 kB / 410.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.533e-05/0.2588, allocations: 35.91 kB / 410.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.2589, allocations: 11.98 kB / 410.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.802e-05/0.2589, allocations: 11.94 kB / 410.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.753e-05/0.259, allocations: 19.86 kB / 410.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.989e-05/0.259, allocations: 4 kB / 410.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.48e-05/0.259, allocations: 4 kB / 410.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.339e-05/0.2591, allocations: 19.88 kB / 410.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.341e-05/0.2591, allocations: 19.86 kB / 410.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.2593, allocations: 50.7 kB / 410.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2593, allocations: 0 / 410.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2593, allocations: 0 / 410.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.2593, allocations: 0 / 410.9 MB, free: 15.63 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005344/0.2598, allocations: 367.2 kB / 411.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.2599, allocations: 8.031 kB / 411.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.381e-05/0.2599, allocations: 38.75 kB / 411.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.684e-05/0.26, allocations: 8.891 kB / 411.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002975/0.2603, allocations: 196.2 kB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.2603, allocations: 384 / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.2603, allocations: 4.375 kB / 411.5 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.2606, allocations: 121.5 kB / 411.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.2607, allocations: 3.938 kB / 411.7 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.2607, allocations: 7.984 kB / 411.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.2607, allocations: 0 / 411.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.912e-05/0.2608, allocations: 19.98 kB / 411.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003677/0.2612, allocations: 261.7 kB / 412 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/0.2614, allocations: 142.2 kB / 412.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.104e-05/0.2615, allocations: 33.7 kB / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.2615, allocations: 0 / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.2616, allocations: 34.56 kB / 412.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 2.986e-06/0.2616, allocations: 4 kB / 412.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002467/0.2618, allocations: 81.5 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.781e-05/0.2619, allocations: 81.09 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.262, allocations: 130.1 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.2621, allocations: 29.7 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.304e-05/0.2621, allocations: 84.14 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.967e-06/0.2621, allocations: 3.953 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.942e-05/0.2622, allocations: 29.83 kB / 412.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.2623, allocations: 314.8 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.873e-05/0.2624, allocations: 4 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.178e-05/0.2624, allocations: 35.42 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.78e-05/0.2625, allocations: 55.36 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2625, allocations: 3.938 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000125/0.2627, allocations: 69.55 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2627, allocations: 4 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2627, allocations: 0 / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.2627, allocations: 8.125 kB / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.434e-05/0.2628, allocations: 8 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.2628, allocations: 0 / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.474e-05/0.2628, allocations: 11.94 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-06/0.2628, allocations: 0 / 413.1 MB, free: 13.15 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: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * 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 0.0001021/0.2629, allocations: 121.8 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.263, allocations: 49.58 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.416e-05/0.2631, allocations: 12.25 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2631, allocations: 4 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.2631, allocations: 4 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.2631, allocations: 0 / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002266/0.2633, allocations: 169.6 kB / 413.4 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2633, allocations: 0 / 413.4 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.853e-05/0.2634, allocations: 11.98 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.2634, allocations: 3.938 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-06/0.2634, allocations: 0 / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2634, allocations: 4 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2634, allocations: 0 / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001966/0.2636, allocations: 176.5 kB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.818e-05/0.2637, allocations: 97.03 kB / 413.7 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.2637, allocations: 0 / 413.7 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.442e-05/0.2638, allocations: 0 / 413.7 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.716e-05/0.2638, allocations: 4 kB / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-06/0.2638, allocations: 0 / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.069e-05/0.2639, allocations: 114.3 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2639, allocations: 4 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002183/0.2642, allocations: 4 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.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.0006504/0.2648, allocations: 0.7015 MB / 414.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001525/0.265, allocations: 27.98 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.265, allocations: 3.938 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.774e-05/0.265, allocations: 11.98 kB / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000355/0.2654, allocations: 24 kB / 414.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.2668, allocations: 1.314 MB / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.2672, allocations: 0.6924 MB / 416.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.357e-05/0.2673, allocations: 12 kB / 416.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.177e-05/0.2673, allocations: 11.44 kB / 416.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2673, allocations: 0 / 416.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02236/0.2897, allocations: 1.478 MB / 418.1 MB, free: 7.984 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.076/8.366, allocations: 8 kB / 418.1 MB, free: 7.977 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1)