Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.334/1.334, allocations: 251.5 MB / 266.7 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009936/0.0009936, allocations: 168.4 kB / 325.8 MB, free: 2.723 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.649/1.649, allocations: 205 MB / 0.576 GB, free: 21.02 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006997/0.0006999, allocations: 94.53 kB / 0.6797 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002842/0.0002842, allocations: 11.98 kB / 0.7932 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1711, allocations: 105.4 MB / 0.8962 GB, free: 68.14 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002378/0.1735, allocations: 2.046 MB / 0.8982 GB, free: 66.08 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001023/0.1745, allocations: 0.8266 MB / 0.899 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.077e-05/0.1746, allocations: 0 / 0.899 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000449/0.1751, allocations: 147.4 kB / 0.8991 GB, free: 65.1 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.1752, allocations: 59.73 kB / 0.8992 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001113/0.1753, allocations: 43.91 kB / 0.8992 GB, free: 65 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001466/0.1755, allocations: 195.4 kB / 0.8994 GB, free: 64.81 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.1756, allocations: 65.08 kB / 0.8995 GB, free: 64.75 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.685e-05/0.1757, allocations: 59.77 kB / 0.8995 GB, free: 64.69 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.1759, allocations: 67.67 kB / 0.8996 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.1759, allocations: 4 kB / 0.8996 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 9.196e-05/0.176, allocations: 51.89 kB / 0.8997 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.128e-05/0.176, allocations: 35.89 kB / 0.8997 GB, free: 64.53 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.125e-05/0.1761, allocations: 59.67 kB / 0.8997 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.1762, allocations: 171.4 kB / 0.8999 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1763, allocations: 0 / 0.8999 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.473e-06/0.1763, allocations: 0 / 0.8999 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.1763, allocations: 0 / 0.8999 GB, free: 64.3 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004687/0.1767, allocations: 478.5 kB / 0.9004 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.1768, allocations: 8.031 kB / 0.9004 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.055e-05/0.1768, allocations: 38.75 kB / 0.9004 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.177, allocations: 28.83 kB / 0.9004 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.1771, allocations: 217.4 kB / 0.9006 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.885e-05/0.1772, allocations: 38.45 kB / 0.9007 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.1772, allocations: 15.94 kB / 0.9007 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000216/0.1774, allocations: 144.8 kB / 0.9008 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.1775, allocations: 0 / 0.9008 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.1775, allocations: 4 kB / 0.9008 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.1775, allocations: 11.98 kB / 0.9008 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001601/0.1777, allocations: 91.89 kB / 0.9009 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005962/0.1783, allocations: 0.6479 MB / 0.9016 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.1785, allocations: 62.48 kB / 0.9016 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.253e-05/0.1785, allocations: 32.91 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.1786, allocations: 4 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001448/0.1787, allocations: 143 kB / 0.9018 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.1787, allocations: 3.938 kB / 0.9018 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003013/0.179, allocations: 167.1 kB / 0.902 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.1791, allocations: 144.4 kB / 0.9021 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.1792, allocations: 178.9 kB / 0.9023 GB, free: 61.6 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.021e-05/0.1792, allocations: 29.7 kB / 0.9023 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.634e-05/0.1793, allocations: 131.8 kB / 0.9024 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.1793, allocations: 27.64 kB / 0.9025 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.698e-05/0.1793, allocations: 25.7 kB / 0.9025 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.249e-05/0.1794, allocations: 322.8 kB / 0.9028 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.522e-05/0.1795, allocations: 39.98 kB / 0.9028 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.965e-05/0.1796, allocations: 109.4 kB / 0.9029 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.1797, allocations: 242.3 kB / 0.9032 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1797, allocations: 0 / 0.9032 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002572/0.18, allocations: 245.1 kB / 0.9034 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.18, allocations: 67.34 kB / 0.9035 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.18, allocations: 4 kB / 0.9035 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1801, allocations: 4 kB / 0.9035 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-05/0.1802, allocations: 27.98 kB / 0.9035 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.1802, allocations: 12 kB / 0.9035 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.1803, allocations: 23.83 kB / 0.9035 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.1803, allocations: 12 kB / 0.9035 GB, free: 60.16 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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 8.435e-05/0.1804, allocations: 169.6 kB / 0.9037 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.799e-05/0.1804, allocations: 15.78 kB / 0.9037 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.609e-05/0.1805, allocations: 17.39 kB / 0.9037 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.1805, allocations: 0 / 0.9037 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1805, allocations: 7.938 kB / 0.9037 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1805, allocations: 0 / 0.9037 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001013/0.1806, allocations: 217.5 kB / 0.9039 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1806, allocations: 0 / 0.9039 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.978e-05/0.1807, allocations: 12 kB / 0.904 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1807, allocations: 3.938 kB / 0.904 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.1807, allocations: 4 kB / 0.904 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1807, allocations: 4 kB / 0.904 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.1807, allocations: 7.922 kB / 0.904 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.181, allocations: 218.7 kB / 0.9042 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.653e-05/0.181, allocations: 88.95 kB / 0.9043 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.1811, allocations: 3.938 kB / 0.9043 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.463e-05/0.1812, allocations: 15.98 kB / 0.9043 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.902e-05/0.1812, allocations: 8 kB / 0.9043 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.1812, allocations: 3.984 kB / 0.9043 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.506e-05/0.1813, allocations: 136.2 kB / 0.9044 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1813, allocations: 0 / 0.9044 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002051/0.1815, allocations: 35.94 kB / 0.9045 GB, free: 59.11 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0003948/0.1819, allocations: 0.7586 MB / 0.9052 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002237/0.1821, allocations: 230.7 kB / 0.9054 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1822, allocations: 4 kB / 0.9054 GB, free: 58.06 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 8.662e-05/0.1823, allocations: 103.4 kB / 0.9055 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.1825, allocations: 15.98 kB / 0.9055 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.184, allocations: 2 MB / 0.9075 GB, free: 55.78 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001221/0.1841, allocations: 0.716 MB / 0.9082 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.042e-05/0.1842, allocations: 20.64 kB / 0.9082 GB, free: 55.02 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.981e-05/0.1842, allocations: 35.42 kB / 0.9082 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of SimCode: time 2.31e-07/0.1842, allocations: 3.938 kB / 0.9083 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4947/0.6789, allocations: 2.746 MB / 0.9109 GB, free: 52.39 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/0.6791, allocations: 229.8 kB / 0.9112 GB, free: 52.12 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/2.391, allocations: 0 / 0.9112 GB, free: 52.12 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)