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.00123/0.00123, 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.001308/0.001308, allocations: 190.5 kB / 16.64 MB, free: 6.594 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.485/1.485, 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.755/1.755, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001465/0.001465, allocations: 70.94 kB / 0.6718 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2235, allocations: 114.5 MB / 0.7837 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch): time 0.002084/0.2256, allocations: 0.7134 MB / 0.7843 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001472/0.2271, allocations: 1.258 MB / 0.7856 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.442e-05/0.2272, allocations: 7.938 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.087e-05/0.2272, allocations: 3.938 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.3e-05/0.2273, allocations: 15.84 kB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000811/0.2281, allocations: 324.4 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003098/0.2284, allocations: 271.5 kB / 0.7862 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.2286, allocations: 20.17 kB / 0.7862 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.2287, allocations: 99.86 kB / 0.7863 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.2289, allocations: 91.73 kB / 0.7864 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.738e-05/0.2289, allocations: 24 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.542e-05/0.2291, allocations: 35.98 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.628e-05/0.2291, allocations: 19.91 kB / 0.7865 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.2292, allocations: 79.81 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002533/0.2295, allocations: 219.7 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2295, allocations: 4 kB / 0.7867 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2295, allocations: 0 / 0.7867 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.2295, allocations: 4 kB / 0.7867 GB, free: 10.07 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.0005569/0.2301, allocations: 492.2 kB / 0.7872 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.2301, allocations: 8.031 kB / 0.7872 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.206e-05/0.2301, allocations: 38.75 kB / 0.7873 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.111e-05/0.2302, allocations: 20.77 kB / 0.7873 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.2303, allocations: 172.2 kB / 0.7874 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/0.2303, allocations: 8.375 kB / 0.7874 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.788e-05/0.2304, allocations: 16.38 kB / 0.7875 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001181/0.2305, allocations: 73.95 kB / 0.7875 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.2305, allocations: 0 / 0.7875 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.2305, allocations: 0 / 0.7875 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.2305, allocations: 0 / 0.7875 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.876e-05/0.2306, allocations: 19.94 kB / 0.7876 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004918/0.2311, allocations: 416.5 kB / 0.788 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 6.237e-05/0.2312, allocations: 30.56 kB / 0.788 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.588e-05/0.2312, allocations: 24.86 kB / 0.788 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.2312, allocations: 4 kB / 0.788 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.2314, allocations: 95.38 kB / 0.7881 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.2314, allocations: 0 / 0.7881 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0002913/0.2317, allocations: 141.4 kB / 0.7882 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.2318, allocations: 59.41 kB / 0.7883 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.955e-05/0.2319, allocations: 140.7 kB / 0.7884 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.2319, allocations: 29.7 kB / 0.7885 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.472e-05/0.232, allocations: 101.2 kB / 0.7886 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.232, allocations: 23.72 kB / 0.7886 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.2321, allocations: 65.67 kB / 0.7886 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.889e-05/0.2322, allocations: 326.8 kB / 0.7889 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.2324, allocations: 87.95 kB / 0.789 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.2326, allocations: 141.9 kB / 0.7892 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002509/0.2329, allocations: 238.4 kB / 0.7894 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2329, allocations: 0 / 0.7894 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005563/0.2335, allocations: 374.4 kB / 0.7898 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.919e-05/0.2335, allocations: 102 kB / 0.7898 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.2336, allocations: 0 / 0.7898 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.2336, allocations: 4 kB / 0.7899 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.365e-05/0.2336, allocations: 8 kB / 0.7899 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.2336, allocations: 192 / 0.7899 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004778/0.2341, allocations: 79.81 kB / 0.7899 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.2341, allocations: 19.98 kB / 0.79 GB, free: 6.438 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.0001138/0.2343, allocations: 140.7 kB / 0.7901 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.2343, allocations: 15.84 kB / 0.7901 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.723e-05/0.2343, allocations: 12.38 kB / 0.7901 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.2343, allocations: 0 / 0.7901 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2343, allocations: 4 kB / 0.7901 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.2343, allocations: 3.984 kB / 0.7901 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001352/0.2345, allocations: 193.5 kB / 0.7903 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.2345, allocations: 0 / 0.7903 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.246e-05/0.2345, allocations: 8 kB / 0.7903 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2345, allocations: 0 / 0.7903 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.2345, allocations: 0 / 0.7903 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2345, allocations: 8 kB / 0.7903 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2345, allocations: 0 / 0.7903 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001776/0.2347, allocations: 145.2 kB / 0.7905 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.2348, allocations: 81.02 kB / 0.7905 GB, free: 5.746 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.2348, allocations: 4 kB / 0.7905 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.423e-05/0.2348, allocations: 7.984 kB / 0.7906 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.361e-05/0.2349, allocations: 4 kB / 0.7906 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.2349, allocations: 11.98 kB / 0.7906 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.331e-05/0.2349, allocations: 99.2 kB / 0.7907 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2349, allocations: 4 kB / 0.7907 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002541/0.2352, allocations: 40 kB / 0.7907 GB, free: 5.578 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.0004571/0.2357, allocations: 0.6814 MB / 0.7914 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004811/0.2362, allocations: 362.1 kB / 0.7917 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2362, allocations: 0 / 0.7917 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 6.323e-05/0.2362, allocations: 43.92 kB / 0.7918 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.2365, allocations: 20.36 kB / 0.7918 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.2388, allocations: 2.065 MB / 0.7938 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.239, allocations: 0.6963 MB / 0.7945 GB, free: 1.492 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.815e-05/0.239, allocations: 4.438 kB / 0.7945 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.529e-05/0.2391, allocations: 31.42 kB / 0.7945 GB, free: 1.457 MB / 0.6075 GB Notification: Performance of SimCode: time 6.51e-07/0.2391, allocations: 0 / 0.7945 GB, free: 1.457 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02172/0.2608, allocations: 3.795 MB / 0.7982 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.893, allocations: 19.86 kB / 0.7982 GB, free: 13.77 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)