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.001153/0.001153, allocations: 100.1 kB / 15.88 MB, free: 12 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.001083/0.001083, allocations: 199.1 kB / 16.79 MB, free: 6.809 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.34/1.34, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.667/2.667, allocations: 461.8 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 65.97 kB / 0.899 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2864, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003253/0.2897, allocations: 1.829 MB / 1.055 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.2911, allocations: 0.8299 MB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.2913, allocations: 8 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.2915, allocations: 15.86 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002652/0.2917, allocations: 31.84 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004503/0.2922, allocations: 138.5 kB / 1.056 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002552/0.2925, allocations: 195.5 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.2926, allocations: 45.44 kB / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.2928, allocations: 59.77 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.2929, allocations: 75.67 kB / 1.056 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.122e-05/0.293, allocations: 8 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.283e-05/0.2931, allocations: 23.97 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.397e-05/0.2931, allocations: 27.91 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.2933, allocations: 71.59 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.2935, allocations: 151.9 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2935, allocations: 0 / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.61e-07/0.2935, allocations: 4 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.2935, allocations: 0 / 1.056 GB, free: 4.785 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.0008743/0.2944, allocations: 472.5 kB / 1.057 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2944, allocations: 12.03 kB / 1.057 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.777e-05/0.2945, allocations: 16.84 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.2948, allocations: 244.6 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.2949, allocations: 8.375 kB / 1.057 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.755e-05/0.2949, allocations: 8.375 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.2951, allocations: 104.2 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.2951, allocations: 0 / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.2951, allocations: 0 / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.081e-05/0.2952, allocations: 8 kB / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.2953, allocations: 51.97 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006416/0.296, allocations: 440.5 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.2961, allocations: 86.52 kB / 1.058 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.538e-05/0.2962, allocations: 32.89 kB / 1.058 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.131e-05/0.2962, allocations: 0 / 1.058 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000134/0.2964, allocations: 87.38 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.664e-06/0.2964, allocations: 0 / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002981/0.2967, allocations: 133.4 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.2967, allocations: 55.41 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/0.2969, allocations: 179.4 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.297, allocations: 37.7 kB / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.486e-05/0.297, allocations: 116.2 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.121e-05/0.2971, allocations: 23.66 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.381e-05/0.2972, allocations: 45.59 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.975e-05/0.2973, allocations: 326.8 kB / 1.059 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.2974, allocations: 51.86 kB / 1.059 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.2975, allocations: 78.53 kB / 1.059 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.2977, allocations: 128.3 kB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.2977, allocations: 384 / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003424/0.2981, allocations: 211.1 kB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.2981, allocations: 29.7 kB / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2981, allocations: 4.094 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.2981, allocations: 3.938 kB / 1.059 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.2983, allocations: 28.05 kB / 1.059 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.2983, allocations: 7.922 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.2986, allocations: 39.86 kB / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.2986, allocations: 4 kB / 1.059 GB, free: 1.508 MB / 0.8106 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.0001437/0.2988, allocations: 137.8 kB / 1.059 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.17e-05/0.2988, allocations: 7.906 kB / 1.059 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.618e-05/0.2989, allocations: 13.41 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.2989, allocations: 4 kB / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.2989, allocations: 7.875 kB / 1.059 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.2989, allocations: 0 / 1.059 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.2992, allocations: 229.6 kB / 1.059 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.2992, allocations: 8 kB / 1.059 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.257e-05/0.2993, allocations: 4 kB / 1.059 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.2993, allocations: 4 kB / 1.059 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.2993, allocations: 3.984 kB / 1.06 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.2993, allocations: 0 / 1.06 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2993, allocations: 3.938 kB / 1.06 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.2996, allocations: 176.8 kB / 1.06 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.017e-05/0.2997, allocations: 100.9 kB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.2997, allocations: 4 kB / 1.06 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.267e-05/0.2998, allocations: 4 kB / 1.06 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.191e-05/0.2999, allocations: 11.92 kB / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.2999, allocations: 4 kB / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001421/0.3, allocations: 128.9 kB / 1.06 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3, allocations: 4.062 kB / 1.06 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002463/0.3003, allocations: 35.98 kB / 1.06 GB, free: 0.5391 MB / 0.8106 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.0001381/0.3004, allocations: 103.2 kB / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002751/0.3007, allocations: 175.3 kB / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3007, allocations: 0 / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.759e-05/0.3008, allocations: 35.98 kB / 1.06 GB, free: 216 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.3011, allocations: 40.02 kB / 1.06 GB, free: 176 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005572/0.3017, allocations: 352.8 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.3019, allocations: 0.7121 MB / 1.061 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.788e-05/0.302, allocations: 11.44 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of SimCode: time 5.01e-07/0.302, allocations: 0 / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of Templates: time 0.003896/0.3059, allocations: 1.918 MB / 1.063 GB, free: 13.13 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)