Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.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.ClockSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_ClockSignals_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.001415/0.001415, allocations: 117.2 kB / 17.78 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 200.6 kB / 18.73 MB, free: 4.426 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.577/1.577, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.002017/0.002017, allocations: 63.91 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3245, allocations: 50.55 MB / 409 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.003944/0.3285, allocations: 1.569 MB / 410.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.3297, allocations: 0.5259 MB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.3299, allocations: 0 / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.223e-05/0.3299, allocations: 7.922 kB / 411.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.3301, allocations: 15.88 kB / 411.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000337/0.3304, allocations: 55.8 kB / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000116/0.3306, allocations: 43.86 kB / 411.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.3307, allocations: 16.17 kB / 411.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.3308, allocations: 39.84 kB / 411.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.132e-05/0.3309, allocations: 23.86 kB / 411.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.3309, allocations: 4 kB / 411.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.18e-05/0.331, allocations: 4 kB / 411.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.095e-05/0.331, allocations: 11.94 kB / 411.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.993e-05/0.3311, allocations: 27.8 kB / 411.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.3312, allocations: 58.69 kB / 411.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3313, allocations: 4 kB / 411.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3313, allocations: 0 / 411.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.3313, allocations: 0 / 411.4 MB, free: 14.98 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005253/0.3318, allocations: 383 kB / 411.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3319, allocations: 12.03 kB / 411.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.204e-05/0.3319, allocations: 34.75 kB / 411.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.3321, allocations: 16.88 kB / 411.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002908/0.3324, allocations: 208.2 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.3324, allocations: 384 / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.3324, allocations: 8.375 kB / 412.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.3327, allocations: 105 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.3327, allocations: 0 / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.3327, allocations: 7.922 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.3327, allocations: 0 / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.673e-05/0.3328, allocations: 31.86 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003554/0.3332, allocations: 253.8 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.288e-05/0.3333, allocations: 53.14 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.328e-05/0.3334, allocations: 17.78 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.3334, allocations: 7.984 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.3334, allocations: 34.56 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 3.146e-06/0.3334, allocations: 3.984 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002557/0.3337, allocations: 65.56 kB / 412.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.715e-05/0.3338, allocations: 77.36 kB / 412.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.3339, allocations: 148.4 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.3339, allocations: 25.7 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.142e-05/0.334, allocations: 92.12 kB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.775e-05/0.334, allocations: 3.953 kB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.708e-05/0.3341, allocations: 17.72 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3342, allocations: 314.8 kB / 413.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.534e-05/0.3343, allocations: 11.98 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.495e-05/0.3343, allocations: 25.66 kB / 413.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.986e-05/0.3344, allocations: 25.7 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3344, allocations: 4 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001202/0.3346, allocations: 61.56 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.3346, allocations: 4 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.3346, allocations: 4.125 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.3346, allocations: 0 / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.801e-05/0.3347, allocations: 8 kB / 413.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.3347, allocations: 0 / 413.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.974e-05/0.3347, allocations: 7.984 kB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.3348, allocations: 4 kB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.573e-05/0.3349, allocations: 117.8 kB / 413.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.741e-05/0.3349, allocations: 45.58 kB / 413.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.717e-05/0.335, allocations: 15.86 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.335, allocations: 4 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.335, allocations: 0 / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.335, allocations: 0 / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.3352, allocations: 169.6 kB / 413.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3352, allocations: 3.938 kB / 413.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.35e-05/0.3353, allocations: 11.98 kB / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.3353, allocations: 0 / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.3353, allocations: 0 / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3353, allocations: 0 / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3353, allocations: 0 / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001941/0.3355, allocations: 160.3 kB / 414 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.791e-05/0.3356, allocations: 96.98 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.3356, allocations: 7.938 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.615e-05/0.3357, allocations: 3.984 kB / 414.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.905e-05/0.3357, allocations: 0 / 414.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-06/0.3357, allocations: 8.031 kB / 414.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.96e-05/0.3358, allocations: 107.2 kB / 414.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3358, allocations: 0 / 414.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.3361, allocations: 8 kB / 414.2 MB, free: 11.82 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.000494/0.3366, allocations: 0.6937 MB / 414.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.3367, allocations: 23.92 kB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3367, allocations: 0 / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.572e-05/0.3368, allocations: 8 kB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000336/0.3371, allocations: 16.02 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.3385, allocations: 1.335 MB / 416.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.3388, allocations: 0.6916 MB / 417 MB, free: 8.914 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.203e-05/0.3389, allocations: 0 / 417 MB, free: 8.914 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.514e-05/0.3389, allocations: 19.47 kB / 417 MB, free: 8.895 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3389, allocations: 0 / 417 MB, free: 8.895 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02109/0.36, allocations: 1.566 MB / 418.6 MB, free: 7.469 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.314/8.674, allocations: 15.81 kB / 418.6 MB, free: 7.457 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.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_ClockSignals_SubSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1)