Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.688/2.688, allocations: 284.8 MB / 297.3 MB, free: 6.32 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001444/0.001444, allocations: 176.8 kB / 365.7 MB, free: 2.566 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.028/2.028, allocations: 205.1 MB / 0.6241 GB, free: 8.195 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.00111, allocations: 108.2 kB / 0.7372 GB, free: 40.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.946e-05/2.962e-05, allocations: 4 kB / 0.8574 GB, free: 13.68 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.826/0.826, allocations: 115.2 MB / 0.97 GB, free: 78.12 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2778/1.104, allocations: 137.8 MB / 1.105 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/1.104, allocations: 67.97 kB / 1.105 GB, free: 14.53 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.005262/1.11, allocations: 1.16 MB / 1.106 GB, free: 13.39 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.983e-06/1.11, allocations: 4 kB / 1.106 GB, free: 13.39 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.694e-06/1.11, allocations: 0.5312 kB / 1.106 GB, free: 13.39 MB / 0.7136 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.0006844/1.11, allocations: 372.8 kB / 1.106 GB, free: 12.98 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/1.11, allocations: 8.719 kB / 1.106 GB, free: 12.97 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.321e-05/1.11, allocations: 6.016 kB / 1.106 GB, free: 12.97 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/1.111, allocations: 176.4 kB / 1.106 GB, free: 12.76 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.548e-05/1.111, allocations: 4 kB / 1.106 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/1.111, allocations: 11.94 kB / 1.106 GB, free: 12.74 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001961/1.111, allocations: 65.67 kB / 1.106 GB, free: 12.67 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/1.111, allocations: 1.188 kB / 1.106 GB, free: 12.67 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/1.111, allocations: 3.984 kB / 1.106 GB, free: 12.67 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/1.111, allocations: 0 / 1.106 GB, free: 12.67 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001249/1.111, allocations: 38.73 kB / 1.106 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008795/1.112, allocations: 327.4 kB / 1.107 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001911/1.112, allocations: 67.8 kB / 1.107 GB, free: 12.19 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.65e-05/1.112, allocations: 31.48 kB / 1.107 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.258e-05/1.112, allocations: 5.359 kB / 1.107 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001962/1.113, allocations: 77.64 kB / 1.107 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 2.585e-06/1.113, allocations: 3.938 kB / 1.107 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0003522/1.113, allocations: 109.6 kB / 1.107 GB, free: 11.95 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/1.113, allocations: 58.08 kB / 1.107 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/1.113, allocations: 101 kB / 1.107 GB, free: 11.78 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.625e-05/1.113, allocations: 33.7 kB / 1.107 GB, free: 11.74 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.507e-05/1.113, allocations: 90.91 kB / 1.107 GB, free: 11.65 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.36e-05/1.113, allocations: 31.62 kB / 1.107 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.297e-06/1.113, allocations: 0.5312 kB / 1.107 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001507/1.113, allocations: 323.7 kB / 1.108 GB, free: 11.29 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.786e-05/1.114, allocations: 24 kB / 1.108 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/1.114, allocations: 49.44 kB / 1.108 GB, free: 11.21 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/1.114, allocations: 30.61 kB / 1.108 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/1.114, allocations: 1.125 kB / 1.108 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002977/1.114, allocations: 127.4 kB / 1.108 GB, free: 11.06 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/1.114, allocations: 4 kB / 1.108 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/1.114, allocations: 7.062 kB / 1.108 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/1.114, allocations: 0 / 1.108 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/1.114, allocations: 23.92 kB / 1.108 GB, free: 11.03 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/1.115, allocations: 4 kB / 1.108 GB, free: 11.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/1.115, allocations: 15.89 kB / 1.108 GB, free: 11.01 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/1.115, allocations: 12.02 kB / 1.108 GB, free: 11 MB / 0.7136 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 () * 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.0001071/1.115, allocations: 121.1 kB / 1.108 GB, free: 10.88 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.67e-05/1.115, allocations: 0 / 1.108 GB, free: 10.88 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003244/1.115, allocations: 127.7 kB / 1.108 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/1.115, allocations: 0 / 1.108 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/1.115, allocations: 0 / 1.108 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/1.115, allocations: 4 kB / 1.108 GB, free: 10.74 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005682/1.116, allocations: 378.5 kB / 1.109 GB, free: 10.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/1.116, allocations: 4 kB / 1.109 GB, free: 10.31 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001747/1.116, allocations: 21.8 kB / 1.109 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/1.116, allocations: 0 / 1.109 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/1.116, allocations: 0 / 1.109 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/1.116, allocations: 0 / 1.109 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.116, allocations: 3.984 kB / 1.109 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003354/1.116, allocations: 215.3 kB / 1.109 GB, free: 10.06 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.183e-05/1.116, allocations: 81.11 kB / 1.109 GB, free: 9.965 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.909e-05/1.117, allocations: 7.938 kB / 1.109 GB, free: 9.957 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001787/1.117, allocations: 15.98 kB / 1.109 GB, free: 9.941 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.237e-05/1.117, allocations: 7.984 kB / 1.109 GB, free: 9.934 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/1.117, allocations: 0 / 1.109 GB, free: 9.934 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 6.128e-05/1.117, allocations: 92.36 kB / 1.109 GB, free: 9.844 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4e-07/1.117, allocations: 3.094 kB / 1.109 GB, free: 9.844 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003281/1.117, allocations: 23.98 kB / 1.109 GB, free: 9.82 MB / 0.7136 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) * 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.0002075/1.117, allocations: 112.3 kB / 1.109 GB, free: 9.703 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002649/1.118, allocations: 75.92 kB / 1.109 GB, free: 9.629 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.118, allocations: 4 kB / 1.109 GB, free: 9.625 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001069/1.118, allocations: 35.92 kB / 1.109 GB, free: 9.59 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/1.118, allocations: 4 kB / 1.109 GB, free: 9.586 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003554/1.118, allocations: 104 kB / 1.109 GB, free: 9.465 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/1.119, allocations: 0.6987 MB / 1.11 GB, free: 8.742 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.378e-05/1.119, allocations: 8.422 kB / 1.11 GB, free: 8.734 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.73e-05/1.119, allocations: 11.44 kB / 1.11 GB, free: 8.723 MB / 0.7136 GB Notification: Performance of SimCode: time 7.51e-07/1.119, allocations: 3.938 kB / 1.11 GB, free: 8.719 MB / 0.7136 GB Notification: Performance of Templates: time 0.004376/1.123, allocations: 0.8792 MB / 1.111 GB, free: 7.887 MB / 0.7136 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)