Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.SignalRanker.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.SignalRanker") translateModel(Buildings.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.SignalRanker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001914/0.001914, 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.002559/0.002559, allocations: 193.2 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.1 MB / 222 MB, free: 4.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6486/0.6486, allocations: 95.47 MB / 364.8 MB, free: 10.11 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 59.92 kB / 444.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3002, allocations: 69.08 MB / 0.5017 GB, free: 17.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002613/0.3028, allocations: 1.597 MB / 0.5033 GB, free: 16.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007733/0.3036, allocations: 0.5151 MB / 0.5038 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.957e-05/0.3037, allocations: 4 kB / 0.5038 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.3038, allocations: 7.922 kB / 0.5038 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.249e-05/0.3039, allocations: 19.8 kB / 0.5038 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002391/0.3042, allocations: 35.95 kB / 0.5038 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.3043, allocations: 107.6 kB / 0.5039 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.786e-05/0.3044, allocations: 20.22 kB / 0.5039 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.3045, allocations: 47.84 kB / 0.504 GB, free: 15.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.802e-05/0.3046, allocations: 51.8 kB / 0.504 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.785e-05/0.3046, allocations: 4 kB / 0.504 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.028e-05/0.3047, allocations: 4 kB / 0.504 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.248e-05/0.3047, allocations: 19.92 kB / 0.5041 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.071e-05/0.3048, allocations: 39.73 kB / 0.5041 GB, free: 15.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.3049, allocations: 93.7 kB / 0.5042 GB, free: 15.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3049, allocations: 4 kB / 0.5042 GB, free: 15.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3049, allocations: 0 / 0.5042 GB, free: 15.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.3049, allocations: 3.938 kB / 0.5042 GB, free: 15.03 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007139/0.3057, allocations: 482.4 kB / 0.5047 GB, free: 14.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.3057, allocations: 15.98 kB / 0.5047 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.77e-05/0.3058, allocations: 8.844 kB / 0.5047 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.3059, allocations: 204 kB / 0.5049 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.3059, allocations: 12.38 kB / 0.5049 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/0.3059, allocations: 4.375 kB / 0.5049 GB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.3063, allocations: 137.8 kB / 0.505 GB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.3063, allocations: 0 / 0.505 GB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.3063, allocations: 4 kB / 0.505 GB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.3063, allocations: 4 kB / 0.505 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003206/0.3066, allocations: 111.9 kB / 0.5051 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004982/0.3071, allocations: 360.6 kB / 0.5055 GB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.3074, allocations: 142.4 kB / 0.5056 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.3076, allocations: 100.9 kB / 0.5057 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.3077, allocations: 0 / 0.5057 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003238/0.308, allocations: 143.3 kB / 0.5059 GB, free: 13.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.084e-06/0.308, allocations: 4 kB / 0.5059 GB, free: 13.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006757/0.3087, allocations: 323.1 kB / 0.5062 GB, free: 12.83 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.3087, allocations: 89.11 kB / 0.5062 GB, free: 12.72 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.919e-05/0.3088, allocations: 145 kB / 0.5064 GB, free: 12.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.3088, allocations: 29.7 kB / 0.5064 GB, free: 12.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.556e-05/0.3089, allocations: 108 kB / 0.5065 GB, free: 12.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.3089, allocations: 31.55 kB / 0.5065 GB, free: 12.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.64e-05/0.309, allocations: 25.7 kB / 0.5066 GB, free: 12.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.136e-05/0.3091, allocations: 330.8 kB / 0.5069 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.3093, allocations: 79.94 kB / 0.507 GB, free: 11.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.3095, allocations: 87.88 kB / 0.507 GB, free: 11.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004033/0.3099, allocations: 269.1 kB / 0.5073 GB, free: 11.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3099, allocations: 0 / 0.5073 GB, free: 11.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004698/0.3104, allocations: 284.9 kB / 0.5076 GB, free: 11.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.251e-05/0.3104, allocations: 71.48 kB / 0.5076 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.3104, allocations: 7.938 kB / 0.5077 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.3104, allocations: 7.938 kB / 0.5077 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.3106, allocations: 19.97 kB / 0.5077 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.3106, allocations: 0 / 0.5077 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.3108, allocations: 31.89 kB / 0.5077 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.3108, allocations: 4 kB / 0.5077 GB, free: 11.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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 9.705e-05/0.3109, allocations: 163.5 kB / 0.5079 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.3109, allocations: 15.81 kB / 0.5079 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.197e-05/0.311, allocations: 16.72 kB / 0.5079 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.311, allocations: 0 / 0.5079 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.311, allocations: 3.984 kB / 0.5079 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.311, allocations: 0 / 0.5079 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.3111, allocations: 201.5 kB / 0.5081 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3111, allocations: 0 / 0.5081 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.3113, allocations: 23.97 kB / 0.5081 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3113, allocations: 0 / 0.5081 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.3113, allocations: 0 / 0.5081 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3113, allocations: 11.94 kB / 0.5081 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3113, allocations: 0 / 0.5081 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004856/0.3118, allocations: 302.5 kB / 0.5084 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.725e-05/0.3118, allocations: 85.02 kB / 0.5085 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.3119, allocations: 4 kB / 0.5085 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.312, allocations: 31.95 kB / 0.5085 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.381e-05/0.3121, allocations: 19.97 kB / 0.5086 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.3122, allocations: 7.984 kB / 0.5086 GB, free: 10.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.118e-05/0.3122, allocations: 107.2 kB / 0.5087 GB, free: 10.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3122, allocations: 0 / 0.5087 GB, free: 10.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002159/0.3124, allocations: 39.83 kB / 0.5087 GB, free: 10.02 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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 7.083e-05/0.3125, allocations: 95.25 kB / 0.5088 GB, free: 9.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005108/0.313, allocations: 350.6 kB / 0.5091 GB, free: 9.551 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3131, allocations: 0 / 0.5091 GB, free: 9.551 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.3133, allocations: 195.2 kB / 0.5093 GB, free: 9.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.3135, allocations: 15.98 kB / 0.5093 GB, free: 9.332 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005241/0.3141, allocations: 321.7 kB / 0.5096 GB, free: 8.992 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000101/0.3142, allocations: 0.7043 MB / 0.5103 GB, free: 8.262 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.431e-05/0.3143, allocations: 11.98 kB / 0.5103 GB, free: 8.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.011e-05/0.3143, allocations: 11.44 kB / 0.5103 GB, free: 8.238 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3143, allocations: 0 / 0.5103 GB, free: 8.238 MB / 382.1 MB Notification: Performance of Templates: time 0.003461/0.3178, allocations: 1.539 MB / 0.5118 GB, free: 6.711 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.SignalRanker.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.SignalRanker.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.SignalRanker -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)