Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_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_1.6_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.001484/0.001483, 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.001315/0.001315, allocations: 195.3 kB / 16.25 MB, free: 6.617 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.509/1.509, 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.898/2.898, allocations: 472.6 MB / 0.7448 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 61.53 kB / 0.9115 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4599/0.4612, allocations: 159.9 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002443/0.4637, allocations: 0.7385 MB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001684/0.4654, allocations: 1.073 MB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.665e-05/0.4655, allocations: 0 / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.619e-05/0.4655, allocations: 0 / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.043e-05/0.4656, allocations: 7.938 kB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000349/0.466, allocations: 35.89 kB / 1.07 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.4661, allocations: 47.91 kB / 1.07 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.4662, allocations: 12 kB / 1.07 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.076e-05/0.4663, allocations: 23.91 kB / 1.07 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.912e-05/0.4664, allocations: 15.92 kB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.4664, allocations: 8 kB / 1.07 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.4665, allocations: 27.92 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.342e-05/0.4665, allocations: 11.92 kB / 1.07 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.813e-05/0.4666, allocations: 27.91 kB / 1.07 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.4667, allocations: 47.86 kB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.817e-06/0.4668, allocations: 4 kB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.195e-06/0.4668, allocations: 0 / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.4668, allocations: 0 / 1.07 GB, free: 8.672 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.0007084/0.4675, allocations: 375.6 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.4675, allocations: 8.031 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.948e-05/0.4676, allocations: 12.83 kB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.4678, allocations: 168.3 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-06/0.4678, allocations: 384 / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.4678, allocations: 4.375 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002194/0.468, allocations: 62.22 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.468, allocations: 8.125 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.4681, allocations: 15.88 kB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.4681, allocations: 0 / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.4683, allocations: 39.95 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005259/0.4688, allocations: 276.8 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001694/0.469, allocations: 62.48 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.4691, allocations: 32.91 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.4691, allocations: 0 / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002214/0.4693, allocations: 79.44 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.492e-06/0.4694, allocations: 0 / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004312/0.4698, allocations: 121.6 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.4699, allocations: 55.41 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.47, allocations: 105.8 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.47, allocations: 33.64 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.95e-05/0.4701, allocations: 88.05 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.693e-05/0.4701, allocations: 19.73 kB / 1.071 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.501e-05/0.4702, allocations: 21.72 kB / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.4703, allocations: 322.8 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.4704, allocations: 23.98 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.4706, allocations: 56.27 kB / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002693/0.4709, allocations: 100.1 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4709, allocations: 0 / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002656/0.4712, allocations: 117.6 kB / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.4712, allocations: 8 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.4712, allocations: 4 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.4712, allocations: 256 / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.4714, allocations: 15.98 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.4714, allocations: 15.92 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.29e-05/0.4715, allocations: 11.91 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.4715, allocations: 7.938 kB / 1.072 GB, free: 6.188 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.0001289/0.4716, allocations: 119.5 kB / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.333e-05/0.4716, allocations: 7.984 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003064/0.4719, allocations: 110 kB / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.472, allocations: 0 / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.472, allocations: 0 / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.472, allocations: 0 / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004687/0.4725, allocations: 362.3 kB / 1.072 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.4725, allocations: 4.188 kB / 1.072 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.948e-05/0.4725, allocations: 11.98 kB / 1.072 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.4725, allocations: 7.938 kB / 1.072 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.4726, allocations: 0 / 1.072 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.4726, allocations: 0 / 1.072 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4726, allocations: 0 / 1.072 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002873/0.4729, allocations: 203.4 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.836e-05/0.4729, allocations: 81.02 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.473, allocations: 4 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.735e-05/0.4731, allocations: 11.98 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.4731, allocations: 7.984 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.4731, allocations: 3.938 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.423e-05/0.4732, allocations: 83.28 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4732, allocations: 0 / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002397/0.4734, allocations: 12 kB / 1.073 GB, free: 5.074 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.00019/0.4736, allocations: 115.2 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002748/0.4739, allocations: 67.89 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4739, allocations: 3.938 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.474, allocations: 36.52 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.4743, allocations: 11.38 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003962/0.4747, allocations: 162 kB / 1.073 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.475, allocations: 0.6807 MB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.472e-05/0.4751, allocations: 7.984 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.676e-05/0.4751, allocations: 15.44 kB / 1.074 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of SimCode: time 2.104e-06/0.4751, allocations: 0 / 1.074 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of Templates: time 0.003596/0.4787, allocations: 0.7715 MB / 1.075 GB, free: 3.156 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1)