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.00115/0.00115, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.01037/0.01037, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.779/1.779, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.972/1.972, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0005371/0.0005373, allocations: 17.2 kB / 0.6743 GB, free: 25.65 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3141, allocations: 116.3 MB / 0.7879 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001158/0.3153, allocations: 421.4 kB / 0.7883 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0022/0.3176, allocations: 1.064 MB / 0.7893 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.377e-05/0.3177, allocations: 3.938 kB / 0.7893 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.48e-05/0.3177, allocations: 4 kB / 0.7893 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.3179, allocations: 3.938 kB / 0.7893 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004045/0.3183, allocations: 39.89 kB / 0.7894 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.3184, allocations: 59.91 kB / 0.7894 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.3186, allocations: 11.98 kB / 0.7894 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.3187, allocations: 27.91 kB / 0.7895 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.3189, allocations: 27.84 kB / 0.7895 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.3189, allocations: 4 kB / 0.7895 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.319, allocations: 19.98 kB / 0.7895 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.026e-05/0.3191, allocations: 11.98 kB / 0.7895 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.338e-05/0.3191, allocations: 53.56 kB / 0.7896 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.3193, allocations: 75.67 kB / 0.7897 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3194, allocations: 0 / 0.7897 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.574e-06/0.3194, allocations: 0 / 0.7897 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.3194, allocations: 0 / 0.7897 GB, free: 9.758 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.0008578/0.3202, allocations: 379.7 kB / 0.79 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.899e-05/0.3203, allocations: 12.03 kB / 0.79 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.526e-05/0.3204, allocations: 4.844 kB / 0.79 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001903/0.3206, allocations: 168.3 kB / 0.7902 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.3206, allocations: 8.359 kB / 0.7902 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.3207, allocations: 8.375 kB / 0.7902 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.3209, allocations: 86.22 kB / 0.7903 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.3209, allocations: 4.188 kB / 0.7903 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/0.321, allocations: 7.922 kB / 0.7903 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.321, allocations: 0 / 0.7903 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002255/0.3212, allocations: 71.83 kB / 0.7904 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006597/0.3219, allocations: 312.8 kB / 0.7907 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002251/0.3221, allocations: 94.45 kB / 0.7908 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.3223, allocations: 56.95 kB / 0.7908 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.3223, allocations: 4 kB / 0.7908 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.3226, allocations: 87.38 kB / 0.7909 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 2.334e-06/0.3226, allocations: 4 kB / 0.7909 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006235/0.3232, allocations: 189.4 kB / 0.7911 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.626e-05/0.3233, allocations: 63.39 kB / 0.7911 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.3235, allocations: 105.8 kB / 0.7912 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.3235, allocations: 33.7 kB / 0.7913 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.051e-05/0.3236, allocations: 84.38 kB / 0.7914 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.608e-05/0.3236, allocations: 27.64 kB / 0.7914 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.696e-05/0.3237, allocations: 17.72 kB / 0.7914 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.3238, allocations: 322.8 kB / 0.7917 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.324, allocations: 43.97 kB / 0.7918 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.3242, allocations: 70.48 kB / 0.7918 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.3245, allocations: 110.5 kB / 0.7919 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3245, allocations: 0 / 0.7919 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004068/0.3249, allocations: 161.5 kB / 0.7921 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.3249, allocations: 4 kB / 0.7921 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3249, allocations: 0 / 0.7921 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.325, allocations: 4 kB / 0.7921 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.3251, allocations: 27.92 kB / 0.7921 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.3251, allocations: 0 / 0.7921 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.657e-05/0.3252, allocations: 19.83 kB / 0.7921 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.3253, allocations: 12 kB / 0.7921 GB, free: 6.957 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.0001323/0.3254, allocations: 126.4 kB / 0.7923 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.688e-05/0.3254, allocations: 0 / 0.7923 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004029/0.3258, allocations: 154 kB / 0.7924 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.3259, allocations: 4 kB / 0.7924 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.3259, allocations: 0 / 0.7924 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3259, allocations: 7.922 kB / 0.7924 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00074/0.3266, allocations: 426.7 kB / 0.7928 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3266, allocations: 4 kB / 0.7928 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.89e-05/0.3267, allocations: 11.98 kB / 0.7928 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.3267, allocations: 4 kB / 0.7928 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.3267, allocations: 0 / 0.7928 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.788e-06/0.3268, allocations: 0 / 0.7928 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3268, allocations: 3.938 kB / 0.7929 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004032/0.3272, allocations: 251.4 kB / 0.7931 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.844e-05/0.3272, allocations: 84.95 kB / 0.7932 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.3273, allocations: 4 kB / 0.7932 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.3274, allocations: 11.98 kB / 0.7932 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.256e-05/0.3274, allocations: 16.23 kB / 0.7932 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.3275, allocations: 3.938 kB / 0.7932 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.006e-05/0.3275, allocations: 87.28 kB / 0.7933 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3275, allocations: 0 / 0.7933 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002631/0.3278, allocations: 16 kB / 0.7933 GB, free: 5.66 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.0001939/0.328, allocations: 115.2 kB / 0.7934 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003495/0.3284, allocations: 107.9 kB / 0.7935 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3284, allocations: 0 / 0.7935 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.3285, allocations: 51.97 kB / 0.7936 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.3288, allocations: 11.09 kB / 0.7936 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004654/0.3293, allocations: 177.2 kB / 0.7937 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.3296, allocations: 0.693 MB / 0.7944 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.374e-05/0.3297, allocations: 4.438 kB / 0.7944 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.289e-05/0.3297, allocations: 15.42 kB / 0.7944 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of SimCode: time 5.92e-07/0.3297, allocations: 4 kB / 0.7944 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of Templates: time 0.004067/0.3338, allocations: 0.896 MB / 0.7953 GB, free: 3.535 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: