Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 103.8 kB / 16.36 MB, free: 6.418 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.001093/0.001093, allocations: 198.3 kB / 17.3 MB, free: 5.801 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.402/1.402, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.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.801/1.801, allocations: 292.3 MB / 0.5496 GB, free: 17.59 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.001411/0.001411, allocations: 59.91 kB / 0.6729 GB, free: 5.867 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2518, allocations: 114.6 MB / 0.7848 GB, free: 3.203 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002352/0.2542, allocations: 0.6898 MB / 0.7855 GB, free: 2.508 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001568/0.2558, allocations: 1.067 MB / 0.7865 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.576e-05/0.2559, allocations: 3.938 kB / 0.7865 GB, free: 1.422 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.309e-05/0.2559, allocations: 3.938 kB / 0.7865 GB, free: 1.418 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.937e-05/0.256, allocations: 11.92 kB / 0.7865 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.2564, allocations: 51.83 kB / 0.7866 GB, free: 1.355 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001095/0.2565, allocations: 59.89 kB / 0.7866 GB, free: 1.297 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.2566, allocations: 15.98 kB / 0.7866 GB, free: 1.281 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.543e-05/0.2567, allocations: 23.92 kB / 0.7867 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.281e-05/0.2567, allocations: 35.83 kB / 0.7867 GB, free: 1.223 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.2568, allocations: 8 kB / 0.7867 GB, free: 1.215 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 8.092e-05/0.2569, allocations: 19.98 kB / 0.7867 GB, free: 1.195 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.241e-05/0.2569, allocations: 19.98 kB / 0.7867 GB, free: 1.176 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.443e-05/0.2569, allocations: 27.86 kB / 0.7868 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001516/0.2571, allocations: 79.69 kB / 0.7869 GB, free: 1.07 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2571, allocations: 0 / 0.7869 GB, free: 1.07 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2571, allocations: 3.938 kB / 0.7869 GB, free: 1.066 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.2571, allocations: 0 / 0.7869 GB, free: 1.066 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000631/0.2578, allocations: 383.4 kB / 0.7872 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.2578, allocations: 12.03 kB / 0.7872 GB, free: 0.6289 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.457e-05/0.2578, allocations: 8.844 kB / 0.7872 GB, free: 0.6211 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.258, allocations: 172.3 kB / 0.7874 GB, free: 424 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.258, allocations: 4.375 kB / 0.7874 GB, free: 420 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.148e-05/0.258, allocations: 8.375 kB / 0.7874 GB, free: 412 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.2583, allocations: 90.02 kB / 0.7875 GB, free: 316 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.2583, allocations: 192 / 0.7875 GB, free: 316 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.2583, allocations: 3.938 kB / 0.7875 GB, free: 312 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.2583, allocations: 4 kB / 0.7875 GB, free: 308 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002135/0.2585, allocations: 55.95 kB / 0.7876 GB, free: 252 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.39/0.6485, allocations: 299.7 kB / 0.7878 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.6488, allocations: 83.36 kB / 0.7879 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.6489, allocations: 42.86 kB / 0.788 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.649, allocations: 7.156 kB / 0.788 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002478/0.6492, allocations: 89.36 kB / 0.7881 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 3.296e-06/0.6492, allocations: 0 / 0.7881 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0004679/0.6497, allocations: 175.6 kB / 0.7882 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.6497, allocations: 57.36 kB / 0.7883 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.506e-05/0.6498, allocations: 106.1 kB / 0.7884 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.6498, allocations: 36.3 kB / 0.7884 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.448e-05/0.6499, allocations: 89.06 kB / 0.7885 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.501e-05/0.6499, allocations: 28.89 kB / 0.7885 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.65, allocations: 29.16 kB / 0.7886 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.946e-05/0.65, allocations: 321.3 kB / 0.7889 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.6501, allocations: 37.66 kB / 0.7889 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.6502, allocations: 58.11 kB / 0.789 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.6505, allocations: 105.7 kB / 0.7891 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.6505, allocations: 3.438 kB / 0.7891 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002875/0.6508, allocations: 141.3 kB / 0.7892 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.6508, allocations: 9.844 kB / 0.7892 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.6508, allocations: 1.969 kB / 0.7892 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.6508, allocations: 2.625 kB / 0.7892 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.6509, allocations: 20.3 kB / 0.7892 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.651, allocations: 2.062 kB / 0.7892 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.152e-05/0.651, allocations: 20.98 kB / 0.7893 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.6511, allocations: 5.25 kB / 0.7893 GB, free: 47.74 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 6.591e-05/0.6511, allocations: 123.7 kB / 0.7894 GB, free: 47.63 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.499e-05/0.6511, allocations: 13.84 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002965/0.6514, allocations: 144.8 kB / 0.7895 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.6515, allocations: 0 / 0.7895 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.6515, allocations: 2.188 kB / 0.7895 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.6515, allocations: 3.797 kB / 0.7895 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004021/0.6519, allocations: 411.2 kB / 0.7899 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.6519, allocations: 3.125 kB / 0.7899 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.168e-05/0.652, allocations: 12.86 kB / 0.7899 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.652, allocations: 0 / 0.7899 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.652, allocations: 3.75 kB / 0.7899 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.652, allocations: 4.469 kB / 0.7899 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.652, allocations: 0 / 0.7899 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.6523, allocations: 235.2 kB / 0.7902 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.054e-05/0.6523, allocations: 85.92 kB / 0.7903 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.6523, allocations: 0 / 0.7903 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.6524, allocations: 16.02 kB / 0.7903 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.301e-05/0.6525, allocations: 5.766 kB / 0.7903 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.6525, allocations: 3.719 kB / 0.7903 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.624e-05/0.6525, allocations: 86.89 kB / 0.7904 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6525, allocations: 1.031 kB / 0.7904 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002445/0.6528, allocations: 20.52 kB / 0.7904 GB, free: 46.98 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001226/0.6529, allocations: 111.3 kB / 0.7905 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002752/0.6532, allocations: 105.5 kB / 0.7906 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6532, allocations: 0 / 0.7906 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.6533, allocations: 44.75 kB / 0.7906 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002488/0.6536, allocations: 17.97 kB / 0.7906 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003057/0.6539, allocations: 159.3 kB / 0.7908 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001014/0.654, allocations: 0.6897 MB / 0.7915 GB, free: 46.09 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.126e-05/0.654, allocations: 5 kB / 0.7915 GB, free: 46.09 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.466e-05/0.6541, allocations: 12.69 kB / 0.7915 GB, free: 46.09 MB / 0.6544 GB Notification: Performance of SimCode: time 2.51e-07/0.6541, allocations: 0 / 0.7915 GB, free: 46.09 MB / 0.6544 GB Notification: Performance of Templates: time 0.002946/0.657, allocations: 1.019 MB / 0.7925 GB, free: 46.08 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)