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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001011, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001127/0.001127, allocations: 191.4 kB / 16.13 MB, free: 6.699 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.584/1.584, allocations: 205.1 MB / 222 MB, free: 4.977 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.787/1.787, allocations: 292.2 MB / 0.5484 GB, free: 13.69 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.00127/0.00127, allocations: 59.89 kB / 0.6708 GB, free: 26.44 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2342, allocations: 114.6 MB / 0.7827 GB, free: 14.04 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch): time 0.00212/0.2364, allocations: 0.7785 MB / 0.7834 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00166/0.2381, allocations: 1.302 MB / 0.7847 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.069e-05/0.2381, allocations: 4 kB / 0.7847 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.544e-05/0.2382, allocations: 0 / 0.7847 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.525e-05/0.2383, allocations: 15.84 kB / 0.7847 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000834/0.2391, allocations: 295.9 kB / 0.785 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001958/0.2393, allocations: 219.7 kB / 0.7852 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.2394, allocations: 12.17 kB / 0.7852 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.2395, allocations: 95.73 kB / 0.7853 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.2396, allocations: 75.77 kB / 0.7854 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.2397, allocations: 16 kB / 0.7854 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.941e-05/0.2398, allocations: 20 kB / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.616e-05/0.2398, allocations: 19.97 kB / 0.7855 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.24, allocations: 79.73 kB / 0.7855 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002679/0.2402, allocations: 207.7 kB / 0.7857 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.2402, allocations: 0 / 0.7857 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2403, allocations: 0 / 0.7857 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.2403, allocations: 3.938 kB / 0.7857 GB, free: 10.9 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.0005954/0.2409, allocations: 492.3 kB / 0.7862 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.2409, allocations: 16.02 kB / 0.7862 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.443e-05/0.241, allocations: 12.84 kB / 0.7862 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.2412, allocations: 172.3 kB / 0.7864 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/0.2412, allocations: 8.375 kB / 0.7864 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.144e-05/0.2412, allocations: 12.38 kB / 0.7864 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.2414, allocations: 66.16 kB / 0.7865 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.2414, allocations: 3.938 kB / 0.7865 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.2414, allocations: 0 / 0.7865 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.2414, allocations: 0 / 0.7865 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.658e-05/0.2415, allocations: 20 kB / 0.7865 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005209/0.242, allocations: 424.4 kB / 0.7869 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 6.455e-05/0.2421, allocations: 38.5 kB / 0.7869 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.683e-05/0.2421, allocations: 16.86 kB / 0.787 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.04e-05/0.2421, allocations: 0 / 0.787 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002113/0.2424, allocations: 99.38 kB / 0.787 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.2424, allocations: 4 kB / 0.7871 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0003118/0.2427, allocations: 137.5 kB / 0.7872 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.2427, allocations: 55.41 kB / 0.7872 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.2428, allocations: 136.5 kB / 0.7874 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.767e-05/0.2429, allocations: 33.7 kB / 0.7874 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.695e-05/0.243, allocations: 96.12 kB / 0.7875 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.243, allocations: 27.72 kB / 0.7875 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.2431, allocations: 65.67 kB / 0.7876 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.2433, allocations: 330.8 kB / 0.7879 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.2435, allocations: 87.89 kB / 0.788 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.2437, allocations: 134 kB / 0.7881 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.244, allocations: 243.3 kB / 0.7883 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.244, allocations: 0 / 0.7883 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005742/0.2446, allocations: 370.5 kB / 0.7887 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.122e-05/0.2447, allocations: 107.9 kB / 0.7888 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.2447, allocations: 3.938 kB / 0.7888 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.2447, allocations: 4 kB / 0.7888 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.529e-05/0.2448, allocations: 7.938 kB / 0.7888 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.2448, allocations: 0 / 0.7888 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005176/0.2453, allocations: 87.8 kB / 0.7889 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.694e-05/0.2454, allocations: 27.98 kB / 0.7889 GB, free: 7.297 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.0001562/0.2455, allocations: 132.8 kB / 0.789 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.68e-05/0.2456, allocations: 7.906 kB / 0.7891 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.043e-05/0.2456, allocations: 12.36 kB / 0.7891 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.2456, allocations: 0 / 0.7891 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.2456, allocations: 0 / 0.7891 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2456, allocations: 4 kB / 0.7891 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.2458, allocations: 193.5 kB / 0.7893 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2458, allocations: 4 kB / 0.7893 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.348e-05/0.2458, allocations: 7.922 kB / 0.7893 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.2458, allocations: 3.984 kB / 0.7893 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.2458, allocations: 8 kB / 0.7893 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2458, allocations: 0 / 0.7893 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2458, allocations: 0 / 0.7893 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001784/0.246, allocations: 140.9 kB / 0.7894 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.885e-05/0.2461, allocations: 81.02 kB / 0.7895 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.2461, allocations: 8 kB / 0.7895 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.492e-05/0.2461, allocations: 4 kB / 0.7895 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.2462, allocations: 7.984 kB / 0.7895 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.2462, allocations: 4 kB / 0.7895 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.725e-05/0.2462, allocations: 99.27 kB / 0.7896 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.61e-07/0.2462, allocations: 0 / 0.7896 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002627/0.2465, allocations: 47.98 kB / 0.7897 GB, free: 6.453 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.0001611/0.2467, allocations: 99.34 kB / 0.7897 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004653/0.2472, allocations: 377.8 kB / 0.7901 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.2472, allocations: 0 / 0.7901 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 6.682e-05/0.2472, allocations: 43.92 kB / 0.7902 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.2475, allocations: 22.73 kB / 0.7902 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000573/0.2481, allocations: 201.1 kB / 0.7904 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.2484, allocations: 0.6926 MB / 0.791 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.649e-05/0.2484, allocations: 8.422 kB / 0.791 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.269e-05/0.2485, allocations: 23.44 kB / 0.7911 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of SimCode: time 2.81e-07/0.2485, allocations: 0 / 0.7911 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of Templates: time 0.005355/0.2538, allocations: 2.487 MB / 0.7935 GB, free: 2.453 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.makefile (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe 2>&1)