Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006053/0.006053, allocations: 101.5 kB / 15.73 MB, free: 6.039 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.00117/0.00117, allocations: 194.2 kB / 16.68 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.818/1.818, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.58/1.58, allocations: 251.7 MB / 0.5094 GB, free: 3.051 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 71.91 kB / 0.7258 GB, free: 9.004 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3267, allocations: 104.7 MB / 0.828 GB, free: 204 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002883/0.3297, allocations: 1.386 MB / 0.8294 GB, free: 14.8 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0005743/0.3303, allocations: 240.5 kB / 0.8296 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.199e-05/0.3303, allocations: 0 / 0.8296 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.197e-05/0.3304, allocations: 3.938 kB / 0.8296 GB, free: 14.56 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.3305, allocations: 7.938 kB / 0.8296 GB, free: 14.55 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.000258/0.3308, allocations: 31.91 kB / 0.8297 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.3309, allocations: 51.78 kB / 0.8297 GB, free: 14.47 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001498/0.3311, allocations: 15.98 kB / 0.8297 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.634e-05/0.3312, allocations: 11.94 kB / 0.8297 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 5.602e-05/0.3313, allocations: 23.91 kB / 0.8298 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/0.3313, allocations: 4 kB / 0.8298 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.421e-05/0.3313, allocations: 4 kB / 0.8298 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.664e-05/0.3313, allocations: 11.98 kB / 0.8298 GB, free: 14.4 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.658e-05/0.3314, allocations: 27.86 kB / 0.8298 GB, free: 14.38 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.3315, allocations: 39.81 kB / 0.8298 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.3315, allocations: 0 / 0.8298 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.384e-06/0.3315, allocations: 0 / 0.8298 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.3316, allocations: 4 kB / 0.8298 GB, free: 14.33 MB / 0.6544 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.0007082/0.3323, allocations: 371.3 kB / 0.8302 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.3323, allocations: 8.031 kB / 0.8302 GB, free: 13.91 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.6e-05/0.3324, allocations: 8.938 kB / 0.8302 GB, free: 13.9 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001767/0.3326, allocations: 176.2 kB / 0.8304 GB, free: 13.69 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.3326, allocations: 4.375 kB / 0.8304 GB, free: 13.69 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.3326, allocations: 4.375 kB / 0.8304 GB, free: 13.68 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.3328, allocations: 66.22 kB / 0.8305 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.3329, allocations: 4.125 kB / 0.8305 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.3329, allocations: 3.938 kB / 0.8305 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.3329, allocations: 4 kB / 0.8305 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.3331, allocations: 47.95 kB / 0.8305 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004685/0.3336, allocations: 268.9 kB / 0.8308 GB, free: 13.24 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.3337, allocations: 62.42 kB / 0.8308 GB, free: 13.17 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.3338, allocations: 28.97 kB / 0.8309 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.3339, allocations: 4 kB / 0.8309 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002295/0.3341, allocations: 75.38 kB / 0.8309 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.3341, allocations: 0 / 0.8309 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0004197/0.3346, allocations: 133.5 kB / 0.8311 GB, free: 12.91 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.3346, allocations: 51.41 kB / 0.8311 GB, free: 12.85 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.878e-05/0.3347, allocations: 113.8 kB / 0.8312 GB, free: 12.73 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.3347, allocations: 25.7 kB / 0.8312 GB, free: 12.7 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.034e-05/0.3348, allocations: 84.14 kB / 0.8313 GB, free: 12.62 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.3348, allocations: 19.73 kB / 0.8313 GB, free: 12.6 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.3349, allocations: 25.72 kB / 0.8314 GB, free: 12.57 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.335, allocations: 314.8 kB / 0.8317 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.3351, allocations: 27.98 kB / 0.8317 GB, free: 12.22 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.3353, allocations: 56.27 kB / 0.8317 GB, free: 12.15 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002088/0.3355, allocations: 104.1 kB / 0.8318 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3355, allocations: 0 / 0.8318 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002576/0.3357, allocations: 113.5 kB / 0.8319 GB, free: 11.92 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3358, allocations: 4 kB / 0.832 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3358, allocations: 4 kB / 0.832 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3358, allocations: 48 / 0.832 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.3359, allocations: 28.03 kB / 0.832 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.3359, allocations: 4 kB / 0.832 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.505e-05/0.336, allocations: 7.984 kB / 0.832 GB, free: 11.87 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.336, allocations: 8.188 kB / 0.832 GB, free: 11.86 MB / 0.6544 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.0001063/0.3361, allocations: 117.8 kB / 0.8321 GB, free: 11.74 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.256e-05/0.3362, allocations: 7.844 kB / 0.8321 GB, free: 11.73 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003055/0.3365, allocations: 117.9 kB / 0.8322 GB, free: 11.61 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3365, allocations: 0 / 0.8322 GB, free: 11.61 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.3365, allocations: 0 / 0.8322 GB, free: 11.61 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.3365, allocations: 0 / 0.8322 GB, free: 11.61 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004551/0.337, allocations: 358.4 kB / 0.8326 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.337, allocations: 7.922 kB / 0.8326 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.153e-05/0.337, allocations: 8 kB / 0.8326 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3371, allocations: 0 / 0.8326 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.3371, allocations: 8 kB / 0.8326 GB, free: 11.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3371, allocations: 3.984 kB / 0.8326 GB, free: 11.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3371, allocations: 480 / 0.8326 GB, free: 11.18 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/0.3374, allocations: 203.3 kB / 0.8328 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.068e-05/0.3375, allocations: 81.09 kB / 0.8329 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.3375, allocations: 4 kB / 0.8329 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.3376, allocations: 15.98 kB / 0.8329 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.291e-05/0.3377, allocations: 4 kB / 0.8329 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.3377, allocations: 3.938 kB / 0.8329 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.64e-05/0.3378, allocations: 91.45 kB / 0.833 GB, free: 10.75 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.983e-06/0.3378, allocations: 0 / 0.833 GB, free: 10.75 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002364/0.338, allocations: 15.94 kB / 0.833 GB, free: 10.73 MB / 0.6544 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.0001273/0.3381, allocations: 95.25 kB / 0.8331 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002843/0.3384, allocations: 71.89 kB / 0.8332 GB, free: 10.56 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3384, allocations: 0 / 0.8332 GB, free: 10.56 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.3386, allocations: 35.97 kB / 0.8332 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.3388, allocations: 6.406 kB / 0.8332 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003951/0.3392, allocations: 133.5 kB / 0.8333 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.3396, allocations: 0.6886 MB / 0.834 GB, free: 9.645 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.821e-05/0.3396, allocations: 11.92 kB / 0.834 GB, free: 9.633 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.626e-05/0.3396, allocations: 11.44 kB / 0.834 GB, free: 9.621 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.3397, allocations: 0 / 0.834 GB, free: 9.621 MB / 0.6544 GB Notification: Performance of Templates: time 0.003328/0.343, allocations: 0.6962 MB / 0.8347 GB, free: 8.93 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)