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.001157/0.001157, allocations: 98.27 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.01132/0.01132, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.606/1.606, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.177/3.177, allocations: 473.4 MB / 0.7469 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003628, allocations: 9.453 kB / 0.9158 GB, free: 33.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4145/0.4149, allocations: 162.2 MB / 1.074 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001197/0.4161, allocations: 401.3 kB / 1.075 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001749/0.4179, allocations: 1.05 MB / 1.076 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.2e-05/0.418, allocations: 11.88 kB / 1.076 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.426e-05/0.418, allocations: 3.984 kB / 1.076 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.599e-05/0.4181, allocations: 7.922 kB / 1.076 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.4185, allocations: 31.97 kB / 1.076 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.4186, allocations: 47.84 kB / 1.076 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.4187, allocations: 8 kB / 1.076 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/0.4188, allocations: 19.92 kB / 1.076 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.844e-05/0.4189, allocations: 19.92 kB / 1.076 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.4189, allocations: 0 / 1.076 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.648e-05/0.419, allocations: 27.97 kB / 1.076 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.514e-05/0.4191, allocations: 11.92 kB / 1.076 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.083e-05/0.4191, allocations: 41.62 kB / 1.076 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.4193, allocations: 47.84 kB / 1.076 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.4193, allocations: 0 / 1.076 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.258e-06/0.4193, allocations: 4 kB / 1.076 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.4193, allocations: 3.938 kB / 1.076 GB, free: 5.742 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.0007048/0.42, allocations: 367.7 kB / 1.076 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.4201, allocations: 19.95 kB / 1.076 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.745e-05/0.4202, allocations: 0.9375 kB / 1.076 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.4203, allocations: 176.2 kB / 1.076 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.4204, allocations: 384 / 1.076 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.4204, allocations: 4.375 kB / 1.076 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002367/0.4206, allocations: 70.22 kB / 1.076 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.4206, allocations: 192 / 1.076 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.4207, allocations: 7.875 kB / 1.076 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.4207, allocations: 0 / 1.076 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.4209, allocations: 63.89 kB / 1.077 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005891/0.4215, allocations: 272.9 kB / 1.077 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.4217, allocations: 74.48 kB / 1.077 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.4219, allocations: 28.97 kB / 1.077 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/0.4219, allocations: 4 kB / 1.077 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002654/0.4222, allocations: 87.31 kB / 1.077 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.723e-06/0.4222, allocations: 0 / 1.077 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004742/0.4227, allocations: 137.5 kB / 1.077 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.4227, allocations: 55.41 kB / 1.077 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.4228, allocations: 113.8 kB / 1.077 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.4229, allocations: 25.7 kB / 1.077 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.241e-05/0.4229, allocations: 84.12 kB / 1.077 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.423, allocations: 27.72 kB / 1.077 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.033e-05/0.423, allocations: 17.72 kB / 1.077 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.4232, allocations: 318.8 kB / 1.078 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.4233, allocations: 31.98 kB / 1.078 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.4235, allocations: 68.2 kB / 1.078 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.4237, allocations: 112.1 kB / 1.078 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4237, allocations: 0 / 1.078 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003411/0.4241, allocations: 121.5 kB / 1.078 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.4241, allocations: 12.12 kB / 1.078 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.4241, allocations: 0 / 1.078 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.4242, allocations: 4 kB / 1.078 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.4243, allocations: 15.98 kB / 1.078 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.4243, allocations: 4 kB / 1.078 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.567e-05/0.4244, allocations: 19.89 kB / 1.078 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.4244, allocations: 4 kB / 1.078 GB, free: 3.184 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.0001533/0.4246, allocations: 130.8 kB / 1.078 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.462e-05/0.4246, allocations: 0 / 1.078 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003427/0.425, allocations: 118 kB / 1.078 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.425, allocations: 0 / 1.078 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.425, allocations: 0 / 1.078 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.425, allocations: 4 kB / 1.078 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005878/0.4256, allocations: 374.8 kB / 1.079 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.4256, allocations: 192 / 1.079 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.969e-05/0.4257, allocations: 19.98 kB / 1.079 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.728e-06/0.4257, allocations: 3.938 kB / 1.079 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.4257, allocations: 4 kB / 1.079 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.4257, allocations: 0 / 1.079 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4257, allocations: 0 / 1.079 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003413/0.4261, allocations: 215.3 kB / 1.079 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.212e-05/0.4262, allocations: 77.11 kB / 1.079 GB, free: 2.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.4262, allocations: 4 kB / 1.079 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.833e-05/0.4263, allocations: 11.98 kB / 1.079 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.817e-05/0.4263, allocations: 7.984 kB / 1.079 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.4264, allocations: 7.938 kB / 1.079 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.571e-05/0.4264, allocations: 87.28 kB / 1.079 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of sort global known variables: time 5.51e-07/0.4264, allocations: 0 / 1.079 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002632/0.4267, allocations: 15.91 kB / 1.079 GB, free: 2.02 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.000231/0.4269, allocations: 107.2 kB / 1.079 GB, free: 1.906 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003141/0.4273, allocations: 83.88 kB / 1.079 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4273, allocations: 0 / 1.079 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.4274, allocations: 43.91 kB / 1.079 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.4277, allocations: 5.719 kB / 1.079 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000439/0.4282, allocations: 166.2 kB / 1.079 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.4285, allocations: 0.6887 MB / 1.08 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.101e-05/0.4286, allocations: 4.438 kB / 1.08 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.917e-05/0.4286, allocations: 7.438 kB / 1.08 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.4286, allocations: 0 / 1.08 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of Templates: time 0.003822/0.4324, allocations: 0.7439 MB / 1.081 GB, free: 128 kB / 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)