Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.895/2.895, allocations: 287.3 MB / 302.3 MB, free: 8.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001488/0.001488, allocations: 190.7 kB / 370.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.096/2.096, allocations: 205.4 MB / 0.6295 GB, free: 10.58 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.001149, allocations: 102 kB / 0.7428 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004893/0.0004895, allocations: 12.47 kB / 0.8657 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2253, allocations: 115.3 MB / 0.9783 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.001126/0.2265, allocations: 0.5411 MB / 0.9788 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001824/0.2284, allocations: 1.204 MB / 0.98 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.2285, allocations: 7.938 kB / 0.98 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.13e-05/0.2286, allocations: 11.92 kB / 0.98 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.2287, allocations: 23.91 kB / 0.98 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.2299, allocations: 288.5 kB / 0.9803 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000237/0.2301, allocations: 139.8 kB / 0.9805 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.2303, allocations: 37.61 kB / 0.9805 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.2304, allocations: 95.78 kB / 0.9806 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.2306, allocations: 79.72 kB / 0.9807 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.557e-05/0.2307, allocations: 12 kB / 0.9807 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.2308, allocations: 31.97 kB / 0.9807 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.828e-05/0.2308, allocations: 15.92 kB / 0.9807 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.328e-05/0.2309, allocations: 53.64 kB / 0.9808 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.2312, allocations: 183.8 kB / 0.9809 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.2312, allocations: 0 / 0.9809 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.894e-06/0.2312, allocations: 0 / 0.9809 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.2313, allocations: 0 / 0.9809 GB, free: 25.55 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.00061/0.2319, allocations: 492 kB / 0.9814 GB, free: 25 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.2319, allocations: 16.02 kB / 0.9814 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.514e-05/0.232, allocations: 38.56 kB / 0.9815 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.117e-05/0.2321, allocations: 27.77 kB / 0.9815 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.2322, allocations: 179.4 kB / 0.9817 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.2323, allocations: 12 kB / 0.9817 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.675e-05/0.2324, allocations: 20 kB / 0.9817 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000238/0.2326, allocations: 95.66 kB / 0.9818 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.2326, allocations: 0 / 0.9818 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.2327, allocations: 4 kB / 0.9818 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.2327, allocations: 0 / 0.9818 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001532/0.2328, allocations: 47.92 kB / 0.9818 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000862/0.2337, allocations: 0.4962 MB / 0.9823 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003034/0.234, allocations: 62.56 kB / 0.9824 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.2341, allocations: 8.109 kB / 0.9824 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002609/0.2343, allocations: 115.4 kB / 0.9825 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=14): time 3.056e-06/0.2344, allocations: 0 / 0.9825 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14): time 0.00052/0.2349, allocations: 166.6 kB / 0.9826 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.2349, allocations: 59.41 kB / 0.9827 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.2351, allocations: 171.3 kB / 0.9829 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.081e-05/0.2352, allocations: 33.7 kB / 0.9829 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.267e-05/0.2353, allocations: 108 kB / 0.983 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.529e-05/0.2354, allocations: 27.8 kB / 0.983 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.442e-05/0.2354, allocations: 12 kB / 0.983 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.874e-05/0.2355, allocations: 322.8 kB / 0.9833 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003133/0.2358, allocations: 103.9 kB / 0.9834 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003364/0.2362, allocations: 141.9 kB / 0.9836 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003251/0.2365, allocations: 179.3 kB / 0.9838 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-06/0.2365, allocations: 0 / 0.9838 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009446/0.2375, allocations: 394.4 kB / 0.9841 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.459e-05/0.2376, allocations: 97.09 kB / 0.9842 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.2376, allocations: 3.953 kB / 0.9842 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.2376, allocations: 4 kB / 0.9842 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.2378, allocations: 20.11 kB / 0.9842 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.2378, allocations: 8 kB / 0.9843 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009681/0.2388, allocations: 115.7 kB / 0.9844 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.71e-05/0.2389, allocations: 19.98 kB / 0.9844 GB, free: 21.7 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002214/0.2391, allocations: 141.8 kB / 0.9845 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.559e-05/0.2391, allocations: 7.906 kB / 0.9845 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.943e-05/0.2392, allocations: 20.84 kB / 0.9845 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.2392, allocations: 3.953 kB / 0.9846 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.2392, allocations: 0 / 0.9846 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.2392, allocations: 7.984 kB / 0.9846 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002062/0.2394, allocations: 209.6 kB / 0.9848 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2395, allocations: 0 / 0.9848 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.446e-05/0.2396, allocations: 8 kB / 0.9848 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/0.2396, allocations: 11.97 kB / 0.9848 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.2396, allocations: 4 kB / 0.9848 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.2396, allocations: 4 kB / 0.9848 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.2396, allocations: 3.953 kB / 0.9848 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003271/0.24, allocations: 161.3 kB / 0.9849 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.361e-05/0.24, allocations: 92.86 kB / 0.985 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.2401, allocations: 0 / 0.985 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.215e-05/0.2401, allocations: 8 kB / 0.985 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.297e-05/0.2402, allocations: 19.86 kB / 0.9851 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.2402, allocations: 12 kB / 0.9851 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 8.688e-05/0.2403, allocations: 111.2 kB / 0.9852 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.11e-07/0.2403, allocations: 0 / 0.9852 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004314/0.2408, allocations: 48 kB / 0.9852 GB, free: 20.75 MB / 0.6198 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 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005932/0.2414, allocations: 0.7047 MB / 0.9859 GB, free: 20.01 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0007124/0.2421, allocations: 394 kB / 0.9863 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2421, allocations: 0 / 0.9863 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.2423, allocations: 47.92 kB / 0.9863 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003697/0.2427, allocations: 19.98 kB / 0.9864 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.2438, allocations: 1.429 MB / 0.9877 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.244, allocations: 0.7087 MB / 0.9884 GB, free: 17.29 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.523e-05/0.2441, allocations: 12.64 kB / 0.9885 GB, free: 17.28 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.174e-05/0.2442, allocations: 39.42 kB / 0.9885 GB, free: 17.24 MB / 0.6198 GB Notification: Performance of SimCode: time 1.032e-06/0.2442, allocations: 4 kB / 0.9885 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0294/0.2736, allocations: 3.853 MB / 0.9923 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002669/0.274, allocations: 192.2 kB / 0.9924 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.416/2.69, allocations: 0 / 0.9924 GB, free: 13.32 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)