Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.412/2.412, allocations: 251 MB / 265.9 MB, free: 11.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001504/0.001504, allocations: 184.2 kB / 325.5 MB, free: 2.895 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.331/2.331, allocations: 205.4 MB / 0.5764 GB, free: 21.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00105/0.00105, allocations: 95.06 kB / 0.6809 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000475/0.0004751, allocations: 14.88 kB / 0.7951 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2089, allocations: 106.3 MB / 0.8988 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2481/0.4571, allocations: 131.7 MB / 1.027 GB, free: 13.99 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.4574, allocations: 63.97 kB / 1.028 GB, free: 13.93 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004858/0.4623, allocations: 1.13 MB / 1.029 GB, free: 12.8 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.555e-06/0.4624, allocations: 0 / 1.029 GB, free: 12.8 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.507e-05/0.4624, allocations: 0 / 1.029 GB, free: 12.8 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007631/0.4632, allocations: 402.9 kB / 1.029 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.4632, allocations: 16.02 kB / 1.029 GB, free: 12.34 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.876e-05/0.4633, allocations: 34.56 kB / 1.029 GB, free: 12.3 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.951e-05/0.4634, allocations: 7.906 kB / 1.029 GB, free: 12.29 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.4635, allocations: 171 kB / 1.029 GB, free: 12.08 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.4636, allocations: 7.984 kB / 1.029 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.449e-05/0.4636, allocations: 8 kB / 1.029 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.4639, allocations: 81.53 kB / 1.029 GB, free: 11.98 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.4639, allocations: 0 / 1.029 GB, free: 11.98 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/0.464, allocations: 8 kB / 1.029 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.464, allocations: 0 / 1.029 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003384/0.4643, allocations: 55.95 kB / 1.029 GB, free: 11.92 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006374/0.465, allocations: 312.7 kB / 1.03 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002905/0.4653, allocations: 78.42 kB / 1.03 GB, free: 11.48 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.4653, allocations: 0 / 1.03 GB, free: 11.48 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003416/0.4657, allocations: 95.47 kB / 1.03 GB, free: 11.37 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=8): time 2.134e-06/0.4657, allocations: 0 / 1.03 GB, free: 11.37 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8): time 0.0007428/0.4665, allocations: 169.4 kB / 1.03 GB, free: 11.2 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.4665, allocations: 51.41 kB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.4667, allocations: 113.2 kB / 1.03 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.4667, allocations: 25.7 kB / 1.03 GB, free: 10.98 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.226e-05/0.4668, allocations: 104 kB / 1.03 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.4668, allocations: 15.81 kB / 1.03 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.295e-06/0.4668, allocations: 0 / 1.03 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002013/0.4671, allocations: 322.8 kB / 1.031 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.4673, allocations: 27.98 kB / 1.031 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.4675, allocations: 68.27 kB / 1.031 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.4677, allocations: 40.95 kB / 1.031 GB, free: 10.39 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4677, allocations: 4 kB / 1.031 GB, free: 10.39 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004952/0.4682, allocations: 121.5 kB / 1.031 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.4683, allocations: 8 kB / 1.031 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.4683, allocations: 4.109 kB / 1.031 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.4683, allocations: 8 kB / 1.031 GB, free: 10.24 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.4685, allocations: 27.88 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.4685, allocations: 4 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.4687, allocations: 15.98 kB / 1.031 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.4687, allocations: 0 / 1.031 GB, free: 10.2 MB / 0.6823 GB 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.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001358/0.4689, allocations: 127.5 kB / 1.031 GB, free: 10.06 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.357e-05/0.4689, allocations: 7.906 kB / 1.031 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005305/0.4695, allocations: 133.9 kB / 1.031 GB, free: 9.922 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.4695, allocations: 0 / 1.031 GB, free: 9.922 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4695, allocations: 3.953 kB / 1.031 GB, free: 9.918 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.4695, allocations: 4 kB / 1.031 GB, free: 9.914 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008461/0.4704, allocations: 402.4 kB / 1.032 GB, free: 9.465 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.4704, allocations: 4 kB / 1.032 GB, free: 9.461 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.4705, allocations: 12.36 kB / 1.032 GB, free: 9.449 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.4705, allocations: 0 / 1.032 GB, free: 9.449 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.4706, allocations: 11.95 kB / 1.032 GB, free: 9.438 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.783e-06/0.4706, allocations: 4 kB / 1.032 GB, free: 9.434 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4706, allocations: 7.875 kB / 1.032 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005303/0.4711, allocations: 215.5 kB / 1.032 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.556e-05/0.4712, allocations: 81.02 kB / 1.032 GB, free: 9.102 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.698e-05/0.4712, allocations: 4 kB / 1.032 GB, free: 9.098 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001859/0.4714, allocations: 19.94 kB / 1.032 GB, free: 9.078 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.817e-05/0.4715, allocations: 11.98 kB / 1.032 GB, free: 9.066 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.4715, allocations: 4 kB / 1.032 GB, free: 9.062 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.432e-05/0.4716, allocations: 95.2 kB / 1.032 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.91e-07/0.4716, allocations: 0 / 1.032 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003156/0.472, allocations: 16 kB / 1.032 GB, free: 8.953 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008984/0.4729, allocations: 0.7475 MB / 1.033 GB, free: 8.176 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004774/0.4734, allocations: 91.89 kB / 1.033 GB, free: 8.086 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.4734, allocations: 0 / 1.033 GB, free: 8.086 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002251/0.4736, allocations: 48.52 kB / 1.033 GB, free: 8.039 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.474, allocations: 13.92 kB / 1.033 GB, free: 8.027 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.4761, allocations: 1.193 MB / 1.034 GB, free: 6.766 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.4764, allocations: 0.6965 MB / 1.035 GB, free: 6.043 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 6.65e-05/0.4765, allocations: 4 kB / 1.035 GB, free: 6.039 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.174e-05/0.4766, allocations: 27.36 kB / 1.035 GB, free: 6.016 MB / 0.6823 GB Notification: Performance of SimCode: time 1.302e-06/0.4766, allocations: 0 / 1.035 GB, free: 6.016 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02144/0.4981, allocations: 1.689 MB / 1.036 GB, free: 4.469 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003812/0.4985, allocations: 190.4 kB / 1.037 GB, free: 4.23 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.321/2.819, allocations: 0 / 1.037 GB, free: 4.23 MB / 0.6823 GB