Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_8_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 105.4 kB / 15.7 MB, free: 24 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.001231/0.001231, allocations: 197.5 kB / 16.64 MB, free: 6.449 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.418/1.418, allocations: 205.1 MB / 222.5 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.724/1.724, allocations: 292.3 MB / 0.549 GB, free: 12.73 MB / 462.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: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 73.34 kB / 0.6718 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2316, allocations: 114.6 MB / 0.7837 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.002096/0.2337, allocations: 0.8418 MB / 0.7845 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001709/0.2355, allocations: 1.282 MB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.825e-05/0.2355, allocations: 4 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.284e-05/0.2356, allocations: 15.8 kB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.443e-05/0.2357, allocations: 19.78 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008236/0.2366, allocations: 332.8 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.2369, allocations: 307.5 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.2371, allocations: 37.44 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.2372, allocations: 115.7 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.2374, allocations: 111.7 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.596e-05/0.2374, allocations: 24 kB / 0.7867 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.419e-05/0.2375, allocations: 39.98 kB / 0.7867 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.461e-05/0.2376, allocations: 27.92 kB / 0.7867 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.2377, allocations: 111.5 kB / 0.7868 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003419/0.2381, allocations: 263.5 kB / 0.7871 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2381, allocations: 3.938 kB / 0.7871 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.634e-06/0.2381, allocations: 0 / 0.7871 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.144e-06/0.2381, allocations: 0 / 0.7871 GB, free: 9.699 MB / 0.6075 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.0006817/0.2388, allocations: 0.5235 MB / 0.7876 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.2389, allocations: 12.03 kB / 0.7876 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.366e-05/0.2389, allocations: 38.73 kB / 0.7876 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.678e-05/0.239, allocations: 28.75 kB / 0.7877 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.2391, allocations: 180.7 kB / 0.7878 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.2392, allocations: 16.38 kB / 0.7879 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.2392, allocations: 20.38 kB / 0.7879 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.2394, allocations: 93.55 kB / 0.788 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.2394, allocations: 4 kB / 0.788 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.2394, allocations: 3.984 kB / 0.788 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.2394, allocations: 4 kB / 0.788 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001086/0.2395, allocations: 43.98 kB / 0.788 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006849/0.2402, allocations: 496.2 kB / 0.7885 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.2405, allocations: 74.62 kB / 0.7886 GB, free: 8 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.753e-05/0.2405, allocations: 32.84 kB / 0.7886 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.2406, allocations: 0 / 0.7886 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.2408, allocations: 111.3 kB / 0.7887 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.2408, allocations: 0 / 0.7887 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14): time 0.0003578/0.2412, allocations: 180.2 kB / 0.7889 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.2412, allocations: 55.41 kB / 0.7889 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.2414, allocations: 165 kB / 0.7891 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.2414, allocations: 37.7 kB / 0.7891 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.908e-05/0.2415, allocations: 112 kB / 0.7892 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.61e-05/0.2415, allocations: 31.62 kB / 0.7893 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.2417, allocations: 81.67 kB / 0.7893 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.2418, allocations: 318.8 kB / 0.7896 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.2421, allocations: 99.94 kB / 0.7897 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.2423, allocations: 138.9 kB / 0.7899 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.2426, allocations: 257.5 kB / 0.7901 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2426, allocations: 0 / 0.7901 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005971/0.2432, allocations: 402.4 kB / 0.7905 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.2434, allocations: 101.1 kB / 0.7906 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2434, allocations: 11.92 kB / 0.7906 GB, free: 5.746 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.2434, allocations: 0 / 0.7906 GB, free: 5.746 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.966e-05/0.2435, allocations: 11.94 kB / 0.7906 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.2435, allocations: 4 kB / 0.7906 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004648/0.244, allocations: 83.91 kB / 0.7907 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-05/0.244, allocations: 27.92 kB / 0.7907 GB, free: 5.621 MB / 0.6075 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,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.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): 14 * Array equations: 0 * Algorithm blocks: 3 * 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.0001205/0.2441, allocations: 133.8 kB / 0.7908 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.963e-05/0.2442, allocations: 11.91 kB / 0.7909 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.489e-05/0.2442, allocations: 16.78 kB / 0.7909 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.882e-06/0.2442, allocations: 4 kB / 0.7909 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.2442, allocations: 0 / 0.7909 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.2442, allocations: 4 kB / 0.7909 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001839/0.2444, allocations: 221.5 kB / 0.7911 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.2444, allocations: 0 / 0.7911 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.433e-05/0.2445, allocations: 8 kB / 0.7911 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2445, allocations: 0 / 0.7911 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.2445, allocations: 11.92 kB / 0.7911 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.2445, allocations: 4 kB / 0.7911 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/0.2445, allocations: 7.938 kB / 0.7911 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002089/0.2447, allocations: 160.9 kB / 0.7913 GB, free: 4.969 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.23e-05/0.2448, allocations: 92.86 kB / 0.7914 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.2448, allocations: 3.938 kB / 0.7914 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.232e-05/0.2449, allocations: 4 kB / 0.7914 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.419e-05/0.2449, allocations: 7.984 kB / 0.7914 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.2449, allocations: 12 kB / 0.7914 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.325e-05/0.245, allocations: 113.4 kB / 0.7915 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.245, allocations: 0 / 0.7915 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000268/0.2453, allocations: 51.98 kB / 0.7916 GB, free: 4.672 MB / 0.6075 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 (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.0005488/0.2458, allocations: 0.7132 MB / 0.7922 GB, free: 3.934 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005104/0.2464, allocations: 382.1 kB / 0.7926 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.2464, allocations: 0 / 0.7926 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.86e-05/0.2465, allocations: 56.28 kB / 0.7927 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.2468, allocations: 27.97 kB / 0.7927 GB, free: 3.441 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00268/0.2494, allocations: 2.25 MB / 0.7949 GB, free: 1.055 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.2498, allocations: 0.7084 MB / 0.7956 GB, free: 328 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.781e-05/0.2498, allocations: 12.64 kB / 0.7956 GB, free: 316 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.966e-05/0.2499, allocations: 43.42 kB / 0.7956 GB, free: 276 kB / 0.6075 GB Notification: Performance of SimCode: time 3.5e-07/0.2499, allocations: 0 / 0.7956 GB, free: 276 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0233/0.2732, allocations: 4.191 MB / 0.7997 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.669/7.942, allocations: 10.94 kB / 0.7997 GB, free: 12.2 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)