Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.396/1.396, allocations: 251.5 MB / 267.4 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 187 kB / 326.5 MB, free: 2.668 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.067/2.067, allocations: 205 MB / 0.5766 GB, free: 20.98 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001043/0.001043, allocations: 86.23 kB / 0.6803 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003527, allocations: 8.125 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2263, allocations: 105.4 MB / 0.8968 GB, free: 68.14 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.001547/0.2279, allocations: 1.295 MB / 0.898 GB, free: 66.83 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004788/0.2284, allocations: 245.8 kB / 0.8982 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.327e-05/0.2285, allocations: 4 kB / 0.8983 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 4.404e-05/0.2285, allocations: 3.938 kB / 0.8983 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.2286, allocations: 19.84 kB / 0.8983 GB, free: 66.56 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001819/0.2288, allocations: 27.98 kB / 0.8983 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.000114/0.229, allocations: 115.6 kB / 0.8984 GB, free: 66.42 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.2291, allocations: 45.48 kB / 0.8985 GB, free: 66.37 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.15e-05/0.2291, allocations: 43.73 kB / 0.8985 GB, free: 66.33 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.051e-05/0.2292, allocations: 43.77 kB / 0.8985 GB, free: 66.29 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.149e-05/0.2293, allocations: 4 kB / 0.8985 GB, free: 66.28 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.708e-05/0.2293, allocations: 4 kB / 0.8985 GB, free: 66.28 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.476e-05/0.2293, allocations: 19.86 kB / 0.8986 GB, free: 66.26 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.492e-05/0.2294, allocations: 47.67 kB / 0.8986 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.727e-05/0.2295, allocations: 75.81 kB / 0.8987 GB, free: 66.14 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2295, allocations: 0 / 0.8987 GB, free: 66.14 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.083e-06/0.2295, allocations: 4 kB / 0.8987 GB, free: 66.13 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.2295, allocations: 0 / 0.8987 GB, free: 66.13 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005974/0.2301, allocations: 435.2 kB / 0.8991 GB, free: 65.66 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.2302, allocations: 12.03 kB / 0.8991 GB, free: 65.64 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.701e-05/0.2302, allocations: 12.84 kB / 0.8991 GB, free: 65.63 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.2303, allocations: 196 kB / 0.8993 GB, free: 65.4 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.2303, allocations: 8.562 kB / 0.8993 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.2304, allocations: 8.375 kB / 0.8993 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/0.2305, allocations: 97.97 kB / 0.8994 GB, free: 65.29 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.2306, allocations: 0 / 0.8994 GB, free: 65.29 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.2306, allocations: 4 kB / 0.8994 GB, free: 65.28 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2306, allocations: 0 / 0.8994 GB, free: 65.28 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000106/0.2307, allocations: 59.97 kB / 0.8995 GB, free: 65.22 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004936/0.2312, allocations: 392.5 kB / 0.8999 GB, free: 64.79 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.2314, allocations: 90.52 kB / 0.8999 GB, free: 64.69 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.101e-05/0.2314, allocations: 28.86 kB / 0.9 GB, free: 64.66 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.2314, allocations: 3.938 kB / 0.9 GB, free: 64.66 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001837/0.2316, allocations: 99.58 kB / 0.9001 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.2316, allocations: 0 / 0.9001 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14): time 0.0002679/0.2319, allocations: 155.3 kB / 0.9002 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.232, allocations: 51.41 kB / 0.9003 GB, free: 64.33 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.703e-05/0.2321, allocations: 165.5 kB / 0.9004 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.2321, allocations: 33.7 kB / 0.9005 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.952e-05/0.2321, allocations: 107.8 kB / 0.9006 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.2321, allocations: 23.66 kB / 0.9006 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.2322, allocations: 29.7 kB / 0.9006 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.949e-05/0.2322, allocations: 322.8 kB / 0.9009 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.965e-05/0.2323, allocations: 27.89 kB / 0.9009 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.832e-05/0.2324, allocations: 59.42 kB / 0.901 GB, free: 63.53 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.495e-05/0.2325, allocations: 90.36 kB / 0.9011 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2325, allocations: 0 / 0.9011 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001573/0.2326, allocations: 121.5 kB / 0.9012 GB, free: 63.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2327, allocations: 8.094 kB / 0.9012 GB, free: 63.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2327, allocations: 4 kB / 0.9012 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.2327, allocations: 7.984 kB / 0.9012 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.589e-05/0.2328, allocations: 12 kB / 0.9012 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.2328, allocations: 7.875 kB / 0.9012 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.2329, allocations: 35.88 kB / 0.9013 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.2329, allocations: 4 kB / 0.9013 GB, free: 63.23 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,booToInt1.y,booToInt.y,booPul3.pulseStart,$PRE.booPul3.pulseStart,booPul3.y,booPul2.pulseStart,$PRE.booPul2.pulseStart,booPul2.y,booPul1.pulseStart,$PRE.booPul1.pulseStart,booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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 7.407e-05/0.233, allocations: 137.7 kB / 0.9014 GB, free: 63.08 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.233, allocations: 11.89 kB / 0.9014 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.438e-05/0.2331, allocations: 16.84 kB / 0.9014 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2331, allocations: 0 / 0.9014 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.2331, allocations: 7.938 kB / 0.9014 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2331, allocations: 3.984 kB / 0.9015 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.2333, allocations: 213.5 kB / 0.9017 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2333, allocations: 0 / 0.9017 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.339e-05/0.2333, allocations: 15.98 kB / 0.9017 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.2333, allocations: 0 / 0.9017 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.2334, allocations: 8 kB / 0.9017 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.2334, allocations: 0 / 0.9017 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2334, allocations: 7.875 kB / 0.9017 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001611/0.2335, allocations: 137 kB / 0.9018 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.969e-05/0.2336, allocations: 92.91 kB / 0.9019 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.2336, allocations: 4 kB / 0.9019 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.2337, allocations: 23.98 kB / 0.9019 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.739e-05/0.2338, allocations: 19.91 kB / 0.9019 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.2338, allocations: 4 kB / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.63e-05/0.2339, allocations: 118.6 kB / 0.9021 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2339, allocations: 0 / 0.9021 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001973/0.2341, allocations: 27.94 kB / 0.9021 GB, free: 62.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0001222/0.2342, allocations: 107.2 kB / 0.9022 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001611/0.2344, allocations: 87.91 kB / 0.9023 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.2344, allocations: 0 / 0.9023 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.43e-05/0.2344, allocations: 49.11 kB / 0.9023 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.2347, allocations: 25.88 kB / 0.9024 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004174/0.2351, allocations: 302.9 kB / 0.9026 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.2353, allocations: 0.7126 MB / 0.9033 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.114e-05/0.2353, allocations: 15.44 kB / 0.9034 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of SimCode: time 3.5e-07/0.2353, allocations: 0 / 0.9034 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of Templates: time 0.002693/0.238, allocations: 1.565 MB / 0.9049 GB, free: 59.39 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)