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.Hold.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.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001361/0.001361, 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.001849/0.001849, 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.426/1.426, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.002242/0.002242, allocations: 63.91 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2467, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003357/0.25, allocations: 1.929 MB / 411 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002222/0.2523, allocations: 1.301 MB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.2525, allocations: 0 / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003136/0.2528, allocations: 67.67 kB / 412.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000437/0.2533, allocations: 135.4 kB / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007401/0.254, allocations: 226.4 kB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003138/0.2544, allocations: 191.5 kB / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.2545, allocations: 29.55 kB / 412.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.2547, allocations: 79.62 kB / 413 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.2548, allocations: 83.62 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.2549, allocations: 12 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000183/0.2551, allocations: 67.95 kB / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.589e-05/0.2552, allocations: 55.77 kB / 413.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.318e-05/0.2553, allocations: 79.42 kB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003927/0.2557, allocations: 250 kB / 413.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2557, allocations: 0 / 413.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2557, allocations: 0 / 413.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.2557, allocations: 0 / 413.5 MB, free: 12.88 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000792/0.2565, allocations: 0.5581 MB / 414.1 MB, free: 12.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.2566, allocations: 12.03 kB / 414.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.376e-05/0.2566, allocations: 34.75 kB / 414.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.767e-05/0.2567, allocations: 32.69 kB / 414.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.2571, allocations: 295.7 kB / 414.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.2572, allocations: 8.375 kB / 414.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.2572, allocations: 15.86 kB / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.2575, allocations: 168.4 kB / 414.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.2576, allocations: 3.984 kB / 414.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/0.2576, allocations: 8 kB / 414.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.2576, allocations: 0 / 414.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.2577, allocations: 39.92 kB / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005954/0.2583, allocations: 482.5 kB / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.2586, allocations: 142.5 kB / 415.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.2587, allocations: 55.42 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.2588, allocations: 8 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000193/0.259, allocations: 96.98 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.259, allocations: 0 / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004354/0.2594, allocations: 173.7 kB / 415.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.2596, allocations: 188 kB / 415.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003865/0.26, allocations: 346.9 kB / 416.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.26, allocations: 25.7 kB / 416.2 MB, free: 9.898 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.2601, allocations: 132.4 kB / 416.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.2601, allocations: 19.89 kB / 416.3 MB, free: 9.742 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.818e-05/0.2602, allocations: 33.7 kB / 416.4 MB, free: 9.703 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2603, allocations: 334.8 kB / 416.7 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.694e-05/0.2604, allocations: 31.92 kB / 416.7 MB, free: 9.336 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.2606, allocations: 95.72 kB / 416.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.2608, allocations: 97.06 kB / 416.9 MB, free: 9.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2608, allocations: 0 / 416.9 MB, free: 9.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002787/0.2611, allocations: 133.4 kB / 417 MB, free: 8.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.2611, allocations: 8.156 kB / 417 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.2611, allocations: 7.938 kB / 417.1 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.2611, allocations: 4 kB / 417.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.2612, allocations: 27.92 kB / 417.1 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.2613, allocations: 0 / 417.1 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.302e-05/0.2613, allocations: 23.81 kB / 417.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.2614, allocations: 4 kB / 417.1 MB, free: 8.891 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001491/0.2615, allocations: 157.8 kB / 417.3 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.771e-05/0.2616, allocations: 77.48 kB / 417.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.607e-05/0.2617, allocations: 37.72 kB / 417.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.2617, allocations: 0 / 417.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2617, allocations: 0 / 417.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.2617, allocations: 7.938 kB / 417.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.262, allocations: 245.6 kB / 417.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.262, allocations: 4.312 kB / 417.6 MB, free: 8.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.558e-05/0.2621, allocations: 19.92 kB / 417.7 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.2621, allocations: 4 kB / 417.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.2621, allocations: 8 kB / 417.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.2621, allocations: 64 / 417.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2621, allocations: 4 kB / 417.7 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002984/0.2624, allocations: 191.3 kB / 417.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.2625, allocations: 116.9 kB / 418 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.2626, allocations: 8 kB / 418 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.806e-05/0.2627, allocations: 7.984 kB / 418 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.82e-05/0.2627, allocations: 15.94 kB / 418 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.2627, allocations: 7.984 kB / 418 MB, free: 7.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002549/0.263, allocations: 245.9 kB / 418.2 MB, free: 7.648 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.263, allocations: 0 / 418.2 MB, free: 7.648 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002634/0.2633, allocations: 35.98 kB / 418.3 MB, free: 7.613 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002024/0.2653, allocations: 1.044 MB / 419.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003131/0.2656, allocations: 76.16 kB / 419.4 MB, free: 6.617 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.2657, allocations: 8.062 kB / 419.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.2658, allocations: 35.92 kB / 419.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005349/0.2663, allocations: 72.73 kB / 419.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003426/0.2698, allocations: 2.289 MB / 421.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.2701, allocations: 0.7437 MB / 422.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001142/0.2703, allocations: 25.55 kB / 422.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.2704, allocations: 67.41 kB / 422.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of SimCode: time 8.92e-07/0.2704, allocations: 0 / 422.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.2989, allocations: 5.497 MB / 428.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.139/8.437, allocations: 10.97 kB / 428.1 MB, free: 13.88 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_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_Hold.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1)