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.007112/0.007112, allocations: 101.1 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.001939/0.001939, allocations: 190.2 kB / 16.67 MB, free: 5.973 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.819/1.819, allocations: 205.1 MB / 222.5 MB, free: 4.375 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.73/1.73, 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.001462/0.001463, allocations: 66.09 kB / 0.7258 GB, free: 9.02 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3058, allocations: 104.7 MB / 0.828 GB, free: 212 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.003299/0.3092, allocations: 1.386 MB / 0.8294 GB, free: 14.82 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0007226/0.31, allocations: 232.5 kB / 0.8296 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.119e-05/0.3101, allocations: 0 / 0.8296 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.36e-05/0.3101, allocations: 3.938 kB / 0.8296 GB, free: 14.58 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 8.911e-05/0.3102, allocations: 15.91 kB / 0.8296 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.3105, allocations: 27.92 kB / 0.8297 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.3106, allocations: 47.84 kB / 0.8297 GB, free: 14.49 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.3108, allocations: 15.98 kB / 0.8297 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.276e-05/0.3109, allocations: 19.86 kB / 0.8297 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.368e-05/0.311, allocations: 19.92 kB / 0.8298 GB, free: 14.44 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/0.311, allocations: 4 kB / 0.8298 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.356e-05/0.311, allocations: 4 kB / 0.8298 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.437e-05/0.3111, allocations: 11.98 kB / 0.8298 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.359e-05/0.3111, allocations: 19.88 kB / 0.8298 GB, free: 14.4 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001316/0.3113, allocations: 47.78 kB / 0.8298 GB, free: 14.35 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3113, allocations: 4 kB / 0.8298 GB, free: 14.35 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.274e-06/0.3113, allocations: 0 / 0.8298 GB, free: 14.35 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.283e-06/0.3113, allocations: 0 / 0.8298 GB, free: 14.35 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.0007662/0.3121, allocations: 367.4 kB / 0.8302 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.3121, allocations: 11.97 kB / 0.8302 GB, free: 13.93 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.155e-05/0.3122, allocations: 4.938 kB / 0.8302 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.3124, allocations: 172.2 kB / 0.8304 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.3124, allocations: 12.38 kB / 0.8304 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.3124, allocations: 8.25 kB / 0.8304 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.3126, allocations: 66.22 kB / 0.8305 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.3126, allocations: 192 / 0.8305 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.3127, allocations: 3.938 kB / 0.8305 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.3127, allocations: 0 / 0.8305 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.3129, allocations: 43.95 kB / 0.8305 GB, free: 13.58 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005094/0.3134, allocations: 276.9 kB / 0.8308 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.3136, allocations: 62.42 kB / 0.8308 GB, free: 13.19 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.615e-05/0.3137, allocations: 32.95 kB / 0.8309 GB, free: 13.15 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.3137, allocations: 4 kB / 0.8309 GB, free: 13.15 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.3139, allocations: 75.38 kB / 0.8309 GB, free: 13.06 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.3139, allocations: 0 / 0.8309 GB, free: 13.06 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0004431/0.3144, allocations: 129.5 kB / 0.8311 GB, free: 12.93 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/0.3145, allocations: 55.41 kB / 0.8311 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.3146, allocations: 105.8 kB / 0.8312 GB, free: 12.75 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.3146, allocations: 25.7 kB / 0.8312 GB, free: 12.72 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.437e-05/0.3147, allocations: 88.14 kB / 0.8313 GB, free: 12.63 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.3147, allocations: 19.75 kB / 0.8313 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-05/0.3148, allocations: 25.7 kB / 0.8314 GB, free: 12.58 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3149, allocations: 314.8 kB / 0.8317 GB, free: 12.26 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.774e-05/0.315, allocations: 27.97 kB / 0.8317 GB, free: 12.23 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.3151, allocations: 60.27 kB / 0.8317 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.3154, allocations: 88.14 kB / 0.8318 GB, free: 12.06 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3154, allocations: 0 / 0.8318 GB, free: 12.06 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002448/0.3156, allocations: 121.7 kB / 0.8319 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.3156, allocations: 4 kB / 0.8319 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.3156, allocations: 0 / 0.8319 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.3157, allocations: 4.047 kB / 0.832 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.3158, allocations: 27.91 kB / 0.832 GB, free: 11.9 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.3158, allocations: 0 / 0.832 GB, free: 11.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.503e-05/0.3159, allocations: 20.11 kB / 0.832 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.3159, allocations: 4 kB / 0.832 GB, free: 11.88 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.0001098/0.316, allocations: 118 kB / 0.8321 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.194e-05/0.316, allocations: 3.906 kB / 0.8321 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002977/0.3164, allocations: 113.9 kB / 0.8322 GB, free: 11.63 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3164, allocations: 4 kB / 0.8322 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3164, allocations: 3.938 kB / 0.8322 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3164, allocations: 4 kB / 0.8322 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000444/0.3168, allocations: 358.4 kB / 0.8326 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3169, allocations: 0 / 0.8326 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.271e-05/0.3169, allocations: 15.92 kB / 0.8326 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3169, allocations: 0 / 0.8326 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.317, allocations: 4 kB / 0.8326 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.317, allocations: 480 / 0.8326 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.317, allocations: 0 / 0.8326 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002807/0.3172, allocations: 207.3 kB / 0.8328 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.619e-05/0.3173, allocations: 77.11 kB / 0.8329 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.3173, allocations: 4 kB / 0.8329 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.656e-05/0.3174, allocations: 11.98 kB / 0.8329 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.995e-05/0.3175, allocations: 3.984 kB / 0.8329 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-05/0.3175, allocations: 11.94 kB / 0.8329 GB, free: 10.85 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.853e-05/0.3176, allocations: 83.28 kB / 0.833 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3176, allocations: 0 / 0.833 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002339/0.3178, allocations: 12 kB / 0.833 GB, free: 10.75 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.000156/0.318, allocations: 107.2 kB / 0.8331 GB, free: 10.64 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002665/0.3183, allocations: 67.88 kB / 0.8332 GB, free: 10.57 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3183, allocations: 4.25 kB / 0.8332 GB, free: 10.57 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.3184, allocations: 35.97 kB / 0.8332 GB, free: 10.54 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.3187, allocations: 4 kB / 0.8332 GB, free: 10.53 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000409/0.3191, allocations: 137.5 kB / 0.8333 GB, free: 10.37 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.3194, allocations: 0.6844 MB / 0.834 GB, free: 9.656 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.443e-05/0.3194, allocations: 8 kB / 0.834 GB, free: 9.648 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.372e-05/0.3195, allocations: 11.44 kB / 0.834 GB, free: 9.637 MB / 0.6544 GB Notification: Performance of SimCode: time 5.41e-07/0.3195, allocations: 0 / 0.834 GB, free: 9.637 MB / 0.6544 GB Notification: Performance of Templates: time 0.003391/0.3229, allocations: 0.6971 MB / 0.8347 GB, free: 8.945 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)