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.612/2.612, allocations: 285 MB / 292.5 MB, free: 10.52 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.001431/0.001431, allocations: 176.4 kB / 360.7 MB, free: 7.234 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.064/2.064, allocations: 205.3 MB / 0.6192 GB, free: 12.14 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.001196/0.001196, allocations: 95.64 kB / 0.7322 GB, free: 44.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.716e-05/2.729e-05, allocations: 4 kB / 0.8509 GB, free: 3.348 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9182/0.9182, allocations: 115.2 MB / 0.9635 GB, free: 78.42 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2383/1.157, allocations: 137.2 MB / 1.097 GB, free: 3.316 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/1.157, allocations: 71.95 kB / 1.097 GB, free: 3.246 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.005103/1.162, allocations: 1.155 MB / 1.099 GB, free: 2.113 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.483e-06/1.162, allocations: 2.734 kB / 1.099 GB, free: 2.113 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.252e-06/1.162, allocations: 1.156 kB / 1.099 GB, free: 2.113 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.0006537/1.163, allocations: 370.9 kB / 1.099 GB, free: 1.711 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/1.163, allocations: 12.53 kB / 1.099 GB, free: 1.699 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.73e-05/1.163, allocations: 7.828 kB / 1.099 GB, free: 1.695 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/1.163, allocations: 179.5 kB / 1.099 GB, free: 1.48 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/1.163, allocations: 4.562 kB / 1.099 GB, free: 1.477 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/1.163, allocations: 10.67 kB / 1.099 GB, free: 1.469 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001254/1.163, allocations: 24.56 kB / 1.099 GB, free: 1.445 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001547/1.163, allocations: 68.77 kB / 1.099 GB, free: 1.375 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/1.163, allocations: 0.625 kB / 1.099 GB, free: 1.375 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/1.163, allocations: 0 / 1.099 GB, free: 1.375 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/1.163, allocations: 4.656 kB / 1.099 GB, free: 1.371 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007517/1.164, allocations: 300.5 kB / 1.1 GB, free: 1.043 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/1.164, allocations: 63.06 kB / 1.1 GB, free: 0.9727 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.75e-05/1.164, allocations: 29.58 kB / 1.1 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/1.165, allocations: 8.656 kB / 1.1 GB, free: 0.9336 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/1.165, allocations: 74.64 kB / 1.1 GB, free: 0.8516 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 2.014e-06/1.165, allocations: 0.7188 kB / 1.1 GB, free: 0.8516 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0003167/1.165, allocations: 109.5 kB / 1.1 GB, free: 0.7383 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/1.165, allocations: 56.09 kB / 1.1 GB, free: 0.6719 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.825e-05/1.165, allocations: 93.75 kB / 1.1 GB, free: 0.5742 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/1.165, allocations: 29.7 kB / 1.1 GB, free: 0.5391 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.028e-05/1.165, allocations: 88.98 kB / 1.1 GB, free: 456 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.63e-05/1.165, allocations: 24.16 kB / 1.1 GB, free: 432 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.007e-06/1.165, allocations: 0.6875 kB / 1.1 GB, free: 432 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001352/1.166, allocations: 328.4 kB / 1.1 GB, free: 96 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.324e-05/1.166, allocations: 20 kB / 1.1 GB, free: 76 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.583e-05/1.166, allocations: 48.11 kB / 1.1 GB, free: 20 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002522/1.166, allocations: 35.5 kB / 1.101 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/1.166, allocations: 0 / 1.101 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000383/1.166, allocations: 117.5 kB / 1.101 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/1.166, allocations: 4 kB / 1.101 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/1.166, allocations: 0 / 1.101 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/1.166, allocations: 4 kB / 1.101 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002401/1.167, allocations: 33.42 kB / 1.101 GB, free: 15.83 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/1.167, allocations: 0 / 1.101 GB, free: 15.83 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/1.167, allocations: 15.89 kB / 1.101 GB, free: 15.82 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/1.167, allocations: 4 kB / 1.101 GB, free: 15.81 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.0001208/1.167, allocations: 127.1 kB / 1.101 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/1.167, allocations: 7.984 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000305/1.167, allocations: 114.1 kB / 1.101 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/1.167, allocations: 6 kB / 1.101 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/1.167, allocations: 0 / 1.101 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/1.167, allocations: 0 / 1.101 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005564/1.168, allocations: 355 kB / 1.101 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/1.168, allocations: 0 / 1.101 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/1.168, allocations: 23.92 kB / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/1.168, allocations: 0.6562 kB / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/1.168, allocations: 0 / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/1.168, allocations: 0 / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.168, allocations: 0 / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003141/1.169, allocations: 215.1 kB / 1.101 GB, free: 14.92 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.932e-05/1.169, allocations: 77.11 kB / 1.102 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.037e-05/1.169, allocations: 7.984 kB / 1.102 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/1.169, allocations: 12 kB / 1.102 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.821e-05/1.169, allocations: 7.984 kB / 1.102 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/1.169, allocations: 3.375 kB / 1.102 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.845e-05/1.169, allocations: 91.2 kB / 1.102 GB, free: 14.71 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.91e-07/1.169, allocations: 0 / 1.102 GB, free: 14.71 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000358/1.169, allocations: 20 kB / 1.102 GB, free: 14.69 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.0002208/1.17, allocations: 120 kB / 1.102 GB, free: 14.56 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002176/1.17, allocations: 63.94 kB / 1.102 GB, free: 14.5 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.17, allocations: 0 / 1.102 GB, free: 14.5 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001103/1.17, allocations: 35.94 kB / 1.102 GB, free: 14.46 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002359/1.17, allocations: 11.94 kB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003822/1.171, allocations: 90.95 kB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/1.171, allocations: 0.6964 MB / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.948e-05/1.171, allocations: 8.422 kB / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.313e-05/1.171, allocations: 11.44 kB / 1.103 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of SimCode: time 7.32e-07/1.171, allocations: 0 / 1.103 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of Templates: time 0.004246/1.175, allocations: 0.8378 MB / 1.104 GB, free: 12.81 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)