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.0008064/0.0008064, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001028/0.001028, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.4 MB / 222.1 MB, free: 5.891 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.751/1.751, allocations: 292.7 MB / 0.5499 GB, free: 14.58 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.0005306/0.0005307, allocations: 15.53 kB / 0.6738 GB, free: 26.37 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2508, allocations: 116.3 MB / 0.7874 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch): time 0.0009648/0.2518, allocations: 438.3 kB / 0.7878 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.2532, allocations: 1.232 MB / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.326e-05/0.2533, allocations: 4 kB / 0.789 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.015e-05/0.2533, allocations: 7.922 kB / 0.7891 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.01e-05/0.2534, allocations: 7.922 kB / 0.7891 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000729/0.2541, allocations: 288.7 kB / 0.7893 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001921/0.2543, allocations: 203.5 kB / 0.7895 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.211e-05/0.2544, allocations: 12.17 kB / 0.7895 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.2545, allocations: 91.8 kB / 0.7896 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.2547, allocations: 67.83 kB / 0.7897 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.116e-05/0.2547, allocations: 12 kB / 0.7897 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.847e-05/0.2548, allocations: 27.98 kB / 0.7897 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.39e-05/0.2548, allocations: 11.94 kB / 0.7897 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.249e-05/0.2549, allocations: 45.64 kB / 0.7898 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.2551, allocations: 151.9 kB / 0.7899 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.2551, allocations: 4 kB / 0.7899 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.843e-06/0.2551, allocations: 0 / 0.7899 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.2551, allocations: 0 / 0.7899 GB, free: 9.277 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.0004736/0.2556, allocations: 460.2 kB / 0.7904 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.2556, allocations: 8.031 kB / 0.7904 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.911e-05/0.2557, allocations: 34.56 kB / 0.7904 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.706e-05/0.2557, allocations: 15.91 kB / 0.7904 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.2559, allocations: 171 kB / 0.7906 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.2559, allocations: 8 kB / 0.7906 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.138e-05/0.256, allocations: 19.94 kB / 0.7906 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.2561, allocations: 53.67 kB / 0.7907 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.2561, allocations: 0 / 0.7907 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.2561, allocations: 11.92 kB / 0.7907 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2562, allocations: 4 kB / 0.7907 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.911e-05/0.2562, allocations: 20 kB / 0.7907 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005093/0.2567, allocations: 420.4 kB / 0.7911 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 5.86e-05/0.2568, allocations: 34.56 kB / 0.7911 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.538e-05/0.2568, allocations: 24.8 kB / 0.7912 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 6.372e-06/0.2569, allocations: 4 kB / 0.7912 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001827/0.257, allocations: 103.4 kB / 0.7913 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.2571, allocations: 0 / 0.7913 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0002874/0.2573, allocations: 137.5 kB / 0.7914 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.2574, allocations: 55.41 kB / 0.7915 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.2575, allocations: 133.8 kB / 0.7916 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.2576, allocations: 37.64 kB / 0.7916 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.378e-05/0.2576, allocations: 104 kB / 0.7917 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.2577, allocations: 15.75 kB / 0.7917 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.776e-05/0.2577, allocations: 12 kB / 0.7917 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.2578, allocations: 322.8 kB / 0.792 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.258, allocations: 87.95 kB / 0.7921 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.2582, allocations: 133.9 kB / 0.7923 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.2584, allocations: 173.1 kB / 0.7924 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2584, allocations: 0 / 0.7924 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005337/0.259, allocations: 374.4 kB / 0.7928 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.646e-05/0.259, allocations: 101.3 kB / 0.7929 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2591, allocations: 8 kB / 0.7929 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.2591, allocations: 0 / 0.7929 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.396e-05/0.2591, allocations: 4.375 kB / 0.7929 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.2591, allocations: 7.953 kB / 0.7929 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000513/0.2596, allocations: 114.6 kB / 0.793 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.123e-05/0.2597, allocations: 19.98 kB / 0.793 GB, free: 5.789 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,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,logicalSwitch.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.2598, allocations: 133.7 kB / 0.7932 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.684e-05/0.2598, allocations: 15.89 kB / 0.7932 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.724e-05/0.2599, allocations: 8.375 kB / 0.7932 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2599, allocations: 0 / 0.7932 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2599, allocations: 0 / 0.7932 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2599, allocations: 3.953 kB / 0.7932 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/0.2601, allocations: 193.6 kB / 0.7934 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2601, allocations: 0 / 0.7934 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.135e-05/0.2601, allocations: 8 kB / 0.7934 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.2601, allocations: 0 / 0.7934 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.2601, allocations: 0 / 0.7934 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2601, allocations: 0 / 0.7934 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.2601, allocations: 4 kB / 0.7934 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001733/0.2603, allocations: 144.9 kB / 0.7935 GB, free: 5.211 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.91e-05/0.2604, allocations: 85.02 kB / 0.7936 GB, free: 5.109 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.2604, allocations: 0 / 0.7936 GB, free: 5.109 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.102e-05/0.2604, allocations: 4 kB / 0.7936 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.2604, allocations: 11.98 kB / 0.7936 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.2605, allocations: 7.984 kB / 0.7936 GB, free: 5.086 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.51e-05/0.2605, allocations: 103.1 kB / 0.7937 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2605, allocations: 0 / 0.7937 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002547/0.2608, allocations: 44 kB / 0.7938 GB, free: 4.941 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004618/0.2613, allocations: 0.6826 MB / 0.7944 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000454/0.2617, allocations: 366.3 kB / 0.7948 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2617, allocations: 0 / 0.7948 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 6.155e-05/0.2618, allocations: 39.92 kB / 0.7948 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.2621, allocations: 27.48 kB / 0.7948 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.2634, allocations: 0.9026 MB / 0.7957 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.2637, allocations: 0.6926 MB / 0.7964 GB, free: 2.086 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.62e-05/0.2637, allocations: 12.42 kB / 0.7964 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.465e-05/0.2638, allocations: 27.48 kB / 0.7964 GB, free: 2.047 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.2638, allocations: 4 kB / 0.7964 GB, free: 2.043 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01516/0.2789, allocations: 3.46 MB / 0.7998 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/0.2792, allocations: 195 kB / 0.8 GB, free: 14.51 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.801/2.08, allocations: 3.938 kB / 0.8 GB, free: 14.5 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/linux/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) Environment - environmentSimulation: