Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,fileNamePrefix="Buildings_8_0_0_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_0_0_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/Buildings 8.0.0/package.mo): time 2.868/2.868, allocations: 287.3 MB / 302.3 MB, free: 8.395 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001568/0.001568, allocations: 187.5 kB / 370.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.086/2.086, allocations: 205.4 MB / 0.6295 GB, free: 10.58 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001152/0.001152, allocations: 99.86 kB / 0.7428 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 20.94 kB / 0.8657 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2184, allocations: 115.3 MB / 0.9783 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch): time 0.0009102/0.2193, allocations: 430.4 kB / 0.9787 GB, free: 27.85 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001671/0.221, allocations: 1.189 MB / 0.9799 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.055e-05/0.2211, allocations: 0 / 0.9799 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.235e-05/0.2212, allocations: 0 / 0.9799 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.703e-05/0.2213, allocations: 27.89 kB / 0.9799 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.2223, allocations: 289.1 kB / 0.9802 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001895/0.2225, allocations: 119.8 kB / 0.9803 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.2227, allocations: 20.16 kB / 0.9803 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.2228, allocations: 83.86 kB / 0.9804 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.2229, allocations: 67.78 kB / 0.9804 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.999e-05/0.223, allocations: 12 kB / 0.9805 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.621e-05/0.2231, allocations: 23.98 kB / 0.9805 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.195e-05/0.2231, allocations: 19.97 kB / 0.9805 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.432e-05/0.2232, allocations: 49.64 kB / 0.9805 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002081/0.2234, allocations: 147.9 kB / 0.9807 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2235, allocations: 4 kB / 0.9807 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2235, allocations: 0 / 0.9807 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.2235, allocations: 0 / 0.9807 GB, free: 25.8 MB / 0.6198 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.0004597/0.2239, allocations: 456.1 kB / 0.9811 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.224, allocations: 12.02 kB / 0.9811 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.011e-05/0.2241, allocations: 34.55 kB / 0.9812 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.229e-05/0.2242, allocations: 19.91 kB / 0.9812 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.549e-05/0.2243, allocations: 167 kB / 0.9814 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.2243, allocations: 15.98 kB / 0.9814 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.723e-05/0.2244, allocations: 12 kB / 0.9814 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001375/0.2245, allocations: 61.59 kB / 0.9814 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.2245, allocations: 0 / 0.9814 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.2246, allocations: 4 kB / 0.9814 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.2246, allocations: 4 kB / 0.9814 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.147e-05/0.2247, allocations: 15.98 kB / 0.9815 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006115/0.2253, allocations: 420.5 kB / 0.9819 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 8.185e-05/0.2254, allocations: 34.5 kB / 0.9819 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.2254, allocations: 4 kB / 0.9819 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.2257, allocations: 99.34 kB / 0.982 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 2.875e-06/0.2257, allocations: 4 kB / 0.982 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0004038/0.2261, allocations: 141.7 kB / 0.9821 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.2261, allocations: 59.36 kB / 0.9822 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.2263, allocations: 132.4 kB / 0.9823 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.313e-05/0.2263, allocations: 33.7 kB / 0.9823 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.06e-05/0.2264, allocations: 108.1 kB / 0.9824 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.36e-05/0.2264, allocations: 15.75 kB / 0.9825 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.239e-05/0.2265, allocations: 8 kB / 0.9825 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.191e-05/0.2266, allocations: 326.8 kB / 0.9828 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.2269, allocations: 83.95 kB / 0.9829 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003062/0.2272, allocations: 136.2 kB / 0.983 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.2275, allocations: 173.1 kB / 0.9832 GB, free: 23 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.2275, allocations: 4 kB / 0.9832 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008505/0.2284, allocations: 370.4 kB / 0.9835 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.945e-05/0.2285, allocations: 101.1 kB / 0.9836 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2285, allocations: 3.984 kB / 0.9836 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.2285, allocations: 4 kB / 0.9836 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.11e-05/0.2285, allocations: 7.953 kB / 0.9836 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.2286, allocations: 4.188 kB / 0.9836 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009214/0.2295, allocations: 111.8 kB / 0.9837 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.393e-05/0.2296, allocations: 27.92 kB / 0.9838 GB, free: 22.33 MB / 0.6198 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.0001377/0.2297, allocations: 128.4 kB / 0.9839 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.139e-05/0.2297, allocations: 15.89 kB / 0.9839 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.336e-05/0.2298, allocations: 8.375 kB / 0.9839 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.2298, allocations: 4 kB / 0.9839 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2298, allocations: 3.953 kB / 0.9839 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.2298, allocations: 0 / 0.9839 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.23, allocations: 197.5 kB / 0.9841 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.23, allocations: 0 / 0.9841 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.449e-05/0.23, allocations: 0 / 0.9841 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.23, allocations: 4 kB / 0.9841 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.2301, allocations: 0 / 0.9841 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.2301, allocations: 0 / 0.9841 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.2301, allocations: 4 kB / 0.9841 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002292/0.2303, allocations: 144.9 kB / 0.9843 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.839e-05/0.2304, allocations: 81.2 kB / 0.9843 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.2304, allocations: 4 kB / 0.9843 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.117e-05/0.2304, allocations: 3.938 kB / 0.9843 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.94e-05/0.2305, allocations: 15.92 kB / 0.9844 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.2305, allocations: 8 kB / 0.9844 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.678e-05/0.2306, allocations: 104.4 kB / 0.9845 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4e-07/0.2306, allocations: 0 / 0.9845 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003566/0.231, allocations: 43.95 kB / 0.9845 GB, free: 21.49 MB / 0.6198 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.0004641/0.2314, allocations: 0.6748 MB / 0.9852 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000584/0.232, allocations: 366.1 kB / 0.9855 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.2321, allocations: 3.938 kB / 0.9855 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.2322, allocations: 35.98 kB / 0.9855 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.2325, allocations: 19.98 kB / 0.9856 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008129/0.2333, allocations: 1.354 MB / 0.9869 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001386/0.2335, allocations: 0.7043 MB / 0.9876 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.624e-05/0.2335, allocations: 4.438 kB / 0.9876 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.376e-05/0.2336, allocations: 27.42 kB / 0.9876 GB, free: 18.14 MB / 0.6198 GB Notification: Performance of SimCode: time 8.91e-07/0.2336, allocations: 4 kB / 0.9876 GB, free: 18.14 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02306/0.2567, allocations: 3.415 MB / 0.9909 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002092/0.257, allocations: 200.6 kB / 0.9911 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.396/2.653, allocations: 0 / 0.9911 GB, free: 14.65 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe 2>&1)