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.001316/0.001316, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001787/0.001787, allocations: 192.4 kB / 16.14 MB, free: 6.688 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.572/1.572, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.279/3.279, allocations: 472.6 MB / 0.7447 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 66.02 kB / 0.9114 GB, free: 33.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.468/0.4693, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002922/0.4723, allocations: 0.7192 MB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00172/0.4741, allocations: 1.053 MB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.693e-05/0.4741, allocations: 0 / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.399e-05/0.4742, allocations: 3.938 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.986e-05/0.4743, allocations: 4 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003119/0.4746, allocations: 39.89 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001011/0.4747, allocations: 39.92 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.4749, allocations: 11.97 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.569e-05/0.475, allocations: 23.86 kB / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.755e-05/0.475, allocations: 19.91 kB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.475, allocations: 4 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.496e-05/0.4751, allocations: 15.98 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.056e-05/0.4752, allocations: 11.94 kB / 1.069 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.341e-05/0.4752, allocations: 19.92 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.4754, allocations: 55.84 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.4754, allocations: 0 / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.4754, allocations: 0 / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.722e-06/0.4754, allocations: 0 / 1.069 GB, free: 8.883 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.0008096/0.4762, allocations: 365.4 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/0.4763, allocations: 12.02 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.478e-05/0.4764, allocations: 12.84 kB / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.4765, allocations: 160.4 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.4766, allocations: 12.31 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/0.4766, allocations: 384 / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.4769, allocations: 78.08 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.4769, allocations: 192 / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.4769, allocations: 3.938 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.4769, allocations: 0 / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001985/0.4771, allocations: 47.95 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005987/0.4777, allocations: 264.8 kB / 1.07 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.4779, allocations: 66.42 kB / 1.07 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.4781, allocations: 32.95 kB / 1.07 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.4781, allocations: 8 kB / 1.071 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002843/0.4784, allocations: 71.38 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.4784, allocations: 0 / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0004718/0.4789, allocations: 117.7 kB / 1.071 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.049e-05/0.4789, allocations: 63.34 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.4791, allocations: 105.9 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.4791, allocations: 33.69 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.95e-05/0.4791, allocations: 80.14 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.4792, allocations: 15.81 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.382e-05/0.4792, allocations: 21.7 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000247/0.4795, allocations: 318.8 kB / 1.071 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.4796, allocations: 32.03 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.4797, allocations: 43.42 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.4799, allocations: 87.27 kB / 1.071 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4799, allocations: 0 / 1.071 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002628/0.4802, allocations: 105.5 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.4802, allocations: 8 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.4802, allocations: 0 / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.4803, allocations: 0 / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.4804, allocations: 19.92 kB / 1.072 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.4804, allocations: 4.234 kB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.849e-05/0.4805, allocations: 11.98 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.4805, allocations: 4 kB / 1.072 GB, free: 6.473 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.0001112/0.4806, allocations: 121.7 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.151e-05/0.4806, allocations: 0 / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003281/0.481, allocations: 106 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.481, allocations: 0 / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.481, allocations: 4 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.481, allocations: 11.97 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005225/0.4815, allocations: 350.4 kB / 1.072 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.4816, allocations: 0 / 1.072 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.079e-05/0.4816, allocations: 15.92 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.4817, allocations: 3.938 kB / 1.072 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.4817, allocations: 0 / 1.072 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4817, allocations: 4.375 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.4817, allocations: 0 / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003496/0.482, allocations: 199.4 kB / 1.072 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-05/0.4821, allocations: 81.02 kB / 1.072 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.4821, allocations: 0 / 1.072 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.4822, allocations: 15.98 kB / 1.072 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.4823, allocations: 7.984 kB / 1.072 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.919e-05/0.4823, allocations: 7.938 kB / 1.072 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.579e-05/0.4824, allocations: 83.28 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4824, allocations: 0 / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002513/0.4826, allocations: 8 kB / 1.073 GB, free: 5.367 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.0001893/0.4828, allocations: 107.2 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002793/0.4831, allocations: 63.95 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4831, allocations: 0 / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.4832, allocations: 35.91 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.4835, allocations: 11.94 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004197/0.484, allocations: 152 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.4843, allocations: 0.6809 MB / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.518e-05/0.4843, allocations: 0 / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.152e-05/0.4844, allocations: 11.44 kB / 1.074 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of SimCode: time 4.71e-07/0.4844, allocations: 0 / 1.074 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of Templates: time 0.003576/0.4879, allocations: 0.7028 MB / 1.074 GB, free: 3.555 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)