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.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.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001578/0.001578, allocations: 118.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.001915/0.001915, allocations: 198 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.429/1.429, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.00184/0.00184, allocations: 63.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2553, allocations: 50.55 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003779/0.2591, allocations: 1.984 MB / 411 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002567/0.2617, allocations: 1.34 MB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001825/0.262, allocations: 3.938 kB / 412.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003779/0.2624, allocations: 71.59 kB / 412.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005101/0.2629, allocations: 143.4 kB / 412.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008893/0.2638, allocations: 262.6 kB / 412.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003555/0.2642, allocations: 223.4 kB / 413.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.2643, allocations: 48.28 kB / 413.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.2645, allocations: 95.61 kB / 413.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000173/0.2647, allocations: 111.5 kB / 413.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.343e-05/0.2647, allocations: 12 kB / 413.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001852/0.2649, allocations: 75.95 kB / 413.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.422e-05/0.265, allocations: 67.75 kB / 413.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.2651, allocations: 103.3 kB / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004464/0.2656, allocations: 293.8 kB / 413.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2656, allocations: 0 / 413.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2656, allocations: 0 / 413.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.2656, allocations: 0 / 413.9 MB, free: 12.55 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.001077/0.2667, allocations: 0.6047 MB / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.2667, allocations: 8.031 kB / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.695e-05/0.2668, allocations: 50.75 kB / 414.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.82e-05/0.2669, allocations: 28.75 kB / 414.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004594/0.2673, allocations: 323.6 kB / 414.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.2674, allocations: 8.375 kB / 414.9 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.497e-05/0.2674, allocations: 15.94 kB / 414.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006022/0.268, allocations: 331.2 kB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.268, allocations: 0 / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/0.2681, allocations: 8 kB / 415.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/0.2681, allocations: 7.938 kB / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.2683, allocations: 71.89 kB / 415.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005885/0.2689, allocations: 410.4 kB / 415.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003908/0.2693, allocations: 204 kB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.2695, allocations: 90.53 kB / 416 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.2695, allocations: 4 kB / 416 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001774/0.2697, allocations: 83.31 kB / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.714e-06/0.2697, allocations: 0 / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005823/0.2703, allocations: 249.4 kB / 416.3 MB, free: 9.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.2704, allocations: 166.2 kB / 416.5 MB, free: 9.656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000395/0.2708, allocations: 362.9 kB / 416.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.2709, allocations: 37.7 kB / 416.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.271, allocations: 128.8 kB / 417 MB, free: 9.121 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.023e-05/0.271, allocations: 35.83 kB / 417 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.004e-05/0.2711, allocations: 57.88 kB / 417.1 MB, free: 9.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.2713, allocations: 338.8 kB / 417.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.2714, allocations: 40.45 kB / 417.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000236/0.2717, allocations: 186.9 kB / 417.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.272, allocations: 219.2 kB / 417.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.272, allocations: 0 / 417.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004283/0.2724, allocations: 237.6 kB / 418.1 MB, free: 7.891 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.2725, allocations: 8 kB / 418.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.2725, allocations: 4 kB / 418.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.2725, allocations: 4 kB / 418.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.2727, allocations: 44.55 kB / 418.2 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.2727, allocations: 7.984 kB / 418.2 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.2728, allocations: 23.89 kB / 418.2 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.2729, allocations: 16 kB / 418.2 MB, free: 7.785 MB / 334.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.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],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.0002103/0.2731, allocations: 180 kB / 418.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.2733, allocations: 141.4 kB / 418.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.347e-05/0.2734, allocations: 37.78 kB / 418.5 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.2734, allocations: 11.97 kB / 418.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.2734, allocations: 3.938 kB / 418.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2734, allocations: 0 / 418.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003229/0.2738, allocations: 273.4 kB / 418.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2738, allocations: 0 / 418.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.2739, allocations: 31.97 kB / 418.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2739, allocations: 0 / 418.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.274, allocations: 12 kB / 418.9 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.274, allocations: 3.938 kB / 418.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.274, allocations: 0 / 418.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000433/0.2744, allocations: 243.8 kB / 419.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.2746, allocations: 128.8 kB / 419.2 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.467e-05/0.2746, allocations: 11.98 kB / 419.3 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.475e-05/0.2747, allocations: 12 kB / 419.3 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.271e-05/0.2748, allocations: 15.92 kB / 419.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.2748, allocations: 4 kB / 419.3 MB, free: 6.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003043/0.2751, allocations: 257.9 kB / 419.5 MB, free: 6.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2751, allocations: 0 / 419.5 MB, free: 6.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000364/0.2755, allocations: 44 kB / 419.6 MB, free: 6.293 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.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.002883/0.2784, allocations: 1.195 MB / 420.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004753/0.2789, allocations: 156.4 kB / 420.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.2789, allocations: 0 / 420.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.773e-05/0.279, allocations: 31.97 kB / 421 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008558/0.2799, allocations: 124.5 kB / 421.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004511/0.2844, allocations: 2.723 MB / 423.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.2849, allocations: 0.7791 MB / 424.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.285, allocations: 34.27 kB / 424.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.2852, allocations: 79.41 kB / 424.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of SimCode: time 1.172e-06/0.2852, allocations: 4 kB / 424.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02929/0.3145, allocations: 6.437 MB / 431.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.707/9.022, allocations: 18.67 kB / 431.2 MB, free: 10.79 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.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_IntegerSignals_UpSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1)