Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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.0009611/0.0009613, allocations: 99.5 kB / 16.02 MB, free: 76 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.001237/0.001237, allocations: 181.1 kB / 16.92 MB, free: 6.895 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.343/1.343, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.671/2.671, allocations: 462.6 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003412/0.0003413, allocations: 7.625 kB / 0.9034 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3177, allocations: 159.6 MB / 1.059 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.001981/0.3197, allocations: 1.488 MB / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001263/0.321, allocations: 0.8144 MB / 1.062 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.4e-05/0.3211, allocations: 0 / 1.062 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.3212, allocations: 15.86 kB / 1.062 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000223/0.3215, allocations: 31.84 kB / 1.062 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004209/0.3219, allocations: 142.6 kB / 1.062 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002313/0.3222, allocations: 195.5 kB / 1.062 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.3223, allocations: 41.44 kB / 1.062 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.3224, allocations: 63.77 kB / 1.062 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.3226, allocations: 63.73 kB / 1.062 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.798e-05/0.3226, allocations: 4 kB / 1.062 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.817e-05/0.3227, allocations: 27.92 kB / 1.062 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.713e-05/0.3227, allocations: 19.91 kB / 1.062 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.014e-05/0.3228, allocations: 97.23 kB / 1.062 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.323, allocations: 143.9 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.323, allocations: 4 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.115e-06/0.323, allocations: 3.984 kB / 1.062 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.323, allocations: 0 / 1.062 GB, free: 1.824 MB / 0.8106 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.0007032/0.3238, allocations: 448.7 kB / 1.063 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.3238, allocations: 8.031 kB / 1.063 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.63e-05/0.3239, allocations: 12.84 kB / 1.063 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.3242, allocations: 241.3 kB / 1.063 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.3242, allocations: 12.36 kB / 1.063 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.644e-05/0.3243, allocations: 8.375 kB / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000166/0.3244, allocations: 89.92 kB / 1.063 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.3244, allocations: 0 / 1.063 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.3245, allocations: 7.969 kB / 1.063 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.3245, allocations: 4 kB / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001198/0.3246, allocations: 55.97 kB / 1.063 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006096/0.3252, allocations: 448.5 kB / 1.064 GB, free: 380 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001544/0.3254, allocations: 90.52 kB / 1.064 GB, free: 280 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.136e-05/0.3255, allocations: 32.89 kB / 1.064 GB, free: 244 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.354e-06/0.3255, allocations: 0 / 1.064 GB, free: 244 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001325/0.3256, allocations: 83.38 kB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.3256, allocations: 0 / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002819/0.3259, allocations: 137.4 kB / 1.064 GB, free: 4 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.326, allocations: 55.41 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002066/0.3262, allocations: 179.4 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.3262, allocations: 33.7 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.119e-05/0.3263, allocations: 112 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.178e-05/0.3263, allocations: 31.78 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-05/0.3264, allocations: 26.02 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.734e-05/0.3265, allocations: 326.8 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.3266, allocations: 47.98 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.3267, allocations: 78.47 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.3269, allocations: 136.1 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3269, allocations: 0 / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003208/0.3272, allocations: 211.1 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.653e-05/0.3273, allocations: 35.27 kB / 1.065 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3273, allocations: 0 / 1.065 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.3273, allocations: 0 / 1.065 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.3274, allocations: 23.98 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.3274, allocations: 8 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.3277, allocations: 51.86 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/0.3277, allocations: 4 kB / 1.065 GB, free: 14.58 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.0001081/0.3278, allocations: 137.8 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.745e-05/0.3279, allocations: 7.906 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.107e-05/0.3279, allocations: 17.41 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.3279, allocations: 0 / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3279, allocations: 3.938 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.3279, allocations: 0 / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.3281, allocations: 225.6 kB / 1.066 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3281, allocations: 3.938 kB / 1.066 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.962e-05/0.3282, allocations: 8 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.3282, allocations: 4 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.3282, allocations: 3.984 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3282, allocations: 4 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3283, allocations: 3.938 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002506/0.3285, allocations: 168.9 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.724e-05/0.3286, allocations: 101 kB / 1.066 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.3286, allocations: 4 kB / 1.066 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.889e-05/0.3287, allocations: 4 kB / 1.066 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.31e-05/0.3287, allocations: 11.92 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.3288, allocations: 8.062 kB / 1.066 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001316/0.3289, allocations: 128.9 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3289, allocations: 0 / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002286/0.3291, allocations: 35.89 kB / 1.066 GB, free: 13.62 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.0001378/0.3293, allocations: 109.8 kB / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000265/0.3296, allocations: 171.2 kB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3296, allocations: 0 / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.61e-05/0.3297, allocations: 48.05 kB / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.3299, allocations: 27.97 kB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004987/0.3304, allocations: 359.9 kB / 1.067 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002319/0.3307, allocations: 0.7238 MB / 1.068 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.341e-05/0.3307, allocations: 11.44 kB / 1.068 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3307, allocations: 0 / 1.068 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of Templates: time 0.003463/0.3342, allocations: 1.924 MB / 1.069 GB, free: 10.19 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1)