Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.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.LogicalSwitch,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch",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.001163/0.001163, allocations: 108 kB / 15.6 MB, free: 132 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.001108/0.001108, allocations: 194.3 kB / 16.53 MB, free: 6.672 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.528/1.528, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.809/1.809, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001511/0.001512, allocations: 74.45 kB / 0.6716 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.234, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch): time 0.002098/0.2361, allocations: 0.7293 MB / 0.7842 GB, free: 12.65 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001621/0.2378, allocations: 1.25 MB / 0.7854 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.144e-05/0.2378, allocations: 0 / 0.7854 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.879e-05/0.2379, allocations: 7.922 kB / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.997e-05/0.238, allocations: 23.8 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008585/0.2389, allocations: 306 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002826/0.2391, allocations: 279.6 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.2393, allocations: 12.12 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.2394, allocations: 99.86 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.2395, allocations: 75.77 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.325e-05/0.2396, allocations: 24 kB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.229e-05/0.2397, allocations: 39.92 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.823e-05/0.2397, allocations: 11.98 kB / 0.7863 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.2398, allocations: 91.73 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.2401, allocations: 219.7 kB / 0.7866 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2401, allocations: 0 / 0.7866 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2401, allocations: 0 / 0.7866 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.2401, allocations: 0 / 0.7866 GB, free: 10.23 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005611/0.2407, allocations: 492.3 kB / 0.787 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.2407, allocations: 8.031 kB / 0.787 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.201e-05/0.2408, allocations: 38.73 kB / 0.7871 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.522e-05/0.2408, allocations: 12.84 kB / 0.7871 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.241, allocations: 180.2 kB / 0.7873 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.241, allocations: 12.38 kB / 0.7873 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.721e-05/0.2411, allocations: 16.36 kB / 0.7873 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.2412, allocations: 65.92 kB / 0.7873 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2412, allocations: 0 / 0.7873 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.2412, allocations: 0 / 0.7873 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.2412, allocations: 0 / 0.7873 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.223e-05/0.2413, allocations: 23.98 kB / 0.7874 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005583/0.2419, allocations: 412.5 kB / 0.7878 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 6.458e-05/0.2419, allocations: 46.48 kB / 0.7878 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.511e-05/0.242, allocations: 20.8 kB / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.242, allocations: 0 / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002003/0.2422, allocations: 95.5 kB / 0.7879 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 3.096e-06/0.2422, allocations: 8 kB / 0.7879 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0003384/0.2425, allocations: 141.5 kB / 0.7881 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.2426, allocations: 51.41 kB / 0.7881 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.2427, allocations: 136.7 kB / 0.7882 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.305e-05/0.2428, allocations: 33.69 kB / 0.7883 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.353e-05/0.2429, allocations: 101.1 kB / 0.7884 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.2429, allocations: 23.66 kB / 0.7884 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.243, allocations: 69.61 kB / 0.7885 GB, free: 8.047 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.2431, allocations: 330.8 kB / 0.7888 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.2433, allocations: 87.94 kB / 0.7889 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.2436, allocations: 134 kB / 0.789 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.2438, allocations: 231 kB / 0.7892 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2439, allocations: 0 / 0.7892 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006283/0.2445, allocations: 378.4 kB / 0.7896 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.329e-05/0.2446, allocations: 105.3 kB / 0.7897 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.2446, allocations: 4 kB / 0.7897 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.2446, allocations: 4 kB / 0.7897 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.523e-05/0.2446, allocations: 4 kB / 0.7897 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.106e-06/0.2446, allocations: 3.938 kB / 0.7897 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005357/0.2452, allocations: 80.17 kB / 0.7898 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.2452, allocations: 27.98 kB / 0.7898 GB, free: 6.574 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: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.0001169/0.2454, allocations: 132.6 kB / 0.7899 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.2454, allocations: 11.91 kB / 0.7899 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/0.2454, allocations: 12.3 kB / 0.7899 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.2454, allocations: 0 / 0.7899 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2454, allocations: 4 kB / 0.7899 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.2455, allocations: 0 / 0.7899 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.2456, allocations: 189.6 kB / 0.7901 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.2456, allocations: 4 kB / 0.7901 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.111e-05/0.2456, allocations: 3.984 kB / 0.7901 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.2457, allocations: 0 / 0.7901 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.784e-06/0.2457, allocations: 7.938 kB / 0.7901 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2457, allocations: 0 / 0.7901 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2457, allocations: 0 / 0.7901 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001912/0.2459, allocations: 144.9 kB / 0.7903 GB, free: 6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.754e-05/0.2459, allocations: 81.02 kB / 0.7903 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.928e-05/0.246, allocations: 8 kB / 0.7904 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.218e-05/0.246, allocations: 4 kB / 0.7904 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.557e-05/0.246, allocations: 11.98 kB / 0.7904 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.246, allocations: 4 kB / 0.7904 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.902e-05/0.2461, allocations: 95.27 kB / 0.7905 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2461, allocations: 0 / 0.7905 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002688/0.2464, allocations: 47.98 kB / 0.7905 GB, free: 5.734 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0005553/0.2469, allocations: 0.6825 MB / 0.7912 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005076/0.2475, allocations: 370.2 kB / 0.7915 GB, free: 4.625 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2475, allocations: 0 / 0.7915 GB, free: 4.625 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 6.487e-05/0.2475, allocations: 43.84 kB / 0.7916 GB, free: 4.582 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.2478, allocations: 24.36 kB / 0.7916 GB, free: 4.559 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002437/0.2503, allocations: 2.051 MB / 0.7936 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.2506, allocations: 0.704 MB / 0.7943 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.612e-05/0.2506, allocations: 4.438 kB / 0.7943 GB, free: 1.637 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.306e-05/0.2506, allocations: 27.42 kB / 0.7943 GB, free: 1.613 MB / 0.6075 GB Notification: Performance of SimCode: time 3.5e-07/0.2507, allocations: 0 / 0.7943 GB, free: 1.613 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02106/0.2717, allocations: 3.781 MB / 0.798 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.935/8.207, allocations: 12.22 kB / 0.798 GB, free: 13.93 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe 2>&1)