Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001396/0.001396, allocations: 122.8 kB / 17.79 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.001555/0.001555, allocations: 202 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.392/1.392, 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.00181/0.00181, allocations: 59.91 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2539, allocations: 50.55 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003185/0.2571, allocations: 1.898 MB / 411 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.259, allocations: 1.192 MB / 412.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.2592, allocations: 3.938 kB / 412.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005654/0.2597, allocations: 155.5 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003538/0.2601, allocations: 147.4 kB / 412.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004633/0.2606, allocations: 171.4 kB / 412.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002451/0.2608, allocations: 187.6 kB / 412.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.956e-05/0.261, allocations: 33.44 kB / 412.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.2611, allocations: 79.69 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.2612, allocations: 67.7 kB / 413 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.449e-05/0.2612, allocations: 8 kB / 413 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.2614, allocations: 63.89 kB / 413.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.676e-05/0.2614, allocations: 39.84 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.026e-05/0.2615, allocations: 79.47 kB / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003089/0.2618, allocations: 202.3 kB / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2619, allocations: 4 kB / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2619, allocations: 0 / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.2619, allocations: 0 / 413.4 MB, free: 13.05 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007253/0.2626, allocations: 0.5271 MB / 413.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.2627, allocations: 8.031 kB / 413.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.459e-05/0.2627, allocations: 42.73 kB / 413.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.945e-05/0.2628, allocations: 20.8 kB / 414 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003295/0.2631, allocations: 275 kB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.2631, allocations: 8.375 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.447e-05/0.2631, allocations: 15.88 kB / 414.3 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002934/0.2634, allocations: 145.2 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.2635, allocations: 4 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.2635, allocations: 0 / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.2635, allocations: 4 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.56e-05/0.2636, allocations: 39.91 kB / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004549/0.2641, allocations: 358.4 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002154/0.2643, allocations: 111.9 kB / 414.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.295e-05/0.2644, allocations: 42.56 kB / 414.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.2644, allocations: 0 / 414.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001482/0.2646, allocations: 79.33 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.312e-06/0.2646, allocations: 0 / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003332/0.2649, allocations: 141.4 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.298e-05/0.265, allocations: 144.4 kB / 415.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002944/0.2653, allocations: 277.2 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.2653, allocations: 25.7 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.92e-05/0.2654, allocations: 120.2 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.575e-05/0.2655, allocations: 23.83 kB / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.941e-05/0.2655, allocations: 33.67 kB / 415.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2657, allocations: 330.8 kB / 416.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.9e-05/0.2657, allocations: 16 kB / 416.1 MB, free: 10 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.2659, allocations: 77.98 kB / 416.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001284/0.266, allocations: 68.23 kB / 416.3 MB, free: 9.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.266, allocations: 4.031 kB / 416.3 MB, free: 9.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002042/0.2662, allocations: 117.7 kB / 416.4 MB, free: 9.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.2662, allocations: 4 kB / 416.4 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.2662, allocations: 8.062 kB / 416.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.2663, allocations: 0 / 416.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.456e-05/0.2663, allocations: 15.98 kB / 416.4 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.2663, allocations: 0 / 416.4 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.601e-05/0.2664, allocations: 19.83 kB / 416.4 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.2664, allocations: 8.125 kB / 416.4 MB, free: 9.645 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001242/0.2666, allocations: 145.8 kB / 416.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.25e-05/0.2667, allocations: 65.53 kB / 416.6 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.901e-05/0.2667, allocations: 25.7 kB / 416.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.2667, allocations: 0 / 416.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.2667, allocations: 4 kB / 416.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.2667, allocations: 3.938 kB / 416.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.2669, allocations: 221.5 kB / 416.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.267, allocations: 12.05 kB / 416.9 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.456e-05/0.267, allocations: 4 kB / 416.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.267, allocations: 0 / 416.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.267, allocations: 4 kB / 416.9 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.267, allocations: 4 kB / 416.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.267, allocations: 0 / 416.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002449/0.2673, allocations: 158.6 kB / 417.1 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.917e-05/0.2674, allocations: 112.9 kB / 417.2 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.54e-05/0.2674, allocations: 0 / 417.2 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.92e-05/0.2675, allocations: 8.078 kB / 417.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.2675, allocations: 15.88 kB / 417.2 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.2675, allocations: 4 kB / 417.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001978/0.2677, allocations: 200.5 kB / 417.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2678, allocations: 0 / 417.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002424/0.268, allocations: 31.92 kB / 417.4 MB, free: 8.535 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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 (9): * Single equations (assignments): 7 * 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.00184/0.2698, allocations: 1.008 MB / 418.4 MB, free: 7.652 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002023/0.2701, allocations: 67.92 kB / 418.5 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2701, allocations: 0 / 418.5 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.006e-05/0.2702, allocations: 31.92 kB / 418.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.2705, allocations: 71.89 kB / 418.6 MB, free: 7.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.2728, allocations: 1.945 MB / 420.5 MB, free: 5.426 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.2732, allocations: 0.728 MB / 421.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.037e-05/0.2732, allocations: 21.48 kB / 421.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.052e-05/0.2733, allocations: 47.42 kB / 421.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2734, allocations: 4 kB / 421.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.403/1.676, allocations: 4.644 MB / 426 MB, free: 116 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.263/10.94, allocations: 6.516 kB / 426 MB, free: 112 kB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_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_BooleanSignals_SubSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1)