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.788/2.788, allocations: 287.5 MB / 302.4 MB, free: 8.289 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.001349/0.001349, allocations: 184.3 kB / 371 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.186/2.186, allocations: 205.4 MB / 0.6297 GB, free: 10.55 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.0009286/0.0009283, allocations: 93.84 kB / 0.743 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005359/0.0005361, allocations: 13.56 kB / 0.8659 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2263, allocations: 115.3 MB / 0.9785 GB, free: 28.22 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch): time 0.0009168/0.2273, allocations: 430.4 kB / 0.9789 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001748/0.2291, allocations: 1.243 MB / 0.9801 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.902e-05/0.2292, allocations: 0 / 0.9801 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.923e-05/0.2292, allocations: 7.938 kB / 0.9801 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.357e-05/0.2293, allocations: 15.92 kB / 0.9801 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001113/0.2305, allocations: 273.8 kB / 0.9804 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002388/0.2307, allocations: 199.6 kB / 0.9806 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.2308, allocations: 20.17 kB / 0.9806 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.231, allocations: 83.86 kB / 0.9807 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.2311, allocations: 67.78 kB / 0.9807 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.261e-05/0.2312, allocations: 15.98 kB / 0.9808 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.2313, allocations: 27.98 kB / 0.9808 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.411e-05/0.2313, allocations: 11.94 kB / 0.9808 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.49e-05/0.2314, allocations: 41.7 kB / 0.9808 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002146/0.2316, allocations: 151.9 kB / 0.981 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.2317, allocations: 0 / 0.981 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.064e-06/0.2317, allocations: 7.938 kB / 0.981 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.169e-06/0.2317, allocations: 0 / 0.981 GB, free: 25.63 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.0005191/0.2322, allocations: 464.1 kB / 0.9814 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.2323, allocations: 12.02 kB / 0.9814 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.761e-05/0.2323, allocations: 38.55 kB / 0.9815 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.436e-05/0.2324, allocations: 11.91 kB / 0.9815 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.2325, allocations: 171 kB / 0.9816 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.2326, allocations: 12 kB / 0.9817 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.302e-05/0.2327, allocations: 12 kB / 0.9817 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001528/0.2328, allocations: 65.66 kB / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.2328, allocations: 0 / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.2329, allocations: 0 / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.2329, allocations: 0 / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.53e-05/0.233, allocations: 19.94 kB / 0.9818 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006661/0.2336, allocations: 424.4 kB / 0.9822 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 8.326e-05/0.2337, allocations: 34.56 kB / 0.9822 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.13e-05/0.2338, allocations: 20.86 kB / 0.9822 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.2338, allocations: 0 / 0.9822 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002367/0.2341, allocations: 103.3 kB / 0.9823 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.964e-06/0.2341, allocations: 4 kB / 0.9823 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.000406/0.2345, allocations: 137.5 kB / 0.9824 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.2346, allocations: 59.44 kB / 0.9825 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.2347, allocations: 133.8 kB / 0.9826 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.06e-05/0.2347, allocations: 29.7 kB / 0.9827 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.494e-05/0.2348, allocations: 108 kB / 0.9828 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.545e-05/0.2349, allocations: 19.75 kB / 0.9828 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.949e-05/0.2349, allocations: 4 kB / 0.9828 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.075e-05/0.235, allocations: 322.8 kB / 0.9831 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002919/0.2353, allocations: 84.33 kB / 0.9832 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003173/0.2356, allocations: 139.8 kB / 0.9833 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/0.236, allocations: 169.1 kB / 0.9835 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.236, allocations: 0 / 0.9835 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008697/0.2368, allocations: 382.4 kB / 0.9838 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.538e-05/0.2369, allocations: 101.1 kB / 0.9839 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.237, allocations: 0 / 0.9839 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.237, allocations: 7.953 kB / 0.9839 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.509e-05/0.237, allocations: 7.922 kB / 0.9839 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.237, allocations: 4 kB / 0.9839 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000985/0.238, allocations: 121.3 kB / 0.9841 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-05/0.2381, allocations: 15.98 kB / 0.9841 GB, free: 22.14 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.0001625/0.2383, allocations: 139.1 kB / 0.9842 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.2383, allocations: 7.906 kB / 0.9842 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.846e-05/0.2384, allocations: 12.38 kB / 0.9842 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.2384, allocations: 3.984 kB / 0.9842 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.2384, allocations: 3.953 kB / 0.9842 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2384, allocations: 4 kB / 0.9842 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001685/0.2386, allocations: 189.6 kB / 0.9844 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2386, allocations: 4 kB / 0.9844 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.694e-05/0.2386, allocations: 0 / 0.9844 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.2387, allocations: 0 / 0.9844 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.2387, allocations: 7.938 kB / 0.9844 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.2387, allocations: 0 / 0.9844 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2387, allocations: 80 / 0.9844 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002568/0.239, allocations: 140.9 kB / 0.9846 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.421e-05/0.239, allocations: 89.02 kB / 0.9846 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.2391, allocations: 0 / 0.9846 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.272e-05/0.2391, allocations: 7.984 kB / 0.9847 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.773e-05/0.2392, allocations: 8 kB / 0.9847 GB, free: 21.44 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.2392, allocations: 7.984 kB / 0.9847 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.23e-05/0.2393, allocations: 100.8 kB / 0.9848 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.01e-07/0.2393, allocations: 0 / 0.9848 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003453/0.2396, allocations: 44 kB / 0.9848 GB, free: 21.29 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.0004948/0.2401, allocations: 0.6826 MB / 0.9855 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006186/0.2408, allocations: 366 kB / 0.9858 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2408, allocations: 0 / 0.9858 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.112e-05/0.2409, allocations: 39.92 kB / 0.9859 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.2413, allocations: 24.36 kB / 0.9859 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002/0.2433, allocations: 0.8975 MB / 0.9868 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.2435, allocations: 0.7004 MB / 0.9874 GB, free: 18.44 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.916e-05/0.2435, allocations: 4.438 kB / 0.9875 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.93e-05/0.2436, allocations: 31.48 kB / 0.9875 GB, free: 18.4 MB / 0.6198 GB Notification: Performance of SimCode: time 1.312e-06/0.2436, allocations: 0 / 0.9875 GB, free: 18.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0248/0.2684, allocations: 3.475 MB / 0.9909 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002773/0.2688, allocations: 198.3 kB / 0.9911 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.568/2.837, allocations: 0 / 0.9911 GB, free: 14.87 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)