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.001062/0.001062, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008938/0.008938, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.587/1.587, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.022/3.022, allocations: 473.4 MB / 0.7469 GB, free: 6.113 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004367/0.0004371, allocations: 9.031 kB / 0.9158 GB, free: 33.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4332/0.4337, allocations: 162.2 MB / 1.074 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001194/0.4349, allocations: 405.3 kB / 1.075 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001891/0.4368, allocations: 1.05 MB / 1.076 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.387e-05/0.4369, allocations: 11.94 kB / 1.076 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.17e-05/0.437, allocations: 3.938 kB / 1.076 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.229e-05/0.437, allocations: 0 / 1.076 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003336/0.4374, allocations: 35.89 kB / 1.076 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.4375, allocations: 51.8 kB / 1.076 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.4377, allocations: 11.98 kB / 1.076 GB, free: 6 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.822e-05/0.4378, allocations: 11.94 kB / 1.076 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.225e-05/0.4379, allocations: 27.89 kB / 1.076 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.037e-05/0.4379, allocations: 8 kB / 1.076 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.929e-05/0.438, allocations: 19.98 kB / 1.076 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.681e-05/0.438, allocations: 7.938 kB / 1.076 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.605e-05/0.4381, allocations: 45.62 kB / 1.076 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.4383, allocations: 47.83 kB / 1.076 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4383, allocations: 0 / 1.076 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.445e-06/0.4383, allocations: 0 / 1.076 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.4383, allocations: 0 / 1.076 GB, free: 5.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.0007123/0.439, allocations: 367.7 kB / 1.076 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.4391, allocations: 15.97 kB / 1.076 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.401e-05/0.4391, allocations: 0.9375 kB / 1.076 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.4393, allocations: 180.2 kB / 1.076 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.4393, allocations: 384 / 1.076 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.61e-05/0.4393, allocations: 4.375 kB / 1.076 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.4396, allocations: 78.2 kB / 1.076 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.4396, allocations: 192 / 1.076 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.4396, allocations: 3.938 kB / 1.076 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.4397, allocations: 0 / 1.076 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002213/0.4399, allocations: 55.95 kB / 1.077 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005413/0.4404, allocations: 280.8 kB / 1.077 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00019/0.4406, allocations: 66.48 kB / 1.077 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.4408, allocations: 40.95 kB / 1.077 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.4408, allocations: 0 / 1.077 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002344/0.441, allocations: 79.38 kB / 1.077 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.441, allocations: 0 / 1.077 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.000445/0.4415, allocations: 145.5 kB / 1.077 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.4416, allocations: 55.41 kB / 1.077 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.634e-05/0.4417, allocations: 113.8 kB / 1.077 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.4417, allocations: 29.7 kB / 1.077 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.465e-05/0.4417, allocations: 80.14 kB / 1.077 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.624e-05/0.4418, allocations: 23.66 kB / 1.077 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.192e-05/0.4418, allocations: 21.7 kB / 1.077 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.4419, allocations: 310.8 kB / 1.078 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.442, allocations: 35.97 kB / 1.078 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.4422, allocations: 72.14 kB / 1.078 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002469/0.4425, allocations: 104.1 kB / 1.078 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.4425, allocations: 0 / 1.078 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002991/0.4428, allocations: 125.6 kB / 1.078 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.4428, allocations: 5.406 kB / 1.078 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.4428, allocations: 3.984 kB / 1.078 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.4428, allocations: 4 kB / 1.078 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.443, allocations: 19.92 kB / 1.078 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.443, allocations: 8.125 kB / 1.078 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.763e-05/0.4431, allocations: 15.91 kB / 1.078 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.4431, allocations: 4 kB / 1.078 GB, free: 3.27 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.000176/0.4433, allocations: 125.7 kB / 1.078 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.148e-05/0.4433, allocations: 0 / 1.078 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003573/0.4437, allocations: 126 kB / 1.078 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.4437, allocations: 0 / 1.078 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4437, allocations: 0 / 1.078 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4437, allocations: 0 / 1.078 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005626/0.4443, allocations: 374.4 kB / 1.079 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.4443, allocations: 0 / 1.079 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.975e-05/0.4443, allocations: 15.98 kB / 1.079 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.4444, allocations: 0 / 1.079 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.4444, allocations: 0 / 1.079 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4444, allocations: 0 / 1.079 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.4444, allocations: 0 / 1.079 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003402/0.4447, allocations: 219.8 kB / 1.079 GB, free: 2.34 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.587e-05/0.4448, allocations: 77.11 kB / 1.079 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.262e-05/0.4448, allocations: 3.984 kB / 1.079 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.4449, allocations: 16 kB / 1.079 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.126e-05/0.445, allocations: 7.984 kB / 1.079 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-05/0.445, allocations: 7.938 kB / 1.079 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.327e-05/0.4451, allocations: 91.45 kB / 1.079 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4451, allocations: 0 / 1.079 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002571/0.4453, allocations: 15.91 kB / 1.079 GB, free: 2.105 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.0002073/0.4455, allocations: 107.2 kB / 1.079 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002696/0.4458, allocations: 79.95 kB / 1.079 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4458, allocations: 0 / 1.079 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.446, allocations: 48.22 kB / 1.079 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.4463, allocations: 8.172 kB / 1.079 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003587/0.4466, allocations: 154.5 kB / 1.079 GB, free: 1.676 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.4469, allocations: 0.6887 MB / 1.08 GB, free: 0.9609 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.261e-05/0.4469, allocations: 8.188 kB / 1.08 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.688e-05/0.447, allocations: 11.42 kB / 1.08 GB, free: 0.9414 MB / 0.8262 GB Notification: Performance of SimCode: time 3.9e-07/0.447, allocations: 0 / 1.08 GB, free: 0.9414 MB / 0.8262 GB Notification: Performance of Templates: time 0.003685/0.4507, allocations: 0.7288 MB / 1.081 GB, free: 228 kB / 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)