Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_8_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.001399/0.001398, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001677/0.001676, allocations: 192.8 kB / 16.53 MB, free: 6.691 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.656/1.656, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.823/1.823, allocations: 292.3 MB / 0.5489 GB, free: 12.84 MB / 462.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.001511/0.001511, allocations: 72.3 kB / 0.6715 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3143, allocations: 114.5 MB / 0.7834 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002518/0.3169, allocations: 0.681 MB / 0.784 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001698/0.3187, allocations: 1.063 MB / 0.7851 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.807e-05/0.3187, allocations: 0 / 0.7851 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.274e-05/0.3188, allocations: 3.938 kB / 0.7851 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.852e-05/0.3189, allocations: 11.92 kB / 0.7851 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.3193, allocations: 39.84 kB / 0.7851 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.3194, allocations: 47.91 kB / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.3196, allocations: 11.98 kB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.764e-05/0.3196, allocations: 23.86 kB / 0.7852 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.679e-05/0.3197, allocations: 19.92 kB / 0.7852 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.3197, allocations: 8 kB / 0.7852 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.68e-05/0.3198, allocations: 19.98 kB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.551e-05/0.3198, allocations: 15.91 kB / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.091e-05/0.3199, allocations: 19.94 kB / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.32, allocations: 59.77 kB / 0.7853 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.3201, allocations: 0 / 0.7853 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.054e-06/0.3201, allocations: 0 / 0.7853 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.3201, allocations: 0 / 0.7853 GB, free: 11.45 MB / 0.6075 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.0007544/0.3208, allocations: 375.7 kB / 0.7857 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.3209, allocations: 8.031 kB / 0.7857 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.333e-05/0.3209, allocations: 8.844 kB / 0.7857 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.3211, allocations: 168.3 kB / 0.7859 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.3211, allocations: 4.375 kB / 0.7859 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.3212, allocations: 384 / 0.7859 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002147/0.3214, allocations: 70.16 kB / 0.7859 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.3214, allocations: 192 / 0.7859 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.769e-05/0.3214, allocations: 11.94 kB / 0.786 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.3214, allocations: 0 / 0.786 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.3216, allocations: 39.95 kB / 0.786 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005081/0.3222, allocations: 284.8 kB / 0.7863 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001782/0.3223, allocations: 66.42 kB / 0.7863 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.3225, allocations: 32.91 kB / 0.7864 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.3225, allocations: 0 / 0.7864 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000228/0.3227, allocations: 71.38 kB / 0.7864 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.3227, allocations: 4 kB / 0.7864 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004409/0.3232, allocations: 125.6 kB / 0.7866 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.3232, allocations: 55.41 kB / 0.7866 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.485e-05/0.3233, allocations: 105.8 kB / 0.7867 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.3234, allocations: 25.7 kB / 0.7867 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.471e-05/0.3234, allocations: 89.11 kB / 0.7868 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.3235, allocations: 23.8 kB / 0.7868 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.3235, allocations: 25.72 kB / 0.7869 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.3236, allocations: 318.8 kB / 0.7872 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.3237, allocations: 27.98 kB / 0.7872 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.3239, allocations: 60.2 kB / 0.7873 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.3241, allocations: 96.12 kB / 0.7873 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3241, allocations: 0 / 0.7873 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002737/0.3244, allocations: 117.5 kB / 0.7875 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.3244, allocations: 12 kB / 0.7875 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3244, allocations: 0 / 0.7875 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3244, allocations: 4 kB / 0.7875 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3246, allocations: 19.92 kB / 0.7875 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.3246, allocations: 0 / 0.7875 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.941e-05/0.3246, allocations: 12.28 kB / 0.7875 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.3247, allocations: 8.297 kB / 0.7875 GB, free: 8.965 MB / 0.6075 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 9.756e-05/0.3248, allocations: 119.2 kB / 0.7876 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.448e-05/0.3248, allocations: 12 kB / 0.7876 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.3251, allocations: 113.9 kB / 0.7877 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.3251, allocations: 0 / 0.7877 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.3251, allocations: 4 kB / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3251, allocations: 0 / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004439/0.3256, allocations: 362.4 kB / 0.7881 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3256, allocations: 0 / 0.7881 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.472e-05/0.3257, allocations: 15.92 kB / 0.7881 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3257, allocations: 0 / 0.7881 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.3257, allocations: 0 / 0.7881 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3257, allocations: 0 / 0.7881 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.3257, allocations: 4.188 kB / 0.7881 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002946/0.326, allocations: 195.4 kB / 0.7883 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.422e-05/0.326, allocations: 88.95 kB / 0.7884 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.3261, allocations: 4 kB / 0.7884 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.475e-05/0.3262, allocations: 7.984 kB / 0.7884 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.372e-05/0.3262, allocations: 7.984 kB / 0.7884 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.3262, allocations: 7.938 kB / 0.7884 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.465e-05/0.3263, allocations: 83.28 kB / 0.7885 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.3263, allocations: 0 / 0.7885 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002355/0.3265, allocations: 15.94 kB / 0.7885 GB, free: 7.84 MB / 0.6075 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.0001626/0.3267, allocations: 119.2 kB / 0.7886 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002775/0.327, allocations: 71.88 kB / 0.7887 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.327, allocations: 3.938 kB / 0.7887 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.3271, allocations: 31.97 kB / 0.7887 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.3274, allocations: 12.25 kB / 0.7887 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003489/0.3277, allocations: 136.2 kB / 0.7889 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.328, allocations: 0.6807 MB / 0.7895 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.535e-05/0.328, allocations: 7.984 kB / 0.7895 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.046e-05/0.3281, allocations: 15.38 kB / 0.7896 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.3281, allocations: 4 kB / 0.7896 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of Templates: time 0.003763/0.3319, allocations: 0.8352 MB / 0.7904 GB, free: 5.883 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)