Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_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_1.6_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.001317/0.001317, 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.002122/0.002122, allocations: 193.5 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.681/1.681, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.177/3.177, allocations: 472.6 MB / 0.7447 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 62.06 kB / 0.9114 GB, free: 33.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.479/0.4804, allocations: 159.9 MB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002488/0.4829, allocations: 0.7231 MB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00158/0.4845, allocations: 1.049 MB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.983e-05/0.4846, allocations: 0 / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.448e-05/0.4847, allocations: 0 / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.234e-05/0.4848, allocations: 7.938 kB / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000284/0.4851, allocations: 39.84 kB / 1.069 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.81e-05/0.4852, allocations: 43.91 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.4853, allocations: 8 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.901e-05/0.4854, allocations: 23.91 kB / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.838e-05/0.4854, allocations: 19.91 kB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.865e-05/0.4855, allocations: 4 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.458e-05/0.4855, allocations: 12 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.556e-05/0.4856, allocations: 11.92 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.042e-05/0.4856, allocations: 19.92 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001655/0.4858, allocations: 51.84 kB / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.166e-06/0.4858, allocations: 3.938 kB / 1.069 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.373e-06/0.4858, allocations: 4 kB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.758e-06/0.4858, allocations: 0 / 1.069 GB, free: 8.824 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.0007885/0.4866, allocations: 365.4 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.4867, allocations: 12.03 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.109e-05/0.4867, allocations: 4.844 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.4869, allocations: 168.4 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.4869, allocations: 4.375 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.487, allocations: 8.375 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002432/0.4872, allocations: 66.2 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.4872, allocations: 4.125 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.4872, allocations: 3.938 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.4873, allocations: 4 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.4875, allocations: 35.91 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005766/0.488, allocations: 280.8 kB / 1.07 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.4883, allocations: 58.48 kB / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.4884, allocations: 36.95 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.222e-05/0.4885, allocations: 0 / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003355/0.4888, allocations: 79.33 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.473e-06/0.4888, allocations: 0 / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0005186/0.4893, allocations: 121.5 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.4894, allocations: 51.41 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.4895, allocations: 105.8 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.4895, allocations: 29.7 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.094e-05/0.4896, allocations: 92.12 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.4896, allocations: 11.81 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-05/0.4897, allocations: 21.72 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001541/0.4898, allocations: 318.8 kB / 1.071 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.4899, allocations: 23.98 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.4901, allocations: 63.39 kB / 1.071 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002256/0.4903, allocations: 79.27 kB / 1.071 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4903, allocations: 0 / 1.071 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002794/0.4906, allocations: 113.5 kB / 1.072 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.4906, allocations: 5.406 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.4907, allocations: 7.984 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.4907, allocations: 0 / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.4908, allocations: 15.98 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.4908, allocations: 4 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.661e-05/0.4909, allocations: 4 kB / 1.072 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.4909, allocations: 7.984 kB / 1.072 GB, free: 6.414 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.0001193/0.491, allocations: 129.8 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.104e-05/0.4911, allocations: 0 / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002932/0.4914, allocations: 102 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.4914, allocations: 0 / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.4914, allocations: 0 / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/0.4914, allocations: 0 / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005344/0.4919, allocations: 366.3 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4919, allocations: 0.625 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.989e-05/0.492, allocations: 7.984 kB / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.492, allocations: 4 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.492, allocations: 0 / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.492, allocations: 4 kB / 1.072 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4921, allocations: 0 / 1.072 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003388/0.4924, allocations: 199.4 kB / 1.072 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.24e-05/0.4925, allocations: 85.02 kB / 1.072 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.776e-05/0.4925, allocations: 0 / 1.072 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.4926, allocations: 11.98 kB / 1.072 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.575e-05/0.4927, allocations: 4 kB / 1.072 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.4927, allocations: 7.922 kB / 1.072 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.449e-05/0.4928, allocations: 83.28 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4928, allocations: 4 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002673/0.4931, allocations: 12 kB / 1.073 GB, free: 5.309 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.0002151/0.4933, allocations: 103.2 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002799/0.4936, allocations: 63.89 kB / 1.073 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4936, allocations: 0 / 1.073 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.4937, allocations: 32.17 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.494, allocations: 11.98 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004434/0.4945, allocations: 151.7 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.4949, allocations: 0.6809 MB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.077e-05/0.4949, allocations: 8 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.291e-05/0.495, allocations: 11.44 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of SimCode: time 8.42e-07/0.495, allocations: 0 / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of Templates: time 0.003696/0.4987, allocations: 0.6954 MB / 1.074 GB, free: 3.5 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1)