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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.355/1.355, allocations: 251.5 MB / 266.7 MB, free: 10.96 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.000904/0.0009041, allocations: 183 kB / 325.8 MB, free: 2.656 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.547/1.547, allocations: 205 MB / 0.576 GB, free: 20.94 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.000731/0.0007311, allocations: 97.81 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004376/0.0004378, allocations: 9.75 kB / 0.7933 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1841, allocations: 105.4 MB / 0.8962 GB, free: 68.02 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.001452/0.1856, allocations: 1.287 MB / 0.8975 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003878/0.186, allocations: 245.8 kB / 0.8977 GB, free: 66.48 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.559e-05/0.1861, allocations: 8 kB / 0.8977 GB, free: 66.47 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 4.121e-05/0.1862, allocations: 7.922 kB / 0.8977 GB, free: 66.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.794e-05/0.1862, allocations: 15.86 kB / 0.8977 GB, free: 66.45 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000138/0.1864, allocations: 27.97 kB / 0.8978 GB, free: 66.42 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.589e-05/0.1865, allocations: 115.6 kB / 0.8979 GB, free: 66.3 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.1866, allocations: 41.52 kB / 0.8979 GB, free: 66.26 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.289e-05/0.1867, allocations: 43.73 kB / 0.898 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.964e-05/0.1867, allocations: 47.75 kB / 0.898 GB, free: 66.17 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.159e-05/0.1868, allocations: 4 kB / 0.898 GB, free: 66.16 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.539e-05/0.1868, allocations: 4 kB / 0.898 GB, free: 66.16 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.405e-05/0.1868, allocations: 15.92 kB / 0.898 GB, free: 66.14 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.961e-05/0.1869, allocations: 47.67 kB / 0.8981 GB, free: 66.1 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.187, allocations: 103.6 kB / 0.8982 GB, free: 66 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.187, allocations: 4 kB / 0.8982 GB, free: 65.99 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.893e-06/0.187, allocations: 0 / 0.8982 GB, free: 65.99 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.187, allocations: 4 kB / 0.8982 GB, free: 65.99 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.0005715/0.1876, allocations: 423.2 kB / 0.8986 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.1876, allocations: 8.031 kB / 0.8986 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.625e-05/0.1877, allocations: 50.73 kB / 0.8986 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/0.1877, allocations: 12.84 kB / 0.8987 GB, free: 65.45 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.236e-05/0.1878, allocations: 184.1 kB / 0.8988 GB, free: 65.23 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.1878, allocations: 12.55 kB / 0.8988 GB, free: 65.21 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.1879, allocations: 12.38 kB / 0.8989 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.188, allocations: 89.78 kB / 0.8989 GB, free: 65.11 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.188, allocations: 0 / 0.8989 GB, free: 65.11 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.1881, allocations: 7.938 kB / 0.8989 GB, free: 65.1 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.1881, allocations: 0 / 0.8989 GB, free: 65.1 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001079/0.1882, allocations: 63.91 kB / 0.899 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000467/0.1887, allocations: 404.5 kB / 0.8994 GB, free: 64.59 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.1888, allocations: 78.59 kB / 0.8995 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.055e-05/0.1889, allocations: 33.08 kB / 0.8995 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.1889, allocations: 0 / 0.8995 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001696/0.1891, allocations: 105.9 kB / 0.8996 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.1891, allocations: 0 / 0.8996 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14): time 0.000257/0.1893, allocations: 141.5 kB / 0.8997 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.1894, allocations: 59.39 kB / 0.8998 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.948e-05/0.1895, allocations: 161.7 kB / 0.8999 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.1895, allocations: 33.7 kB / 0.9 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.037e-05/0.1895, allocations: 103.8 kB / 0.9001 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.1896, allocations: 39.53 kB / 0.9001 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.954e-05/0.1896, allocations: 29.7 kB / 0.9001 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.9e-05/0.1897, allocations: 322.8 kB / 0.9005 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.451e-05/0.1897, allocations: 20 kB / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.723e-05/0.1898, allocations: 71.28 kB / 0.9005 GB, free: 63.33 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.945e-05/0.1899, allocations: 92.94 kB / 0.9006 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1899, allocations: 0 / 0.9006 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000141/0.19, allocations: 117.5 kB / 0.9007 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.19, allocations: 8.094 kB / 0.9007 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1901, allocations: 4 kB / 0.9008 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.1901, allocations: 4 kB / 0.9008 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.071e-05/0.1902, allocations: 19.92 kB / 0.9008 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.1902, allocations: 3.938 kB / 0.9008 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.1903, allocations: 31.83 kB / 0.9008 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.1903, allocations: 4 kB / 0.9008 GB, free: 63.04 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 6.888e-05/0.1904, allocations: 125.8 kB / 0.9009 GB, free: 62.9 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.565e-05/0.1904, allocations: 15.8 kB / 0.9009 GB, free: 62.89 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.203e-05/0.1904, allocations: 16.84 kB / 0.901 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1904, allocations: 0 / 0.901 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.1904, allocations: 7.938 kB / 0.901 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.1905, allocations: 0 / 0.901 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000123/0.1906, allocations: 217.6 kB / 0.9012 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1906, allocations: 0 / 0.9012 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.771e-05/0.1906, allocations: 11.94 kB / 0.9012 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1906, allocations: 0 / 0.9012 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.1907, allocations: 11.98 kB / 0.9012 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1907, allocations: 0 / 0.9012 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1907, allocations: 3.938 kB / 0.9012 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.1908, allocations: 147.6 kB / 0.9013 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.656e-05/0.1908, allocations: 92.92 kB / 0.9014 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.1909, allocations: 3.984 kB / 0.9014 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.191, allocations: 27.98 kB / 0.9015 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.882e-05/0.191, allocations: 15.91 kB / 0.9015 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.191, allocations: 4 kB / 0.9015 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.255e-05/0.1911, allocations: 115.2 kB / 0.9016 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1911, allocations: 3.938 kB / 0.9016 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002/0.1913, allocations: 27.94 kB / 0.9016 GB, free: 62.11 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.0003425/0.1917, allocations: 0.6865 MB / 0.9023 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001569/0.1918, allocations: 91.84 kB / 0.9024 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1918, allocations: 0 / 0.9024 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.074e-05/0.1919, allocations: 47.92 kB / 0.9024 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.1922, allocations: 31.67 kB / 0.9025 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.1933, allocations: 1.629 MB / 0.904 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001116/0.1934, allocations: 0.7087 MB / 0.9047 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.077e-05/0.1935, allocations: 13.08 kB / 0.9048 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.251e-05/0.1935, allocations: 31.44 kB / 0.9048 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of SimCode: time 2.8e-07/0.1935, allocations: 0 / 0.9048 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01142/0.205, allocations: 2.434 MB / 0.9072 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001487/0.2051, allocations: 225.1 kB / 0.9074 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.579/1.784, allocations: 0 / 0.9074 GB, free: 56.21 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)