Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.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.RealSignals.UpSample2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001975/0.001975, allocations: 118.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.002002/0.002002, allocations: 197.2 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.635/1.635, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.002232/0.002232, allocations: 59.91 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.312, allocations: 50.54 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.003179/0.3153, allocations: 1.771 MB / 410.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.3166, allocations: 0.6778 MB / 411.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.3168, allocations: 11.88 kB / 411.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.3169, allocations: 19.8 kB / 411.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002261/0.3172, allocations: 43.72 kB / 411.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004732/0.3177, allocations: 127.7 kB / 411.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002324/0.3179, allocations: 163.5 kB / 411.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.3181, allocations: 29.55 kB / 411.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001964/0.3183, allocations: 79.69 kB / 412 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.3185, allocations: 103.6 kB / 412.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.889e-05/0.3186, allocations: 12 kB / 412.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.915e-05/0.3186, allocations: 19.98 kB / 412.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.3188, allocations: 67.81 kB / 412.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.3189, allocations: 87.47 kB / 412.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003525/0.3192, allocations: 214.1 kB / 412.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3193, allocations: 4 kB / 412.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.3193, allocations: 0 / 412.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.3193, allocations: 3.938 kB / 412.5 MB, free: 13.94 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001036/0.3203, allocations: 0.5217 MB / 413 MB, free: 13.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.3204, allocations: 8.031 kB / 413 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.815e-05/0.3205, allocations: 54.73 kB / 413.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000211/0.3207, allocations: 36.73 kB / 413.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003365/0.321, allocations: 259.9 kB / 413.4 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.275e-05/0.3211, allocations: 16.38 kB / 413.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.3211, allocations: 16.38 kB / 413.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.3223, allocations: 0.634 MB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.3223, allocations: 0 / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.272e-05/0.3224, allocations: 8 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.409e-05/0.3224, allocations: 11.98 kB / 414 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004118/0.3228, allocations: 195.8 kB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004928/0.3233, allocations: 362.3 kB / 414.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004494/0.3238, allocations: 243.6 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002786/0.3241, allocations: 162.6 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.529e-05/0.3241, allocations: 7.984 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.3241, allocations: 38.56 kB / 415 MB, free: 11.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.543e-06/0.3242, allocations: 4 kB / 415 MB, free: 11.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.0008932/0.3251, allocations: 425.9 kB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.3252, allocations: 130.8 kB / 415.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.3254, allocations: 166.4 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.3254, allocations: 37.7 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.67e-05/0.3255, allocations: 101.1 kB / 415.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.715e-05/0.3256, allocations: 51.8 kB / 415.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.3257, allocations: 70.14 kB / 416 MB, free: 10.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.3259, allocations: 342.7 kB / 416.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.326, allocations: 76.81 kB / 416.4 MB, free: 9.734 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003547/0.3264, allocations: 326.7 kB / 416.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005432/0.3269, allocations: 413 kB / 417.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3269, allocations: 7.938 kB / 417.1 MB, free: 8.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006342/0.3276, allocations: 409.4 kB / 417.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.3276, allocations: 10.97 kB / 417.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/0.3276, allocations: 12 kB / 417.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.777e-05/0.3277, allocations: 12 kB / 417.6 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.3279, allocations: 83.83 kB / 417.7 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.092e-05/0.328, allocations: 15.94 kB / 417.7 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.3281, allocations: 27.84 kB / 417.7 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.035e-05/0.3282, allocations: 24.34 kB / 417.7 MB, free: 8.176 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 13 ($CLKPRE.superSampleIpo.ticks,superSampleIpo.ticks,superSampleIpo.usedFactor,$CLKPRE.FIR1.first,FIR1.first,$CLKPRE.FIR2.first,FIR2.first,$CLKPRE.upSample.b_super,upSample.b_super,$CLKPRE.superSampleIpo.first,superSampleIpo.first,$CLKPRE.upSample.b,upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,FIR1.first,FIR1.u_buffer[2],FIR1.u_buffer[1],FIR2.first,FIR2.u_buffer[4],FIR2.u_buffer[3],FIR2.u_buffer[2],FIR2.u_buffer[1],upSample.b_super,superSampleIpo.first,superSampleIpo.uu,upSample.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0002048/0.3284, allocations: 189.5 kB / 417.9 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005374/0.3289, allocations: 298.4 kB / 418.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.108e-05/0.329, allocations: 34.66 kB / 418.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-06/0.329, allocations: 4 kB / 418.2 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.329, allocations: 0 / 418.2 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.3291, allocations: 3.984 kB / 418.2 MB, free: 7.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000285/0.3294, allocations: 253.3 kB / 418.5 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3294, allocations: 3.984 kB / 418.5 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002548/0.3296, allocations: 67.89 kB / 418.6 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.3296, allocations: 4 kB / 418.6 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.3297, allocations: 8 kB / 418.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.3297, allocations: 0 / 418.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3297, allocations: 3.984 kB / 418.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006465/0.3303, allocations: 443.8 kB / 419 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.3305, allocations: 128.9 kB / 419.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.216e-05/0.3305, allocations: 19.98 kB / 419.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001351/0.3307, allocations: 15.98 kB / 419.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.961e-05/0.3307, allocations: 0 / 419.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.3307, allocations: 12 kB / 419.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001116/0.3309, allocations: 136.2 kB / 419.3 MB, free: 6.484 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3309, allocations: 0 / 419.3 MB, free: 6.484 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004181/0.3313, allocations: 52 kB / 419.4 MB, free: 6.434 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 (upSample.b_super,FIR2.first,FIR1.first,superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (upSample.b_super,FIR2.u_buffer[1],FIR2.u_buffer[2],FIR2.u_buffer[3],FIR2.u_buffer[4],FIR2.first,FIR1.u_buffer[1],FIR1.u_buffer[2],FIR1.first,superSampleIpo.ticks,upSample.b,superSampleIpo.uu,superSampleIpo.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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.001283/0.3326, allocations: 1.184 MB / 420.5 MB, free: 5.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005238/0.3331, allocations: 289.3 kB / 420.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3331, allocations: 0 / 420.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.894e-05/0.3332, allocations: 8.547 kB / 420.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006801/0.3339, allocations: 229.7 kB / 421.1 MB, free: 4.699 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003849/0.3377, allocations: 2.961 MB / 424 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.3382, allocations: 0.78 MB / 424.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.999e-05/0.3383, allocations: 22.3 kB / 424.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.3384, allocations: 67.41 kB / 424.9 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3384, allocations: 0 / 424.9 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02763/0.3661, allocations: 5.088 MB / 430 MB, free: 11.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.244/8.61, allocations: 0 / 430 MB, free: 11.59 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.csv --start-time 0 --stop-time 0.06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.4e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1)