Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, 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.001248/0.001248, allocations: 197.6 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.494/1.494, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.977/2.977, allocations: 472.6 MB / 0.7447 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 62.06 kB / 0.9113 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3857, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00357/0.3893, allocations: 1.825 MB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.3909, allocations: 0.83 MB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.391, allocations: 3.938 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.3912, allocations: 11.92 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002715/0.3915, allocations: 35.78 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006363/0.3921, allocations: 142.8 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003893/0.3925, allocations: 191.5 kB / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001831/0.3927, allocations: 45.41 kB / 1.071 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/0.393, allocations: 59.84 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002342/0.3932, allocations: 75.59 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.776e-05/0.3933, allocations: 8 kB / 1.071 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.3934, allocations: 27.92 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.3935, allocations: 27.91 kB / 1.071 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.3937, allocations: 63.64 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003245/0.394, allocations: 195.6 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.575e-06/0.394, allocations: 4 kB / 1.071 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.223e-06/0.3941, allocations: 0 / 1.071 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.714e-05/0.3941, allocations: 0 / 1.071 GB, free: 7.344 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001073/0.3952, allocations: 476.5 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.3952, allocations: 8.031 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.479e-05/0.3953, allocations: 16.75 kB / 1.071 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003629/0.3957, allocations: 244.7 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.3957, allocations: 4.375 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.343e-05/0.3958, allocations: 16.38 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.396, allocations: 93.84 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.396, allocations: 0 / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.396, allocations: 4 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.301e-05/0.396, allocations: 4 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001468/0.3962, allocations: 55.97 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007391/0.3969, allocations: 448.5 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.3971, allocations: 78.59 kB / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.844e-05/0.3972, allocations: 36.89 kB / 1.072 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.162e-05/0.3972, allocations: 0 / 1.072 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001612/0.3973, allocations: 87.31 kB / 1.072 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.442e-06/0.3974, allocations: 0 / 1.072 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.000331/0.3977, allocations: 137.4 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.3977, allocations: 51.41 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/0.398, allocations: 183.4 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.398, allocations: 29.7 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.545e-05/0.3981, allocations: 108.4 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/0.3981, allocations: 31.7 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.394e-05/0.3982, allocations: 49.69 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.3984, allocations: 322.8 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.3985, allocations: 51.92 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.3986, allocations: 85.89 kB / 1.073 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001867/0.3988, allocations: 132.1 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3988, allocations: 0 / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003733/0.3992, allocations: 207.2 kB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.226e-05/0.3993, allocations: 33.7 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3993, allocations: 3.984 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.3993, allocations: 0 / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.3995, allocations: 31.92 kB / 1.074 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.3995, allocations: 3.938 kB / 1.074 GB, free: 4.105 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.3998, allocations: 39.92 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.3998, allocations: 8 kB / 1.074 GB, free: 4.059 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: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001198/0.3999, allocations: 129.8 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.4, allocations: 7.906 kB / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.019e-05/0.4, allocations: 13.41 kB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.4, allocations: 4 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.4, allocations: 3.938 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4, allocations: 0 / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002099/0.4002, allocations: 233.5 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4003, allocations: 0 / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.871e-05/0.4003, allocations: 11.94 kB / 1.074 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.4004, allocations: 3.938 kB / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.4004, allocations: 7.984 kB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4004, allocations: 4 kB / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4004, allocations: 3.938 kB / 1.074 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.4007, allocations: 165 kB / 1.074 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.415e-05/0.4008, allocations: 108.9 kB / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.4008, allocations: 0 / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.708e-05/0.4009, allocations: 8 kB / 1.075 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.481e-05/0.401, allocations: 11.92 kB / 1.075 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.401, allocations: 4.188 kB / 1.075 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001647/0.4012, allocations: 132.9 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.7e-07/0.4012, allocations: 3.938 kB / 1.075 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002622/0.4014, allocations: 35.98 kB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000175/0.4016, allocations: 107.2 kB / 1.075 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003142/0.4019, allocations: 175.2 kB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.402, allocations: 0 / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.912e-05/0.402, allocations: 35.98 kB / 1.075 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.4024, allocations: 28.08 kB / 1.075 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005895/0.403, allocations: 335 kB / 1.075 GB, free: 2.371 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.4033, allocations: 0.716 MB / 1.076 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.716e-05/0.4033, allocations: 16.88 kB / 1.076 GB, free: 1.613 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.405e-05/0.4034, allocations: 11.44 kB / 1.076 GB, free: 1.605 MB / 0.8262 GB Notification: Performance of SimCode: time 6.31e-07/0.4034, allocations: 4 kB / 1.076 GB, free: 1.602 MB / 0.8262 GB Notification: Performance of Templates: time 0.005211/0.4086, allocations: 1.846 MB / 1.078 GB, free: 15.78 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile (rm -f Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1)