Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001398/0.001398, allocations: 193.1 kB / 16.13 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.059/3.059, allocations: 472.6 MB / 0.7447 GB, free: 4.965 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002268/0.002268, allocations: 73.89 kB / 0.9114 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4425/0.4448, allocations: 159.9 MB / 1.068 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00234/0.4472, allocations: 0.7463 MB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001514/0.4487, allocations: 1.069 MB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.412e-05/0.4487, allocations: 0 / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.499e-05/0.4488, allocations: 7.922 kB / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.448e-05/0.4489, allocations: 4 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.4492, allocations: 43.91 kB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001124/0.4493, allocations: 67.83 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.4494, allocations: 11.97 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.243e-05/0.4495, allocations: 27.92 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.183e-05/0.4496, allocations: 27.84 kB / 1.069 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.89e-05/0.4496, allocations: 4 kB / 1.069 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.339e-05/0.4497, allocations: 15.98 kB / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.933e-05/0.4498, allocations: 15.97 kB / 1.07 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.409e-05/0.4498, allocations: 31.86 kB / 1.07 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001692/0.45, allocations: 75.75 kB / 1.07 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.45, allocations: 0 / 1.07 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.673e-06/0.45, allocations: 0 / 1.07 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.45, allocations: 0 / 1.07 GB, free: 8.715 MB / 0.8262 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.0007307/0.4508, allocations: 375.7 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.4508, allocations: 8.031 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.493e-05/0.4509, allocations: 12.84 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.451, allocations: 180.2 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.451, allocations: 4.375 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.216e-05/0.4511, allocations: 8.375 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002456/0.4513, allocations: 78.2 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.4513, allocations: 4.125 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.4513, allocations: 7.938 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.4514, allocations: 0 / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002153/0.4516, allocations: 55.95 kB / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005802/0.4522, allocations: 316.6 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002076/0.4524, allocations: 82.48 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001266/0.4525, allocations: 44.83 kB / 1.071 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.4526, allocations: 4 kB / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.4528, allocations: 91.48 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.4528, allocations: 0 / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0005069/0.4533, allocations: 177.5 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.4534, allocations: 55.41 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.135e-05/0.4535, allocations: 105.8 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.4535, allocations: 33.7 kB / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.263e-05/0.4536, allocations: 80.38 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.943e-05/0.4536, allocations: 31.64 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.366e-05/0.4537, allocations: 33.7 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4538, allocations: 314.8 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.4539, allocations: 39.97 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.4541, allocations: 66.53 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/0.4543, allocations: 102.4 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4543, allocations: 4 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003225/0.4546, allocations: 141.5 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.4547, allocations: 7.984 kB / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.4547, allocations: 4 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.4547, allocations: 0 / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.4548, allocations: 20.36 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.4549, allocations: 3.938 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.602e-05/0.4549, allocations: 19.91 kB / 1.072 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.455, allocations: 7.984 kB / 1.072 GB, free: 5.996 MB / 0.8262 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.0001023/0.4551, allocations: 134.2 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.28e-05/0.4551, allocations: 0 / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003521/0.4554, allocations: 141.9 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.4555, allocations: 0 / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4555, allocations: 4 kB / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.4555, allocations: 4 kB / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005538/0.456, allocations: 410.3 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.456, allocations: 256 / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.205e-05/0.4561, allocations: 15.98 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.4561, allocations: 0 / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.4562, allocations: 7.984 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.4562, allocations: 7.938 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.4562, allocations: 4 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003521/0.4565, allocations: 223.4 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-05/0.4566, allocations: 92.89 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.4566, allocations: 7.984 kB / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.4567, allocations: 4 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.555e-05/0.4568, allocations: 11.98 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.4568, allocations: 7.938 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.358e-05/0.4569, allocations: 91.2 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4569, allocations: 0 / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002536/0.4571, allocations: 20 kB / 1.073 GB, free: 4.727 MB / 0.8262 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.0001791/0.4573, allocations: 106.5 kB / 1.073 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003189/0.4576, allocations: 103.8 kB / 1.073 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4577, allocations: 4 kB / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.4578, allocations: 47.91 kB / 1.073 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.4581, allocations: 8 kB / 1.073 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003931/0.4585, allocations: 172.6 kB / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003509/0.4588, allocations: 0.6848 MB / 1.074 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.039e-05/0.4589, allocations: 8.438 kB / 1.074 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.734e-05/0.4589, allocations: 15.42 kB / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of SimCode: time 5.71e-07/0.4589, allocations: 0 / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of Templates: time 0.003864/0.4628, allocations: 0.9247 MB / 1.075 GB, free: 2.613 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1)