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.00181/0.00181, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002448/0.002448, allocations: 191.2 kB / 16.13 MB, free: 6.703 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.575/1.575, allocations: 222.9 MB / 239.8 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.264/3.264, allocations: 472.6 MB / 0.7447 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00169/0.00169, allocations: 72.12 kB / 0.9114 GB, free: 33.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4373/0.439, allocations: 159.9 MB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002695/0.4418, allocations: 0.7386 MB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001767/0.4436, allocations: 1.065 MB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.491e-05/0.4437, allocations: 0 / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.76e-05/0.4438, allocations: 3.938 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.936e-05/0.4439, allocations: 15.86 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.4442, allocations: 27.97 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.4444, allocations: 55.84 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.4445, allocations: 4 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.4446, allocations: 19.92 kB / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.645e-05/0.4447, allocations: 23.91 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.4447, allocations: 4 kB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.46e-05/0.4448, allocations: 19.98 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.885e-05/0.4449, allocations: 11.92 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.308e-05/0.4449, allocations: 19.92 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001648/0.4451, allocations: 51.84 kB / 1.07 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4451, allocations: 4 kB / 1.07 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.62e-07/0.4451, allocations: 0 / 1.07 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.4451, allocations: 0 / 1.07 GB, free: 8.828 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.0007091/0.4458, allocations: 367.6 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.4459, allocations: 11.97 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.854e-05/0.446, allocations: 16.83 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.4461, allocations: 164.3 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.4461, allocations: 8.375 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.878e-05/0.4461, allocations: 384 / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000237/0.4464, allocations: 66.22 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.4464, allocations: 192 / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.4464, allocations: 3.938 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.4464, allocations: 4 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.4466, allocations: 39.95 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005659/0.4472, allocations: 288.7 kB / 1.07 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.4474, allocations: 62.48 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.4475, allocations: 28.97 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.4476, allocations: 0 / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002548/0.4478, allocations: 83.31 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.4479, allocations: 0 / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004809/0.4483, allocations: 121.7 kB / 1.071 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.4484, allocations: 51.41 kB / 1.071 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.4485, allocations: 113.8 kB / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.4486, allocations: 29.7 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.918e-05/0.4486, allocations: 88.05 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.4486, allocations: 19.73 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.424e-05/0.4487, allocations: 25.72 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4488, allocations: 314.8 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.449, allocations: 23.98 kB / 1.071 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.4491, allocations: 72.14 kB / 1.071 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.4494, allocations: 96.12 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4494, allocations: 0 / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003645/0.4497, allocations: 113.5 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.4498, allocations: 9.562 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4498, allocations: 0 / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.4498, allocations: 8.031 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.4499, allocations: 15.98 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.978e-06/0.4499, allocations: 8.109 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.808e-05/0.45, allocations: 15.84 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.45, allocations: 4 kB / 1.072 GB, free: 6.344 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.0001061/0.4502, allocations: 121.7 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.4502, allocations: 7.984 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003064/0.4505, allocations: 106.3 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.4505, allocations: 8 kB / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4505, allocations: 0 / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.4505, allocations: 0 / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005381/0.4511, allocations: 362.3 kB / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.4511, allocations: 0 / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.254e-05/0.4512, allocations: 11.98 kB / 1.072 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.4512, allocations: 0 / 1.072 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.4512, allocations: 0 / 1.072 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.4512, allocations: 8 kB / 1.072 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.4512, allocations: 0 / 1.072 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003326/0.4515, allocations: 203.4 kB / 1.072 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.897e-05/0.4516, allocations: 81.02 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.262e-05/0.4516, allocations: 0 / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.4517, allocations: 16.23 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.082e-05/0.4518, allocations: 7.984 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.494e-05/0.4519, allocations: 11.94 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.345e-05/0.4519, allocations: 83.28 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4519, allocations: 0 / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002937/0.4522, allocations: 12 kB / 1.073 GB, free: 5.219 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.0003119/0.4526, allocations: 107.2 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003861/0.4529, allocations: 71.89 kB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.453, allocations: 0 / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.4531, allocations: 31.97 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.4535, allocations: 12.12 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006517/0.4541, allocations: 161.9 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005122/0.4547, allocations: 0.6809 MB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.56e-05/0.4547, allocations: 7.984 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.707e-05/0.4548, allocations: 11.44 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of SimCode: time 9.82e-07/0.4548, allocations: 0 / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of Templates: time 0.004668/0.4595, allocations: 0.741 MB / 1.074 GB, free: 3.348 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)