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.0008906/0.0008906, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009334/0.0009334, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.4 MB / 222.1 MB, free: 5.543 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.705/1.705, allocations: 292.5 MB / 0.5497 GB, free: 14.65 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.0004932/0.0004933, allocations: 15.47 kB / 0.6736 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2292, allocations: 116.3 MB / 0.7871 GB, free: 12 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0009337/0.2301, allocations: 395.9 kB / 0.7875 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.2316, allocations: 1.042 MB / 0.7885 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.174e-05/0.2316, allocations: 0 / 0.7885 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.689e-05/0.2317, allocations: 0 / 0.7885 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.843e-05/0.2317, allocations: 3.984 kB / 0.7885 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002569/0.232, allocations: 39.83 kB / 0.7886 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.901e-05/0.2321, allocations: 27.97 kB / 0.7886 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.851e-05/0.2322, allocations: 8 kB / 0.7886 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.369e-05/0.2323, allocations: 23.86 kB / 0.7886 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.572e-05/0.2323, allocations: 23.91 kB / 0.7886 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.2324, allocations: 0 / 0.7886 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.179e-05/0.2324, allocations: 11.98 kB / 0.7887 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.046e-05/0.2325, allocations: 15.92 kB / 0.7887 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.208e-05/0.2325, allocations: 29.7 kB / 0.7887 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.359e-05/0.2326, allocations: 39.91 kB / 0.7887 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.2326, allocations: 3.938 kB / 0.7887 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.293e-06/0.2326, allocations: 0 / 0.7887 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.2326, allocations: 4 kB / 0.7887 GB, free: 10.32 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.0005342/0.2332, allocations: 363.5 kB / 0.7891 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.2332, allocations: 8.031 kB / 0.7891 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.275e-05/0.2332, allocations: 7.906 kB / 0.7891 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.2334, allocations: 175 kB / 0.7893 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.2334, allocations: 8 kB / 0.7893 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.5e-05/0.2334, allocations: 0 / 0.7893 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002101/0.2336, allocations: 73.59 kB / 0.7894 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.597e-06/0.2336, allocations: 0 / 0.7894 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.2337, allocations: 0 / 0.7894 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.2337, allocations: 4 kB / 0.7894 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/0.2339, allocations: 59.94 kB / 0.7894 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004451/0.2343, allocations: 276.8 kB / 0.7897 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001616/0.2345, allocations: 70.48 kB / 0.7897 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.2345, allocations: 3.984 kB / 0.7897 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002149/0.2347, allocations: 75.52 kB / 0.7898 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.2348, allocations: 0 / 0.7898 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004202/0.2352, allocations: 137.5 kB / 0.79 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/0.2352, allocations: 63.33 kB / 0.79 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.477e-05/0.2353, allocations: 101.9 kB / 0.7901 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.2354, allocations: 29.7 kB / 0.7901 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.254e-05/0.2354, allocations: 88.12 kB / 0.7902 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/0.2354, allocations: 31.66 kB / 0.7903 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-06/0.2355, allocations: 0 / 0.7903 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.2356, allocations: 322.8 kB / 0.7906 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.2357, allocations: 27.98 kB / 0.7906 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.2358, allocations: 68.27 kB / 0.7906 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001094/0.2359, allocations: 31.98 kB / 0.7907 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2359, allocations: 0 / 0.7907 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002857/0.2362, allocations: 129.6 kB / 0.7908 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.2363, allocations: 4 kB / 0.7908 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2363, allocations: 3.984 kB / 0.7908 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.2363, allocations: 4 kB / 0.7908 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.2364, allocations: 27.92 kB / 0.7908 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2364, allocations: 192 / 0.7908 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.176e-05/0.2365, allocations: 11.91 kB / 0.7909 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.2365, allocations: 7.938 kB / 0.7909 GB, free: 7.918 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 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.284e-05/0.2366, allocations: 125.8 kB / 0.791 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.281e-05/0.2366, allocations: 4 kB / 0.791 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002959/0.2369, allocations: 114.3 kB / 0.7911 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2369, allocations: 0 / 0.7911 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.237, allocations: 8 kB / 0.7911 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.237, allocations: 0 / 0.7911 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004573/0.2374, allocations: 366.8 kB / 0.7915 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2374, allocations: 0 / 0.7915 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.216e-05/0.2375, allocations: 31.92 kB / 0.7915 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2375, allocations: 0 / 0.7915 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-06/0.2375, allocations: 0 / 0.7915 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.2375, allocations: 0 / 0.7915 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2376, allocations: 0 / 0.7915 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002985/0.2379, allocations: 215.4 kB / 0.7917 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.72e-05/0.2379, allocations: 81.02 kB / 0.7918 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.2379, allocations: 3.984 kB / 0.7918 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.522e-05/0.238, allocations: 8 kB / 0.7918 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.464e-05/0.2381, allocations: 7.984 kB / 0.7918 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.2381, allocations: 4 kB / 0.7918 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.887e-05/0.2382, allocations: 91.27 kB / 0.7919 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.242e-06/0.2382, allocations: 0 / 0.7919 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002427/0.2384, allocations: 23.88 kB / 0.7919 GB, free: 6.75 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000142/0.2386, allocations: 111.2 kB / 0.792 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002712/0.2388, allocations: 91.86 kB / 0.7921 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2388, allocations: 0 / 0.7921 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.239, allocations: 31.98 kB / 0.7921 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001841/0.2392, allocations: 11.92 kB / 0.7921 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000323/0.2395, allocations: 146.1 kB / 0.7923 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.2398, allocations: 0.6887 MB / 0.7929 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.958e-05/0.2398, allocations: 192 / 0.7929 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.299e-05/0.2398, allocations: 11.44 kB / 0.793 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of SimCode: time 3.61e-07/0.2398, allocations: 0 / 0.793 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of Templates: time 0.003014/0.2429, allocations: 0.7093 MB / 0.7936 GB, free: 4.891 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: