Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Switch,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",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.001575/0.001575, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001852/0.001852, allocations: 177.3 kB / 15.95 MB, free: 216 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.543/1.543, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.79/1.79, allocations: 292.6 MB / 0.5497 GB, free: 14.61 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.0007258/0.0007258, allocations: 14.12 kB / 0.6737 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2624, allocations: 116.3 MB / 0.7872 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0009303/0.2634, allocations: 498.1 kB / 0.7877 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00122/0.2646, allocations: 1.099 MB / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.897e-05/0.2647, allocations: 0 / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.654e-05/0.2647, allocations: 3.938 kB / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.827e-05/0.2648, allocations: 11.97 kB / 0.7888 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004423/0.2652, allocations: 118.8 kB / 0.7889 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.2653, allocations: 71.91 kB / 0.789 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.524e-05/0.2654, allocations: 4 kB / 0.789 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.928e-05/0.2656, allocations: 43.89 kB / 0.789 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.614e-05/0.2657, allocations: 47.81 kB / 0.7891 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.2657, allocations: 8 kB / 0.7891 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.415e-05/0.2658, allocations: 15.98 kB / 0.7891 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.991e-05/0.2658, allocations: 7.984 kB / 0.7891 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.072e-05/0.2658, allocations: 41.64 kB / 0.7892 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.266, allocations: 88.03 kB / 0.7892 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.266, allocations: 0 / 0.7892 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.783e-06/0.266, allocations: 0 / 0.7892 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.266, allocations: 0 / 0.7892 GB, free: 9.816 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.0005864/0.2666, allocations: 412.8 kB / 0.7896 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.2666, allocations: 12.03 kB / 0.7896 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.721e-05/0.2667, allocations: 34.56 kB / 0.7897 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/0.2667, allocations: 7.906 kB / 0.7897 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.2669, allocations: 178.9 kB / 0.7899 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.2669, allocations: 4 kB / 0.7899 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.2669, allocations: 8 kB / 0.7899 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/0.2672, allocations: 93.58 kB / 0.79 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.2672, allocations: 0 / 0.79 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.2672, allocations: 0 / 0.79 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.2672, allocations: 0 / 0.79 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003156/0.2676, allocations: 99.86 kB / 0.7901 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004295/0.268, allocations: 328.7 kB / 0.7904 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001923/0.2682, allocations: 66.48 kB / 0.7904 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.097e-05/0.2682, allocations: 0 / 0.7904 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002832/0.2685, allocations: 107.4 kB / 0.7905 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.2685, allocations: 0 / 0.7905 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0006125/0.2691, allocations: 205.4 kB / 0.7907 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.2692, allocations: 51.41 kB / 0.7908 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.827e-05/0.2693, allocations: 130 kB / 0.7909 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.2693, allocations: 29.7 kB / 0.7909 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.402e-05/0.2694, allocations: 96.2 kB / 0.791 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.729e-05/0.2694, allocations: 15.73 kB / 0.791 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.288e-05/0.2694, allocations: 8 kB / 0.791 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.891e-05/0.2695, allocations: 310.8 kB / 0.7913 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.2697, allocations: 79.94 kB / 0.7914 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002135/0.2699, allocations: 90.52 kB / 0.7915 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.2702, allocations: 93.66 kB / 0.7916 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2702, allocations: 4 kB / 0.7916 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005177/0.2707, allocations: 231.2 kB / 0.7918 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.43e-05/0.2708, allocations: 44.5 kB / 0.7919 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.2708, allocations: 0 / 0.7919 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.2708, allocations: 4 kB / 0.7919 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.2709, allocations: 23.92 kB / 0.7919 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.2709, allocations: 80 / 0.7919 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/0.2712, allocations: 59.89 kB / 0.7919 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.2713, allocations: 7.984 kB / 0.7919 GB, free: 6.781 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 8.471e-05/0.2713, allocations: 117.8 kB / 0.7921 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.35e-05/0.2714, allocations: 11.91 kB / 0.7921 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.855e-05/0.2714, allocations: 12.36 kB / 0.7921 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2714, allocations: 0 / 0.7921 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2714, allocations: 0 / 0.7921 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2714, allocations: 4 kB / 0.7921 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/0.2716, allocations: 185.6 kB / 0.7923 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2716, allocations: 320 / 0.7923 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.2717, allocations: 23.97 kB / 0.7923 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.197e-06/0.2717, allocations: 8 kB / 0.7923 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.2717, allocations: 3.938 kB / 0.7923 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2717, allocations: 0 / 0.7923 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2717, allocations: 0 / 0.7923 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003882/0.2721, allocations: 180.8 kB / 0.7925 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.956e-05/0.2722, allocations: 85 kB / 0.7926 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.7e-05/0.2722, allocations: 4 kB / 0.7926 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.045e-05/0.2723, allocations: 19.98 kB / 0.7926 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.22e-05/0.2723, allocations: 7.984 kB / 0.7926 GB, free: 6.035 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.2723, allocations: 4.094 kB / 0.7926 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.681e-05/0.2724, allocations: 97.45 kB / 0.7927 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2724, allocations: 0 / 0.7927 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002217/0.2726, allocations: 23.94 kB / 0.7927 GB, free: 5.914 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006786/0.2733, allocations: 0.7204 MB / 0.7934 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004793/0.2738, allocations: 203.3 kB / 0.7936 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.2738, allocations: 4 kB / 0.7936 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.274, allocations: 60.02 kB / 0.7937 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/0.2742, allocations: 15.98 kB / 0.7937 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006276/0.2748, allocations: 0.6832 MB / 0.7943 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.2751, allocations: 0.6887 MB / 0.795 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.783e-05/0.2751, allocations: 8.188 kB / 0.795 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.832e-05/0.2752, allocations: 23.42 kB / 0.795 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of SimCode: time 1.813e-06/0.2752, allocations: 0 / 0.795 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01313/0.2883, allocations: 2.245 MB / 0.7972 GB, free: 1.277 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003131/0.2887, allocations: 199.1 kB / 0.7974 GB, free: 1.02 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/1.953, allocations: 0 / 0.7974 GB, free: 1.02 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) Environment - environmentSimulation: