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.0009874/0.0009875, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 193.2 kB / 16.25 MB, free: 6.617 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.295/1.295, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.704/1.704, allocations: 292.3 MB / 0.5485 GB, free: 13.62 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.001575/0.001575, allocations: 69.38 kB / 0.6711 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2404, allocations: 114.5 MB / 0.783 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch): time 0.002161/0.2426, allocations: 0.7774 MB / 0.7837 GB, free: 13 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00179/0.2444, allocations: 1.267 MB / 0.785 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.511e-05/0.2446, allocations: 0 / 0.785 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.139e-05/0.2446, allocations: 3.938 kB / 0.785 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.197e-05/0.2447, allocations: 11.92 kB / 0.785 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.2458, allocations: 297.2 kB / 0.7853 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003661/0.2461, allocations: 267.6 kB / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.2462, allocations: 20.12 kB / 0.7856 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001842/0.2464, allocations: 95.86 kB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.2466, allocations: 75.78 kB / 0.7857 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.79e-05/0.2466, allocations: 24 kB / 0.7857 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.838e-05/0.2467, allocations: 39.91 kB / 0.7858 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.181e-05/0.2468, allocations: 15.98 kB / 0.7858 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.2469, allocations: 83.73 kB / 0.7859 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002592/0.2472, allocations: 223.7 kB / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2472, allocations: 4 kB / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.62e-07/0.2472, allocations: 0 / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.2472, allocations: 0 / 0.7861 GB, free: 10.59 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.000598/0.2478, allocations: 496.2 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.2479, allocations: 12.03 kB / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.708e-05/0.2479, allocations: 38.73 kB / 0.7866 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.919e-05/0.248, allocations: 16.84 kB / 0.7866 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.2481, allocations: 172.2 kB / 0.7868 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.2481, allocations: 4.375 kB / 0.7868 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.636e-05/0.2482, allocations: 32.34 kB / 0.7868 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.2483, allocations: 57.97 kB / 0.7869 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.2483, allocations: 0 / 0.7869 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.2483, allocations: 4 kB / 0.7869 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.2484, allocations: 0 / 0.7869 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.321e-05/0.2484, allocations: 23.92 kB / 0.7869 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005341/0.2489, allocations: 412.5 kB / 0.7873 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 7.237e-05/0.249, allocations: 34.56 kB / 0.7873 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.904e-05/0.2491, allocations: 16.86 kB / 0.7874 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-06/0.2491, allocations: 0 / 0.7874 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.2493, allocations: 103.4 kB / 0.7875 GB, free: 9 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.704e-06/0.2493, allocations: 0 / 0.7875 GB, free: 9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0003178/0.2496, allocations: 137.5 kB / 0.7876 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.2496, allocations: 55.41 kB / 0.7876 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.2498, allocations: 133.7 kB / 0.7878 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.4e-05/0.2498, allocations: 38.06 kB / 0.7878 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.573e-05/0.2499, allocations: 96.2 kB / 0.7879 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.2499, allocations: 23.66 kB / 0.7879 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.2501, allocations: 69.61 kB / 0.788 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.2502, allocations: 330.7 kB / 0.7883 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/0.2504, allocations: 87.94 kB / 0.7884 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.2506, allocations: 141.9 kB / 0.7885 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.2509, allocations: 235 kB / 0.7887 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2509, allocations: 4 kB / 0.7887 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005677/0.2514, allocations: 370.4 kB / 0.7891 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.82e-05/0.2515, allocations: 101.1 kB / 0.7892 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2515, allocations: 4 kB / 0.7892 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.2516, allocations: 192 / 0.7892 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.171e-05/0.2516, allocations: 8 kB / 0.7892 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.2516, allocations: 4 kB / 0.7892 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004909/0.2521, allocations: 79.8 kB / 0.7893 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.985e-05/0.2521, allocations: 19.98 kB / 0.7893 GB, free: 6.945 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.0001176/0.2523, allocations: 148.7 kB / 0.7894 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.567e-05/0.2523, allocations: 7.906 kB / 0.7895 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.88e-05/0.2523, allocations: 12.36 kB / 0.7895 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.2523, allocations: 4 kB / 0.7895 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2523, allocations: 0 / 0.7895 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2523, allocations: 0 / 0.7895 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.2525, allocations: 189.6 kB / 0.7896 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2525, allocations: 0 / 0.7896 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.103e-05/0.2525, allocations: 3.984 kB / 0.7897 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.2525, allocations: 4 kB / 0.7897 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.2525, allocations: 8 kB / 0.7897 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2525, allocations: 0 / 0.7897 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2525, allocations: 0 / 0.7897 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.2527, allocations: 140.9 kB / 0.7898 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.2528, allocations: 85.02 kB / 0.7899 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.2528, allocations: 4.094 kB / 0.7899 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.188e-05/0.2528, allocations: 3.938 kB / 0.7899 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.602e-05/0.2529, allocations: 7.984 kB / 0.7899 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.2529, allocations: 12 kB / 0.7899 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.397e-05/0.2529, allocations: 101.3 kB / 0.79 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2529, allocations: 0 / 0.79 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002669/0.2532, allocations: 47.98 kB / 0.79 GB, free: 6.09 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.0004608/0.2537, allocations: 0.6864 MB / 0.7907 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004472/0.2541, allocations: 366 kB / 0.7911 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2541, allocations: 0 / 0.7911 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.941e-05/0.2542, allocations: 39.98 kB / 0.7911 GB, free: 4.941 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.2545, allocations: 20.2 kB / 0.7911 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.257, allocations: 2.075 MB / 0.7932 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.2573, allocations: 0.7039 MB / 0.7938 GB, free: 1.984 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.619e-05/0.2573, allocations: 12.42 kB / 0.7939 GB, free: 1.969 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.674e-05/0.2574, allocations: 31.42 kB / 0.7939 GB, free: 1.941 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.2574, allocations: 0 / 0.7939 GB, free: 1.941 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01435/0.2717, allocations: 3.694 MB / 0.7975 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/0.2719, allocations: 208.3 kB / 0.7977 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/2.014, allocations: 0 / 0.7977 GB, free: 14.14 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --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)