Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.001168/0.001168, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.009497/0.009497, allocations: 169.4 kB / 16.26 MB, free: 6.68 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.535/1.535, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.047/3.047, allocations: 473.4 MB / 0.7469 GB, free: 6.113 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000523/0.0005232, allocations: 8.312 kB / 0.9158 GB, free: 33.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4084/0.4089, allocations: 162.2 MB / 1.074 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001118/0.4101, allocations: 421.2 kB / 1.075 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001582/0.4117, allocations: 1.065 MB / 1.076 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.174e-05/0.4118, allocations: 0 / 1.076 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.147e-05/0.4118, allocations: 7.938 kB / 1.076 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.428e-05/0.4119, allocations: 0 / 1.076 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.4122, allocations: 43.89 kB / 1.076 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.4123, allocations: 63.84 kB / 1.076 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.4124, allocations: 15.97 kB / 1.076 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.327e-05/0.4125, allocations: 19.92 kB / 1.076 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.233e-05/0.4126, allocations: 31.83 kB / 1.076 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.4126, allocations: 7.938 kB / 1.076 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.142e-05/0.4127, allocations: 23.98 kB / 1.076 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.972e-05/0.4127, allocations: 4 kB / 1.076 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.261e-05/0.4128, allocations: 61.53 kB / 1.076 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.413, allocations: 71.73 kB / 1.076 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.413, allocations: 0 / 1.076 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.316e-06/0.413, allocations: 0 / 1.076 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.413, allocations: 0 / 1.076 GB, free: 5.73 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.0007105/0.4137, allocations: 379.7 kB / 1.076 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.4138, allocations: 8.031 kB / 1.076 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.209e-05/0.4139, allocations: 12.84 kB / 1.076 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.414, allocations: 172.3 kB / 1.076 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.414, allocations: 384 / 1.076 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/0.4141, allocations: 16.36 kB / 1.076 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002333/0.4143, allocations: 82.22 kB / 1.077 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.4143, allocations: 192 / 1.077 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.4143, allocations: 3.938 kB / 1.077 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.4144, allocations: 4 kB / 1.077 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002211/0.4146, allocations: 67.88 kB / 1.077 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006197/0.4152, allocations: 316.6 kB / 1.077 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.4154, allocations: 86.47 kB / 1.077 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.4156, allocations: 56.83 kB / 1.077 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.4156, allocations: 0 / 1.077 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002394/0.4159, allocations: 91.5 kB / 1.077 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.442e-06/0.4159, allocations: 4 kB / 1.077 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0005267/0.4164, allocations: 189.5 kB / 1.077 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.4165, allocations: 59.77 kB / 1.077 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.936e-05/0.4166, allocations: 105.9 kB / 1.077 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.4166, allocations: 33.69 kB / 1.078 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.882e-05/0.4167, allocations: 92.36 kB / 1.078 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.4167, allocations: 31.58 kB / 1.078 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.404e-05/0.4167, allocations: 17.72 kB / 1.078 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.4169, allocations: 318.8 kB / 1.078 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/0.417, allocations: 47.97 kB / 1.078 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.4171, allocations: 62.55 kB / 1.078 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.4174, allocations: 118.4 kB / 1.078 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.4174, allocations: 0 / 1.078 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00034/0.4178, allocations: 153.6 kB / 1.078 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.4178, allocations: 8 kB / 1.078 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.4178, allocations: 0 / 1.078 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.4178, allocations: 0 / 1.078 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.418, allocations: 28.23 kB / 1.078 GB, free: 2.969 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.415e-06/0.418, allocations: 0 / 1.078 GB, free: 2.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.607e-05/0.4181, allocations: 23.86 kB / 1.078 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.4181, allocations: 4 kB / 1.078 GB, free: 2.941 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.0001083/0.4182, allocations: 126.3 kB / 1.079 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.4182, allocations: 7.906 kB / 1.079 GB, free: 2.801 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003699/0.4186, allocations: 153.9 kB / 1.079 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.4186, allocations: 4 kB / 1.079 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.4186, allocations: 0 / 1.079 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.4186, allocations: 4 kB / 1.079 GB, free: 2.637 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005723/0.4192, allocations: 418.3 kB / 1.079 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4192, allocations: 4 kB / 1.079 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.734e-05/0.4193, allocations: 15.98 kB / 1.079 GB, free: 2.152 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.4193, allocations: 3.984 kB / 1.079 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.4193, allocations: 0 / 1.079 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.4193, allocations: 4 kB / 1.079 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.4194, allocations: 3.938 kB / 1.079 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003658/0.4197, allocations: 247.6 kB / 1.079 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.646e-05/0.4198, allocations: 88.94 kB / 1.079 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.4198, allocations: 0 / 1.079 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.4199, allocations: 19.92 kB / 1.079 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.467e-05/0.42, allocations: 0 / 1.079 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.42, allocations: 19.92 kB / 1.079 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.019e-05/0.4201, allocations: 79.28 kB / 1.08 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.593e-06/0.4201, allocations: 0 / 1.08 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002488/0.4203, allocations: 23.94 kB / 1.08 GB, free: 1.637 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.000189/0.4205, allocations: 107.2 kB / 1.08 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003414/0.4209, allocations: 111.9 kB / 1.08 GB, free: 1.414 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4209, allocations: 0 / 1.08 GB, free: 1.414 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.421, allocations: 55.91 kB / 1.08 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.4213, allocations: 5.547 kB / 1.08 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004163/0.4217, allocations: 182.1 kB / 1.08 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.422, allocations: 0.6887 MB / 1.081 GB, free: 444 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.754e-05/0.4221, allocations: 4.438 kB / 1.081 GB, free: 440 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.537e-05/0.4221, allocations: 11.44 kB / 1.081 GB, free: 428 kB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.4221, allocations: 8 kB / 1.081 GB, free: 420 kB / 0.8262 GB Notification: Performance of Templates: time 0.003814/0.426, allocations: 0.9118 MB / 1.082 GB, free: 15.51 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1)