Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001851/0.001851, allocations: 190.5 kB / 16.25 MB, free: 6.617 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.487/1.487, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.068/3.068, allocations: 472.6 MB / 0.7448 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.00128, allocations: 64.02 kB / 0.9115 GB, free: 33.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4488/0.4501, allocations: 159.9 MB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002265/0.4524, allocations: 0.7269 MB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001467/0.4539, allocations: 1.053 MB / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.61e-05/0.454, allocations: 0 / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.48e-05/0.454, allocations: 7.922 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.77e-05/0.4541, allocations: 0 / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003526/0.4545, allocations: 39.91 kB / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.4546, allocations: 39.91 kB / 1.07 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.4547, allocations: 12 kB / 1.07 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.973e-05/0.4548, allocations: 23.86 kB / 1.07 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.276e-05/0.4549, allocations: 27.84 kB / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.4549, allocations: 4 kB / 1.07 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.336e-05/0.455, allocations: 19.98 kB / 1.07 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.565e-05/0.455, allocations: 7.984 kB / 1.07 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.881e-05/0.4551, allocations: 23.86 kB / 1.07 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.4552, allocations: 59.84 kB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.4553, allocations: 0 / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.114e-06/0.4553, allocations: 0 / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.024e-06/0.4553, allocations: 0 / 1.07 GB, free: 8.746 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007004/0.456, allocations: 363.7 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.456, allocations: 12.03 kB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.643e-05/0.4561, allocations: 4.844 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.4563, allocations: 168.4 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.4563, allocations: 4.375 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.982e-05/0.4563, allocations: 4.375 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002223/0.4565, allocations: 62.17 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.4566, allocations: 192 / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.4566, allocations: 7.938 kB / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.4566, allocations: 7.984 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.4568, allocations: 39.95 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006138/0.4574, allocations: 276.8 kB / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.4576, allocations: 66.42 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.898e-05/0.4577, allocations: 28.97 kB / 1.071 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.4578, allocations: 3.984 kB / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/0.458, allocations: 75.33 kB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.458, allocations: 0 / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.000446/0.4585, allocations: 125.5 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.757e-05/0.4586, allocations: 55.34 kB / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.4587, allocations: 109.8 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.4587, allocations: 25.7 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.808e-05/0.4588, allocations: 84.14 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.613e-05/0.4588, allocations: 15.8 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.878e-05/0.4589, allocations: 21.72 kB / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001975/0.4591, allocations: 322.8 kB / 1.071 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.4592, allocations: 19.98 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.4593, allocations: 47.41 kB / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.4596, allocations: 87.27 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.4596, allocations: 0 / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002597/0.4598, allocations: 101.5 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.4599, allocations: 7.984 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.4599, allocations: 4.094 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.4599, allocations: 7.938 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.46, allocations: 19.92 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.46, allocations: 4 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.437e-05/0.4601, allocations: 4 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.4602, allocations: 0 / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001022/0.4603, allocations: 125.7 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.14e-05/0.4603, allocations: 4 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003001/0.4606, allocations: 110 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.4606, allocations: 0 / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.4606, allocations: 0 / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.4606, allocations: 0 / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004933/0.4611, allocations: 358.5 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.4611, allocations: 0.625 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.806e-05/0.4612, allocations: 11.98 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.4612, allocations: 0 / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.4612, allocations: 7.938 kB / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.4612, allocations: 4 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4613, allocations: 0 / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002997/0.4616, allocations: 191.4 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.445e-05/0.4616, allocations: 92.95 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.4616, allocations: 0 / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.4617, allocations: 11.98 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.76e-05/0.4618, allocations: 4.047 kB / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.4618, allocations: 7.922 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.833e-05/0.4619, allocations: 87.27 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.4619, allocations: 0 / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.00025/0.4621, allocations: 12 kB / 1.073 GB, free: 5.238 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002478/0.4624, allocations: 103.2 kB / 1.073 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002777/0.4627, allocations: 67.88 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.4627, allocations: 0 / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.4628, allocations: 35.92 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.4631, allocations: 9.547 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004645/0.4636, allocations: 146.2 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004858/0.4641, allocations: 0.6846 MB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.771e-05/0.4641, allocations: 7.938 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.926e-05/0.4642, allocations: 11.44 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.4642, allocations: 0 / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of Templates: time 0.003676/0.4679, allocations: 0.7342 MB / 1.075 GB, free: 3.391 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1)