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.001278/0.001278, allocations: 108 kB / 15.6 MB, free: 132 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.001369/0.001368, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.629/1.629, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.832/1.832, allocations: 292.3 MB / 0.5489 GB, free: 12.79 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.002287/0.002287, allocations: 68.39 kB / 0.6715 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3053, allocations: 114.5 MB / 0.7834 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002169/0.3075, allocations: 0.6904 MB / 0.784 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00149/0.3091, allocations: 1.067 MB / 0.7851 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.012e-05/0.3091, allocations: 0 / 0.7851 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.435e-05/0.3092, allocations: 7.938 kB / 0.7851 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.692e-05/0.3093, allocations: 7.922 kB / 0.7851 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003075/0.3096, allocations: 47.83 kB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001098/0.3097, allocations: 63.91 kB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.3098, allocations: 15.98 kB / 0.7852 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.716e-05/0.3099, allocations: 31.91 kB / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.874e-05/0.31, allocations: 31.84 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.31, allocations: 8 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.515e-05/0.3101, allocations: 31.92 kB / 0.7853 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.567e-05/0.3101, allocations: 15.97 kB / 0.7853 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.648e-05/0.3102, allocations: 27.86 kB / 0.7854 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.3104, allocations: 71.75 kB / 0.7854 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3104, allocations: 0 / 0.7854 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3104, allocations: 0 / 0.7854 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.426e-06/0.3104, allocations: 0 / 0.7854 GB, free: 11.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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006488/0.311, allocations: 383.6 kB / 0.7858 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.3111, allocations: 15.97 kB / 0.7858 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.194e-05/0.3111, allocations: 0.9375 kB / 0.7858 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.3113, allocations: 180.2 kB / 0.786 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.3113, allocations: 4.375 kB / 0.786 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.612e-05/0.3113, allocations: 4.375 kB / 0.786 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.3115, allocations: 86.14 kB / 0.7861 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.3116, allocations: 192 / 0.7861 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.3116, allocations: 7.938 kB / 0.7861 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.3116, allocations: 4 kB / 0.7861 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002161/0.3118, allocations: 51.89 kB / 0.7861 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004942/0.3123, allocations: 304.8 kB / 0.7864 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000207/0.3125, allocations: 90.42 kB / 0.7865 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.3127, allocations: 44.83 kB / 0.7866 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.3127, allocations: 0 / 0.7866 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/0.313, allocations: 91.36 kB / 0.7866 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.313, allocations: 0 / 0.7866 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.000518/0.3135, allocations: 177.6 kB / 0.7868 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.3136, allocations: 55.41 kB / 0.7869 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.831e-05/0.3137, allocations: 109.8 kB / 0.787 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.3137, allocations: 33.64 kB / 0.787 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.567e-05/0.3137, allocations: 88.38 kB / 0.7871 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.948e-05/0.3138, allocations: 27.64 kB / 0.7871 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.054e-05/0.3138, allocations: 25.72 kB / 0.7871 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.314, allocations: 326.8 kB / 0.7875 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.3141, allocations: 35.97 kB / 0.7875 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.3142, allocations: 62.56 kB / 0.7875 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002336/0.3145, allocations: 106.8 kB / 0.7876 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3145, allocations: 0 / 0.7876 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003179/0.3148, allocations: 141.5 kB / 0.7878 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3148, allocations: 8 kB / 0.7878 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.3149, allocations: 3.938 kB / 0.7878 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.3149, allocations: 0 / 0.7878 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.315, allocations: 27.97 kB / 0.7878 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.315, allocations: 8.062 kB / 0.7878 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.103e-05/0.3151, allocations: 11.84 kB / 0.7878 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.3151, allocations: 4 kB / 0.7878 GB, free: 8.602 MB / 0.6075 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 0.0001522/0.3153, allocations: 134.3 kB / 0.788 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.582e-05/0.3153, allocations: 7.906 kB / 0.788 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003481/0.3157, allocations: 141.9 kB / 0.7881 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.3157, allocations: 8 kB / 0.7881 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3157, allocations: 0 / 0.7881 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3157, allocations: 0 / 0.7881 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000536/0.3162, allocations: 406.4 kB / 0.7885 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3162, allocations: 0 / 0.7885 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.534e-05/0.3163, allocations: 11.98 kB / 0.7885 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.3163, allocations: 4 kB / 0.7885 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.3163, allocations: 4 kB / 0.7885 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.3164, allocations: 0 / 0.7885 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3164, allocations: 3.938 kB / 0.7885 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003381/0.3167, allocations: 243.3 kB / 0.7888 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.628e-05/0.3168, allocations: 81.05 kB / 0.7888 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.3168, allocations: 0 / 0.7888 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.3169, allocations: 16.27 kB / 0.7889 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.271e-05/0.317, allocations: 7.984 kB / 0.7889 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.317, allocations: 8.188 kB / 0.7889 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.368e-05/0.317, allocations: 91.2 kB / 0.789 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.317, allocations: 0 / 0.789 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002511/0.3173, allocations: 20 kB / 0.789 GB, free: 7.332 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: 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.0001551/0.3174, allocations: 107.2 kB / 0.7891 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003065/0.3178, allocations: 107.9 kB / 0.7892 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3178, allocations: 0 / 0.7892 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.3179, allocations: 47.91 kB / 0.7892 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.3182, allocations: 11.98 kB / 0.7892 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003711/0.3186, allocations: 162.2 kB / 0.7894 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.3188, allocations: 0.6924 MB / 0.7901 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.438e-05/0.3189, allocations: 4.438 kB / 0.7901 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.821e-05/0.3189, allocations: 11.44 kB / 0.7901 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.3189, allocations: 0 / 0.7901 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of Templates: time 0.003505/0.3224, allocations: 1.031 MB / 0.7911 GB, free: 5.113 MB / 0.6075 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 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)