Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.825/2.825, allocations: 287.5 MB / 303.2 MB, free: 8.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001284/0.001284, allocations: 182.4 kB / 371.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.037/2.037, allocations: 205.4 MB / 0.6305 GB, free: 10.55 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008956/0.0008953, allocations: 96.98 kB / 0.7438 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004859/0.000486, allocations: 15.89 kB / 0.8667 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2251, allocations: 115.3 MB / 0.9793 GB, free: 28.16 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9136/1.139, allocations: 137.9 MB / 1.114 GB, free: 15.75 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/1.139, allocations: 71.22 kB / 1.114 GB, free: 15.75 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005421/1.145, allocations: 1.161 MB / 1.115 GB, free: 31.4 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.615e-06/1.145, allocations: 0 / 1.115 GB, free: 31.4 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.049e-05/1.145, allocations: 7.844 kB / 1.115 GB, free: 31.4 MB / 0.698 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.0007024/1.145, allocations: 374.6 kB / 1.116 GB, free: 31.04 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/1.145, allocations: 11.72 kB / 1.116 GB, free: 31.04 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.928e-05/1.145, allocations: 8.75 kB / 1.116 GB, free: 31.03 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/1.146, allocations: 169.7 kB / 1.116 GB, free: 30.83 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/1.146, allocations: 11.72 kB / 1.116 GB, free: 30.82 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/1.146, allocations: 12.16 kB / 1.116 GB, free: 30.82 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/1.146, allocations: 84.45 kB / 1.116 GB, free: 30.79 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/1.146, allocations: 192 / 1.116 GB, free: 30.79 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/1.146, allocations: 3.938 kB / 1.116 GB, free: 30.79 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/1.146, allocations: 6.281 kB / 1.116 GB, free: 30.79 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003261/1.146, allocations: 65.73 kB / 1.116 GB, free: 30.78 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008074/1.147, allocations: 327.7 kB / 1.116 GB, free: 30.51 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000281/1.147, allocations: 91.48 kB / 1.116 GB, free: 30.48 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000191/1.148, allocations: 46.92 kB / 1.116 GB, free: 30.47 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/1.148, allocations: 6.906 kB / 1.116 GB, free: 30.47 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003348/1.148, allocations: 89.69 kB / 1.116 GB, free: 30.42 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 3.506e-06/1.148, allocations: 3.938 kB / 1.116 GB, free: 30.42 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0007708/1.149, allocations: 187.7 kB / 1.117 GB, free: 30.38 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.09e-05/1.149, allocations: 68.44 kB / 1.117 GB, free: 30.31 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.466e-05/1.149, allocations: 105.2 kB / 1.117 GB, free: 30.21 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/1.149, allocations: 33.61 kB / 1.117 GB, free: 30.18 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.803e-05/1.149, allocations: 89.56 kB / 1.117 GB, free: 30.09 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.626e-05/1.149, allocations: 30.23 kB / 1.117 GB, free: 30.07 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.996e-06/1.149, allocations: 0 / 1.117 GB, free: 30.07 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001447/1.149, allocations: 316.3 kB / 1.117 GB, free: 29.76 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001878/1.15, allocations: 42.45 kB / 1.117 GB, free: 29.76 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/1.15, allocations: 68.92 kB / 1.117 GB, free: 29.73 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003713/1.15, allocations: 117.1 kB / 1.117 GB, free: 29.7 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/1.15, allocations: 0 / 1.117 GB, free: 29.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004896/1.151, allocations: 151.2 kB / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/1.151, allocations: 7.688 kB / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/1.151, allocations: 0 / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/1.151, allocations: 4.062 kB / 1.118 GB, free: 29.65 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/1.151, allocations: 22.47 kB / 1.118 GB, free: 29.65 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/1.151, allocations: 2.859 kB / 1.118 GB, free: 29.65 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/1.151, allocations: 15.38 kB / 1.118 GB, free: 29.65 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/1.151, allocations: 6.906 kB / 1.118 GB, free: 29.65 MB / 0.698 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 ($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 0.0001391/1.151, allocations: 128.9 kB / 1.118 GB, free: 29.53 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.074e-05/1.151, allocations: 7.906 kB / 1.118 GB, free: 29.52 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005219/1.152, allocations: 154.7 kB / 1.118 GB, free: 29.48 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/1.152, allocations: 3.938 kB / 1.118 GB, free: 29.48 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/1.152, allocations: 3.938 kB / 1.118 GB, free: 29.48 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/1.152, allocations: 0 / 1.118 GB, free: 29.48 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007668/1.153, allocations: 423.5 kB / 1.118 GB, free: 29.18 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/1.153, allocations: 0 / 1.118 GB, free: 29.18 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/1.153, allocations: 10.53 kB / 1.118 GB, free: 29.18 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/1.153, allocations: 7.844 kB / 1.118 GB, free: 29.17 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/1.153, allocations: 3.875 kB / 1.118 GB, free: 29.17 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/1.153, allocations: 0.7969 kB / 1.118 GB, free: 29.17 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.153, allocations: 6.938 kB / 1.118 GB, free: 29.17 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005135/1.154, allocations: 251 kB / 1.119 GB, free: 29.02 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.864e-05/1.154, allocations: 87.53 kB / 1.119 GB, free: 28.92 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/1.154, allocations: 0 / 1.119 GB, free: 28.92 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/1.154, allocations: 14.28 kB / 1.119 GB, free: 28.92 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.814e-05/1.154, allocations: 2.812 kB / 1.119 GB, free: 28.92 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/1.154, allocations: 18.36 kB / 1.119 GB, free: 28.91 MB / 0.698 GB Notification: Performance of sorting global known variables: time 5.779e-05/1.154, allocations: 79.22 kB / 1.119 GB, free: 28.84 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.71e-07/1.154, allocations: 0 / 1.119 GB, free: 28.84 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003792/1.154, allocations: 37.92 kB / 1.119 GB, free: 28.83 MB / 0.698 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 (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.0001961/1.155, allocations: 105.6 kB / 1.119 GB, free: 28.74 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004785/1.155, allocations: 106.9 kB / 1.119 GB, free: 28.73 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/1.155, allocations: 4.062 kB / 1.119 GB, free: 28.73 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002075/1.155, allocations: 51.14 kB / 1.119 GB, free: 28.73 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/1.156, allocations: 11.25 kB / 1.119 GB, free: 28.73 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004879/1.156, allocations: 171.2 kB / 1.119 GB, free: 28.59 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003169/1.157, allocations: 0.6822 MB / 1.12 GB, free: 27.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.266e-05/1.157, allocations: 10.73 kB / 1.12 GB, free: 27.89 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.938e-05/1.157, allocations: 11.31 kB / 1.12 GB, free: 27.89 MB / 0.698 GB Notification: Performance of SimCode: time 9.91e-07/1.157, allocations: 0 / 1.12 GB, free: 27.89 MB / 0.698 GB Notification: Performance of Templates: time 0.004239/1.161, allocations: 0.8953 MB / 1.121 GB, free: 27.81 MB / 0.698 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)