Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002494/0.002494, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.526/1.526, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.057/3.057, allocations: 472.6 MB / 0.7451 GB, free: 4.711 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002405/0.002405, allocations: 65.58 kB / 0.912 GB, free: 33.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4761/0.4786, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002624/0.4812, allocations: 0.7623 MB / 1.069 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001971/0.4832, allocations: 1.157 MB / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.4834, allocations: 4 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.143e-05/0.4835, allocations: 7.875 kB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.454e-05/0.4836, allocations: 3.938 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006778/0.4843, allocations: 146.3 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002389/0.4845, allocations: 127.8 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.4847, allocations: 28.16 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.4848, allocations: 51.83 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.4849, allocations: 43.83 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.313e-05/0.485, allocations: 12 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.177e-05/0.4851, allocations: 23.98 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.496e-05/0.4851, allocations: 8 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.321e-05/0.4852, allocations: 51.77 kB / 1.071 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000218/0.4854, allocations: 119.7 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.4854, allocations: 4 kB / 1.071 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.653e-06/0.4854, allocations: 0 / 1.071 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.255e-06/0.4854, allocations: 0 / 1.071 GB, free: 7.898 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006714/0.4861, allocations: 421.1 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.4862, allocations: 8.031 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.438e-05/0.4862, allocations: 12.84 kB / 1.071 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.4864, allocations: 176.2 kB / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.4864, allocations: 8.375 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.4864, allocations: 12.38 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/0.4867, allocations: 74.16 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.4867, allocations: 3.938 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.4867, allocations: 8 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.4867, allocations: 0 / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002786/0.487, allocations: 47.95 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005978/0.4876, allocations: 348.6 kB / 1.072 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001922/0.4878, allocations: 54.55 kB / 1.072 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.4879, allocations: 32.97 kB / 1.072 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.488, allocations: 4.031 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003111/0.4883, allocations: 95.25 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.713e-06/0.4883, allocations: 0 / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0005216/0.4888, allocations: 145.6 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.4889, allocations: 55.41 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.489, allocations: 121.8 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.489, allocations: 41.62 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.228e-05/0.4891, allocations: 88.14 kB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.973e-05/0.4892, allocations: 27.64 kB / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.82e-05/0.4893, allocations: 37.69 kB / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.4894, allocations: 318.8 kB / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001718/0.4896, allocations: 55.95 kB / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.4897, allocations: 97.05 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002899/0.49, allocations: 146.8 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.4901, allocations: 0 / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004562/0.4905, allocations: 211.1 kB / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.4906, allocations: 37.69 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.4906, allocations: 4.156 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.4906, allocations: 4 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.4907, allocations: 15.92 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.4907, allocations: 4 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000234/0.491, allocations: 35.95 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.491, allocations: 4 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001123/0.4911, allocations: 127.9 kB / 1.073 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.226e-05/0.4912, allocations: 11.89 kB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003431/0.4915, allocations: 126 kB / 1.074 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.4915, allocations: 0 / 1.074 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.4915, allocations: 0 / 1.074 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.4915, allocations: 0 / 1.074 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000484/0.492, allocations: 386.3 kB / 1.074 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.4921, allocations: 7.938 kB / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.265e-05/0.4921, allocations: 11.98 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.4921, allocations: 0 / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.4922, allocations: 4 kB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.4922, allocations: 4 kB / 1.074 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4922, allocations: 3.938 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003329/0.4925, allocations: 211.4 kB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.446e-05/0.4926, allocations: 81.02 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.4926, allocations: 4 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.529e-05/0.4927, allocations: 7.984 kB / 1.074 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.735e-05/0.4927, allocations: 11.92 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-06/0.4927, allocations: 4 kB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.005e-05/0.4928, allocations: 91.81 kB / 1.074 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.735e-06/0.4928, allocations: 3.938 kB / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002818/0.4931, allocations: 31.94 kB / 1.074 GB, free: 3.703 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002071/0.4933, allocations: 111.2 kB / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000462/0.4938, allocations: 179.3 kB / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4938, allocations: 0 / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.494, allocations: 44.22 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.4943, allocations: 17.02 kB / 1.075 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005067/0.4948, allocations: 163 kB / 1.075 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003863/0.4952, allocations: 0.6963 MB / 1.076 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.837e-05/0.4952, allocations: 11.91 kB / 1.076 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.247e-05/0.4953, allocations: 11.44 kB / 1.076 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of SimCode: time 5.41e-07/0.4953, allocations: 0 / 1.076 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of Templates: time 0.005124/0.5004, allocations: 1.442 MB / 1.077 GB, free: 0.9844 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1)