Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008199/0.008199, allocations: 102.3 kB / 15.73 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 197.1 kB / 16.67 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.598/1.598, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.476/1.476, allocations: 251.7 MB / 0.5094 GB, free: 424 kB / 430.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 71.89 kB / 0.7258 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7634/0.7649, allocations: 104.7 MB / 0.828 GB, free: 2.613 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002974/0.768, allocations: 1.465 MB / 0.8295 GB, free: 1.133 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0005705/0.7686, allocations: 234.4 kB / 0.8297 GB, free: 0.9023 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.707e-05/0.7686, allocations: 4 kB / 0.8297 GB, free: 0.8984 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 4.727e-05/0.7687, allocations: 7.875 kB / 0.8297 GB, free: 0.8906 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.7688, allocations: 11.86 kB / 0.8297 GB, free: 0.8789 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.7691, allocations: 31.91 kB / 0.8297 GB, free: 0.8477 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0001354/0.7692, allocations: 67.77 kB / 0.8298 GB, free: 0.7812 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.7694, allocations: 16.19 kB / 0.8298 GB, free: 0.7617 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 8.259e-05/0.7695, allocations: 31.92 kB / 0.8298 GB, free: 0.7305 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 6.786e-05/0.7696, allocations: 31.83 kB / 0.8299 GB, free: 0.6992 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.7696, allocations: 8 kB / 0.8299 GB, free: 0.6914 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 1.595e-05/0.7696, allocations: 4 kB / 0.8299 GB, free: 0.6875 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 2.878e-05/0.7697, allocations: 11.98 kB / 0.8299 GB, free: 0.6758 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 5.857e-05/0.7697, allocations: 39.73 kB / 0.8299 GB, free: 0.6367 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.7699, allocations: 63.3 kB / 0.83 GB, free: 0.5781 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.7699, allocations: 0 / 0.83 GB, free: 0.5781 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.654e-06/0.7699, allocations: 0 / 0.83 GB, free: 0.5781 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.7699, allocations: 0 / 0.83 GB, free: 0.5781 MB / 0.6231 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.0006605/0.7706, allocations: 389.6 kB / 0.8304 GB, free: 156 kB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.7706, allocations: 12.02 kB / 0.8304 GB, free: 144 kB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.923e-05/0.7707, allocations: 12.84 kB / 0.8304 GB, free: 132 kB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001948/0.7709, allocations: 168.3 kB / 0.8306 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.7709, allocations: 4.375 kB / 0.8306 GB, free: 15.92 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.931e-05/0.7709, allocations: 8.375 kB / 0.8306 GB, free: 15.91 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.7712, allocations: 78.09 kB / 0.8306 GB, free: 15.83 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.7712, allocations: 7.938 kB / 0.8306 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.7712, allocations: 4 kB / 0.8307 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.7712, allocations: 0 / 0.8307 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.7714, allocations: 51.94 kB / 0.8307 GB, free: 15.77 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000515/0.7719, allocations: 316.5 kB / 0.831 GB, free: 15.41 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.7721, allocations: 62.55 kB / 0.8311 GB, free: 15.34 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.7722, allocations: 32.97 kB / 0.8311 GB, free: 15.3 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.7723, allocations: 7.984 kB / 0.8311 GB, free: 15.3 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002313/0.7725, allocations: 79.36 kB / 0.8312 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=8): time 1.763e-06/0.7725, allocations: 0 / 0.8312 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of matching and sorting (n=8): time 0.0004599/0.773, allocations: 157.4 kB / 0.8313 GB, free: 15.05 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.773, allocations: 51.41 kB / 0.8314 GB, free: 14.98 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.7731, allocations: 121.8 kB / 0.8315 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.7732, allocations: 29.7 kB / 0.8315 GB, free: 14.82 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 6.338e-05/0.7732, allocations: 95.91 kB / 0.8316 GB, free: 14.72 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.7733, allocations: 15.81 kB / 0.8316 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.339e-05/0.7733, allocations: 29.7 kB / 0.8317 GB, free: 14.67 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.7734, allocations: 326.8 kB / 0.832 GB, free: 14.34 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.7735, allocations: 23.98 kB / 0.832 GB, free: 14.32 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.7737, allocations: 60.27 kB / 0.8321 GB, free: 14.25 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002149/0.7739, allocations: 96.12 kB / 0.8321 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.7739, allocations: 4 kB / 0.8321 GB, free: 14.13 MB / 0.6387 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002822/0.7742, allocations: 121.5 kB / 0.8323 GB, free: 14.01 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.7742, allocations: 8 kB / 0.8323 GB, free: 14 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.7742, allocations: 0 / 0.8323 GB, free: 14 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.7743, allocations: 4 kB / 0.8323 GB, free: 14 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.7744, allocations: 15.92 kB / 0.8323 GB, free: 13.98 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.7744, allocations: 4 kB / 0.8323 GB, free: 13.98 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.43e-05/0.7745, allocations: 15.92 kB / 0.8323 GB, free: 13.96 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.7745, allocations: 8.047 kB / 0.8323 GB, free: 13.95 MB / 0.6387 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 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,$whenCondition1,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.7746, allocations: 126.9 kB / 0.8324 GB, free: 13.82 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.767e-05/0.7746, allocations: 11.89 kB / 0.8324 GB, free: 13.81 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003186/0.775, allocations: 121.9 kB / 0.8326 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.775, allocations: 0 / 0.8326 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.775, allocations: 0 / 0.8326 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.775, allocations: 0 / 0.8326 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005598/0.7756, allocations: 398.3 kB / 0.8329 GB, free: 13.24 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.7756, allocations: 0 / 0.8329 GB, free: 13.24 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.122e-05/0.7756, allocations: 11.98 kB / 0.833 GB, free: 13.23 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.7757, allocations: 0 / 0.833 GB, free: 13.23 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.7757, allocations: 4 kB / 0.833 GB, free: 13.22 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.7757, allocations: 7.938 kB / 0.833 GB, free: 13.21 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.7757, allocations: 0 / 0.833 GB, free: 13.21 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003118/0.776, allocations: 203.5 kB / 0.8332 GB, free: 13 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 4.341e-05/0.7761, allocations: 85.02 kB / 0.8332 GB, free: 12.9 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.7761, allocations: 3.984 kB / 0.8332 GB, free: 12.89 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.7762, allocations: 15.92 kB / 0.8333 GB, free: 12.88 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.8e-05/0.7763, allocations: 11.98 kB / 0.8333 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.7763, allocations: 0 / 0.8333 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 6.223e-05/0.7763, allocations: 99.53 kB / 0.8334 GB, free: 12.77 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1e-07/0.7764, allocations: 0 / 0.8334 GB, free: 12.77 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0002362/0.7766, allocations: 19.98 kB / 0.8334 GB, free: 12.75 MB / 0.6387 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 (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.0001299/0.7767, allocations: 99.25 kB / 0.8335 GB, free: 12.64 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0003136/0.777, allocations: 71.89 kB / 0.8335 GB, free: 12.57 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.7771, allocations: 256 / 0.8335 GB, free: 12.57 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.7772, allocations: 43.97 kB / 0.8336 GB, free: 12.53 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.7775, allocations: 19.92 kB / 0.8336 GB, free: 12.51 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004171/0.7779, allocations: 170.7 kB / 0.8338 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.7783, allocations: 0.6922 MB / 0.8344 GB, free: 11.6 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 3.524e-05/0.7783, allocations: 11.95 kB / 0.8345 GB, free: 11.59 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.514e-05/0.7783, allocations: 15.42 kB / 0.8345 GB, free: 11.57 MB / 0.6387 GB Notification: Performance of SimCode: time 2.11e-07/0.7783, allocations: 0 / 0.8345 GB, free: 11.57 MB / 0.6387 GB Notification: Performance of Templates: time 0.003503/0.7818, allocations: 0.9621 MB / 0.8354 GB, free: 10.62 MB / 0.6387 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)