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.UpSample.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.UpSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001458/0.001458, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 199.5 kB / 18.79 MB, free: 4.156 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.45/1.45, allocations: 230.4 MB / 250 MB, free: 9.047 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.002648/0.002648, allocations: 71.83 kB / 366.8 MB, free: 7.555 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2784, allocations: 53.31 MB / 420.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004034/0.2824, allocations: 2.019 MB / 422.2 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002247/0.2847, allocations: 1.266 MB / 423.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.2848, allocations: 4 kB / 423.4 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007274/0.2855, allocations: 151.4 kB / 423.6 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005826/0.2861, allocations: 171.3 kB / 423.8 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007471/0.2869, allocations: 207.2 kB / 424 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004914/0.2874, allocations: 227.4 kB / 424.2 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.2875, allocations: 40.27 kB / 424.2 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.2877, allocations: 91.62 kB / 424.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001641/0.2878, allocations: 111.5 kB / 424.4 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.368e-05/0.2879, allocations: 12 kB / 424.4 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.2881, allocations: 59.97 kB / 424.5 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.894e-05/0.2882, allocations: 59.81 kB / 424.6 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.2883, allocations: 87.36 kB / 424.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004215/0.2887, allocations: 262 kB / 424.9 MB, free: 3.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2887, allocations: 0 / 424.9 MB, free: 3.539 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2887, allocations: 0 / 424.9 MB, free: 3.539 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.2887, allocations: 0 / 424.9 MB, free: 3.539 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001043/0.2898, allocations: 0.5727 MB / 425.5 MB, free: 2.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.2898, allocations: 12.03 kB / 425.5 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.2899, allocations: 46.73 kB / 425.5 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.712e-05/0.29, allocations: 24.8 kB / 425.5 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.2904, allocations: 282.9 kB / 425.8 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.2904, allocations: 16.36 kB / 425.8 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.938e-05/0.2904, allocations: 15.94 kB / 425.9 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006333/0.2911, allocations: 319.6 kB / 426.2 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2911, allocations: 0 / 426.2 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.2911, allocations: 4 kB / 426.2 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.2911, allocations: 4 kB / 426.2 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.2913, allocations: 63.84 kB / 426.2 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006311/0.2919, allocations: 386.3 kB / 426.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003553/0.2923, allocations: 163.8 kB / 426.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.2924, allocations: 82.67 kB / 426.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.526e-05/0.2924, allocations: 8.062 kB / 426.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001811/0.2926, allocations: 71.39 kB / 426.9 MB, free: 1.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.2926, allocations: 0 / 426.9 MB, free: 1.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.00063/0.2933, allocations: 225.4 kB / 427.2 MB, free: 1.051 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.2934, allocations: 148.5 kB / 427.3 MB, free: 0.875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003519/0.2937, allocations: 284.9 kB / 427.6 MB, free: 0.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.2938, allocations: 33.64 kB / 427.6 MB, free: 0.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.2939, allocations: 120.6 kB / 427.7 MB, free: 428 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.291e-05/0.294, allocations: 31.83 kB / 427.8 MB, free: 396 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.527e-05/0.294, allocations: 53.92 kB / 427.8 MB, free: 336 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.2942, allocations: 338.8 kB / 428.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.061e-05/0.2943, allocations: 32.45 kB / 428.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.2945, allocations: 170.1 kB / 428.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003114/0.2948, allocations: 203.2 kB / 428.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2948, allocations: 0 / 428.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003655/0.2952, allocations: 225.4 kB / 428.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.2952, allocations: 4 kB / 428.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.2952, allocations: 4 kB / 428.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.2952, allocations: 8 kB / 428.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.996e-05/0.2953, allocations: 23.92 kB / 428.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.2953, allocations: 11.94 kB / 428.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.2954, allocations: 23.83 kB / 428.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.2955, allocations: 8 kB / 428.8 MB, free: 15.17 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0002153/0.2957, allocations: 168.2 kB / 429 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.2959, allocations: 133.7 kB / 429.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.847e-05/0.2959, allocations: 33.64 kB / 429.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2959, allocations: 4 kB / 429.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.2959, allocations: 0 / 429.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.296, allocations: 11.91 kB / 429.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.2962, allocations: 241.6 kB / 429.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2962, allocations: 320 / 429.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.705e-05/0.2963, allocations: 19.92 kB / 429.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2963, allocations: 0 / 429.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.2963, allocations: 12 kB / 429.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2963, allocations: 0 / 429.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2963, allocations: 0 / 429.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004293/0.2967, allocations: 231.7 kB / 429.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.2968, allocations: 124.9 kB / 429.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.972e-05/0.2969, allocations: 8 kB / 429.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.16e-05/0.2969, allocations: 7.984 kB / 429.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.505e-05/0.297, allocations: 8 kB / 429.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.297, allocations: 7.984 kB / 429.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002109/0.2972, allocations: 208.4 kB / 430 MB, free: 13.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2972, allocations: 0 / 430 MB, free: 13.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003575/0.2976, allocations: 43.94 kB / 430.1 MB, free: 13.82 MB / 350.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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.002321/0.2999, allocations: 1.149 MB / 431.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003645/0.3003, allocations: 135.9 kB / 431.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3003, allocations: 4 kB / 431.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.853e-05/0.3003, allocations: 19.94 kB / 431.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005136/0.3008, allocations: 120.5 kB / 431.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003103/0.3039, allocations: 2.413 MB / 433.9 MB, free: 9.922 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004278/0.3044, allocations: 0.7596 MB / 434.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.973e-05/0.3045, allocations: 26.22 kB / 434.7 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.3046, allocations: 63.42 kB / 434.8 MB, free: 9.047 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3046, allocations: 0 / 434.8 MB, free: 9.047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03307/0.3377, allocations: 5.742 MB / 440.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.154/8.492, allocations: 7.375 kB / 440.5 MB, free: 3.434 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1)