Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00214/0.00214, allocations: 193.3 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.911/2.911, allocations: 472.6 MB / 0.7448 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 67.22 kB / 0.9115 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4528/0.4542, allocations: 159.9 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.003348/0.4576, allocations: 0.7269 MB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00188/0.4595, allocations: 1.065 MB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.895e-05/0.4596, allocations: 4 kB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.883e-05/0.4597, allocations: 0 / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.15e-05/0.4598, allocations: 7.938 kB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003943/0.4602, allocations: 35.89 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001451/0.4604, allocations: 47.92 kB / 1.07 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.4605, allocations: 11.98 kB / 1.07 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.4607, allocations: 19.92 kB / 1.07 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.797e-05/0.4607, allocations: 27.91 kB / 1.07 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.59e-05/0.4608, allocations: 4 kB / 1.07 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.4609, allocations: 19.92 kB / 1.07 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.213e-05/0.4609, allocations: 19.92 kB / 1.07 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.491e-05/0.461, allocations: 15.94 kB / 1.07 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.4613, allocations: 59.83 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.345e-06/0.4613, allocations: 0 / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.264e-06/0.4613, allocations: 0 / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.338e-05/0.4613, allocations: 0 / 1.07 GB, free: 8.762 MB / 0.8262 GB 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.0008179/0.4621, allocations: 367.6 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.4622, allocations: 15.97 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.098e-05/0.4623, allocations: 4.844 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.4624, allocations: 176.3 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.4624, allocations: 384 / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.4625, allocations: 8.375 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002378/0.4627, allocations: 70.2 kB / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.4627, allocations: 192 / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.4628, allocations: 7.875 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.4628, allocations: 0 / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001994/0.463, allocations: 47.95 kB / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000576/0.4636, allocations: 276.8 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.4637, allocations: 58.48 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.4639, allocations: 28.95 kB / 1.071 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.4639, allocations: 15.94 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002484/0.4642, allocations: 67.38 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.4642, allocations: 0 / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004705/0.4646, allocations: 121.7 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.171e-05/0.4647, allocations: 59.39 kB / 1.071 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.4648, allocations: 109.8 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.4649, allocations: 25.7 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.018e-05/0.465, allocations: 88.05 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.034e-05/0.465, allocations: 27.67 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.907e-05/0.4651, allocations: 21.72 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.4652, allocations: 318.8 kB / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.4653, allocations: 24.23 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.4654, allocations: 60.27 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002543/0.4657, allocations: 100.1 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4657, allocations: 0 / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002877/0.466, allocations: 117.5 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.466, allocations: 9.875 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.4661, allocations: 0 / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.4661, allocations: 0 / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.4662, allocations: 24.11 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.4662, allocations: 7.938 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.736e-05/0.4663, allocations: 11.89 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.4663, allocations: 4 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001085/0.4665, allocations: 121.9 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.538e-05/0.4665, allocations: 4 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003032/0.4668, allocations: 110 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.4668, allocations: 0 / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.4668, allocations: 3.984 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.4668, allocations: 0 / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004871/0.4673, allocations: 366.3 kB / 1.072 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.4673, allocations: 0 / 1.072 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.087e-05/0.4674, allocations: 15.98 kB / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.4674, allocations: 4 kB / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.4674, allocations: 0 / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.4674, allocations: 0 / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.4674, allocations: 0 / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003305/0.4678, allocations: 199.4 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.347e-05/0.4679, allocations: 85.02 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.4679, allocations: 0 / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.863e-05/0.468, allocations: 11.98 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.468, allocations: 4 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.4681, allocations: 7.922 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.096e-05/0.4681, allocations: 87.28 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4681, allocations: 0 / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002572/0.4684, allocations: 16 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0002272/0.4686, allocations: 109.4 kB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003219/0.469, allocations: 75.89 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.469, allocations: 0 / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.4691, allocations: 35.91 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.4694, allocations: 14.08 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000437/0.4699, allocations: 162.3 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.4702, allocations: 0.6807 MB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.124e-05/0.4702, allocations: 7.984 kB / 1.074 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.14e-05/0.4702, allocations: 11.44 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of SimCode: time 7.424e-06/0.4703, allocations: 0 / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of Templates: time 0.003891/0.4742, allocations: 0.7789 MB / 1.075 GB, free: 3.242 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1)