Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.368/2.368, allocations: 251.1 MB / 266.7 MB, free: 11.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002229/0.002229, allocations: 185.5 kB / 326.3 MB, free: 2.859 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.601/2.601, allocations: 205.4 MB / 0.5772 GB, free: 20.78 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008873/0.0008872, allocations: 92.36 kB / 0.6817 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006583/0.0006586, allocations: 13.91 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2316, allocations: 106.3 MB / 0.8995 GB, free: 65.54 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001548/0.2332, allocations: 1.115 MB / 0.9006 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005481/0.2337, allocations: 237.4 kB / 0.9008 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.901e-05/0.2338, allocations: 4 kB / 0.9008 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.765e-05/0.2338, allocations: 3.938 kB / 0.9008 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.908e-05/0.2339, allocations: 0 / 0.9008 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001969/0.2341, allocations: 27.91 kB / 0.9009 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.23e-05/0.2342, allocations: 59.83 kB / 0.9009 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.778e-05/0.2343, allocations: 12 kB / 0.9009 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.423e-05/0.2344, allocations: 23.86 kB / 0.901 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.956e-05/0.2345, allocations: 23.91 kB / 0.901 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.2345, allocations: 4 kB / 0.901 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.614e-05/0.2345, allocations: 4 kB / 0.901 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.996e-05/0.2346, allocations: 15.97 kB / 0.901 GB, free: 64 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.321e-05/0.2346, allocations: 37.64 kB / 0.901 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.213e-05/0.2347, allocations: 43.84 kB / 0.9011 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2347, allocations: 0 / 0.9011 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.703e-06/0.2347, allocations: 0 / 0.9011 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.2347, allocations: 0 / 0.9011 GB, free: 63.91 MB / 0.6042 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.0006236/0.2354, allocations: 383.5 kB / 0.9014 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.2354, allocations: 8.031 kB / 0.9014 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.21e-05/0.2355, allocations: 4.938 kB / 0.9015 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.351e-05/0.2356, allocations: 168.3 kB / 0.9016 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.2356, allocations: 8.359 kB / 0.9016 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.534e-05/0.2357, allocations: 8.375 kB / 0.9016 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002852/0.2359, allocations: 86.16 kB / 0.9017 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.236, allocations: 192 / 0.9017 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.236, allocations: 7.922 kB / 0.9017 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.236, allocations: 0 / 0.9017 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.2364, allocations: 67.95 kB / 0.9018 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005184/0.2369, allocations: 308.7 kB / 0.9021 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002756/0.2372, allocations: 98.41 kB / 0.9022 GB, free: 62.63 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/0.2374, allocations: 40.84 kB / 0.9022 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.2374, allocations: 7.984 kB / 0.9022 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000319/0.2378, allocations: 95.38 kB / 0.9023 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 2.495e-06/0.2378, allocations: 192 / 0.9023 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0007179/0.2385, allocations: 189.5 kB / 0.9025 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.959e-05/0.2385, allocations: 59.34 kB / 0.9025 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.04e-05/0.2386, allocations: 109.8 kB / 0.9027 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.2387, allocations: 29.7 kB / 0.9027 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.853e-05/0.2387, allocations: 92.36 kB / 0.9028 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.109e-05/0.2387, allocations: 24.03 kB / 0.9028 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.165e-06/0.2388, allocations: 0 / 0.9028 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.092e-05/0.2388, allocations: 322.8 kB / 0.9031 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.239, allocations: 39.97 kB / 0.9031 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.2392, allocations: 76.61 kB / 0.9032 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.2395, allocations: 47.98 kB / 0.9033 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.2395, allocations: 3.938 kB / 0.9033 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00047/0.24, allocations: 157.5 kB / 0.9034 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.24, allocations: 4 kB / 0.9034 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.24, allocations: 0 / 0.9034 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.24, allocations: 4 kB / 0.9034 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001942/0.2402, allocations: 23.97 kB / 0.9034 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.2403, allocations: 4 kB / 0.9034 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.2404, allocations: 20 kB / 0.9035 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.2404, allocations: 4 kB / 0.9035 GB, free: 61.22 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.579e-05/0.2405, allocations: 133.7 kB / 0.9036 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.942e-05/0.2405, allocations: 4 kB / 0.9036 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005064/0.2411, allocations: 161.8 kB / 0.9038 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2411, allocations: 0 / 0.9038 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2411, allocations: 0 / 0.9038 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.626e-05/0.2411, allocations: 81.05 kB / 0.9038 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.2412, allocations: 4 kB / 0.9038 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.2413, allocations: 11.98 kB / 0.9038 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.2414, allocations: 15.92 kB / 0.9039 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005991/0.242, allocations: 232.8 kB / 0.9041 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0005039/0.2425, allocations: 318.6 kB / 0.9044 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002028/0.2427, allocations: 52.19 kB / 0.9044 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.409e-05/0.2428, allocations: 87.28 kB / 0.9045 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of Backend: time 6.21e-07/0.2428, allocations: 0 / 0.9045 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005777/0.2434, allocations: 142.3 kB / 0.9047 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0004847/0.2439, allocations: 0.6113 MB / 0.9053 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of Templates: time 0.003814/0.2477, allocations: 0.8391 MB / 0.9061 GB, free: 58.45 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)