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.001235/0.001235, 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.001353/0.001353, allocations: 196.5 kB / 16.64 MB, free: 6.445 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.513/1.513, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.845/1.845, allocations: 292.3 MB / 0.549 GB, free: 12.72 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.001497/0.001497, allocations: 68.27 kB / 0.6718 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2559, allocations: 114.5 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.002257/0.2582, allocations: 0.8418 MB / 0.7845 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00171/0.26, allocations: 1.282 MB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.791e-05/0.2601, allocations: 4 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.08e-05/0.2601, allocations: 11.81 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.2603, allocations: 23.78 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009088/0.2612, allocations: 320.2 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003346/0.2615, allocations: 311.5 kB / 0.7864 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.2617, allocations: 45.42 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.2618, allocations: 115.7 kB / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.262, allocations: 107.7 kB / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.639e-05/0.262, allocations: 28 kB / 0.7867 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001015/0.2622, allocations: 43.97 kB / 0.7867 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.101e-05/0.2622, allocations: 19.92 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000116/0.2623, allocations: 107.6 kB / 0.7868 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003185/0.2626, allocations: 263.4 kB / 0.7871 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2627, allocations: 3.938 kB / 0.7871 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.163e-06/0.2627, allocations: 8 kB / 0.7871 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.2627, allocations: 0 / 0.7871 GB, free: 9.707 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.0006569/0.2633, allocations: 0.5235 MB / 0.7876 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.2634, allocations: 8.031 kB / 0.7876 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.733e-05/0.2634, allocations: 42.73 kB / 0.7876 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.452e-05/0.2635, allocations: 20.75 kB / 0.7877 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.2636, allocations: 191.1 kB / 0.7878 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.2637, allocations: 12.38 kB / 0.7879 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.169e-05/0.2637, allocations: 20.38 kB / 0.7879 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.2639, allocations: 96.12 kB / 0.788 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.2639, allocations: 3.984 kB / 0.788 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.2639, allocations: 8 kB / 0.788 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.2639, allocations: 0 / 0.788 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.612e-05/0.264, allocations: 39.98 kB / 0.788 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006677/0.2647, allocations: 496.2 kB / 0.7885 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002213/0.2649, allocations: 74.56 kB / 0.7886 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.471e-05/0.265, allocations: 32.91 kB / 0.7886 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.265, allocations: 4 kB / 0.7886 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002204/0.2653, allocations: 110.7 kB / 0.7887 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.2653, allocations: 4 kB / 0.7887 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14): time 0.0003468/0.2656, allocations: 181.3 kB / 0.7889 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/0.2657, allocations: 59.41 kB / 0.7889 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.2658, allocations: 165.4 kB / 0.7891 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.922e-05/0.2658, allocations: 33.7 kB / 0.7891 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.157e-05/0.2659, allocations: 112 kB / 0.7892 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/0.266, allocations: 35.62 kB / 0.7893 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.2661, allocations: 69.67 kB / 0.7893 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.2662, allocations: 326.8 kB / 0.7896 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001916/0.2664, allocations: 95.94 kB / 0.7897 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002188/0.2666, allocations: 145 kB / 0.7899 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.2669, allocations: 261.8 kB / 0.7901 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.267, allocations: 0 / 0.7901 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00061/0.2676, allocations: 394.4 kB / 0.7905 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.057e-05/0.2677, allocations: 101.1 kB / 0.7906 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2677, allocations: 7.922 kB / 0.7906 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.2677, allocations: 4.188 kB / 0.7906 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.796e-05/0.2678, allocations: 19.94 kB / 0.7906 GB, free: 5.738 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.2678, allocations: 4 kB / 0.7906 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004558/0.2682, allocations: 79.75 kB / 0.7907 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.2683, allocations: 19.98 kB / 0.7907 GB, free: 5.637 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.0001583/0.2684, allocations: 145.7 kB / 0.7909 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.995e-05/0.2685, allocations: 7.906 kB / 0.7909 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.634e-05/0.2685, allocations: 16.78 kB / 0.7909 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-06/0.2685, allocations: 0 / 0.7909 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2685, allocations: 0 / 0.7909 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.2685, allocations: 3.984 kB / 0.7909 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.2687, allocations: 221.5 kB / 0.7911 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2687, allocations: 0 / 0.7911 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.425e-05/0.2688, allocations: 11.98 kB / 0.7911 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2688, allocations: 4 kB / 0.7911 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.2688, allocations: 11.92 kB / 0.7911 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.2688, allocations: 0 / 0.7911 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2688, allocations: 3.938 kB / 0.7911 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002257/0.2691, allocations: 160.9 kB / 0.7913 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.435e-05/0.2691, allocations: 92.86 kB / 0.7914 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.2691, allocations: 3.938 kB / 0.7914 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.223e-05/0.2692, allocations: 8 kB / 0.7914 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.618e-05/0.2692, allocations: 11.98 kB / 0.7914 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.2692, allocations: 7.984 kB / 0.7914 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.054e-05/0.2693, allocations: 113 kB / 0.7915 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2693, allocations: 0 / 0.7915 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002705/0.2696, allocations: 51.98 kB / 0.7916 GB, free: 4.68 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.000567/0.2702, allocations: 0.7098 MB / 0.7923 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005078/0.2707, allocations: 392.8 kB / 0.7926 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2707, allocations: 0 / 0.7926 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.056e-05/0.2708, allocations: 51.92 kB / 0.7927 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.2711, allocations: 24.36 kB / 0.7927 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002625/0.2737, allocations: 2.246 MB / 0.7949 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.274, allocations: 0.7083 MB / 0.7956 GB, free: 340 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.588e-05/0.274, allocations: 12.64 kB / 0.7956 GB, free: 328 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.13e-05/0.2741, allocations: 43.42 kB / 0.7956 GB, free: 288 kB / 0.6075 GB Notification: Performance of SimCode: time 5.92e-07/0.2741, allocations: 0 / 0.7956 GB, free: 288 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01992/0.294, allocations: 4.199 MB / 0.7997 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.362/7.656, allocations: 8.047 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --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)