Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",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.001362/0.001362, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001394/0.001394, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.091/1.091, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.441/1.441, allocations: 292.3 MB / 0.5486 GB, free: 13.62 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.00151/0.00151, allocations: 68.45 kB / 0.6711 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1664/0.168, allocations: 114.5 MB / 0.783 GB, free: 13.85 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00308/0.1711, allocations: 2.371 MB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001012/0.1721, allocations: 0.819 MB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.773e-05/0.1722, allocations: 4 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004542/0.1727, allocations: 131.5 kB / 0.7862 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.1728, allocations: 59.72 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001197/0.1729, allocations: 43.91 kB / 0.7863 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000179/0.1731, allocations: 163.5 kB / 0.7865 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002321/0.1734, allocations: 105.3 kB / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.325e-05/0.1735, allocations: 71.72 kB / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.1736, allocations: 63.75 kB / 0.7867 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.067e-05/0.1736, allocations: 12 kB / 0.7867 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.011e-05/0.1737, allocations: 55.88 kB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.431e-05/0.1738, allocations: 39.84 kB / 0.7868 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.964e-05/0.1738, allocations: 71.59 kB / 0.7869 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001943/0.174, allocations: 167.5 kB / 0.787 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1741, allocations: 0 / 0.787 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.553e-06/0.1741, allocations: 0 / 0.787 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.733e-06/0.1741, allocations: 3.984 kB / 0.787 GB, free: 9.66 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005621/0.1746, allocations: 494.5 kB / 0.7875 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.1747, allocations: 12.03 kB / 0.7875 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.185e-05/0.1747, allocations: 46.67 kB / 0.7875 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.1749, allocations: 24.73 kB / 0.7876 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001874/0.1751, allocations: 216.1 kB / 0.7878 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.2e-05/0.1751, allocations: 38.45 kB / 0.7878 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.527e-05/0.1752, allocations: 11.94 kB / 0.7878 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002459/0.1754, allocations: 151.2 kB / 0.788 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.1754, allocations: 3.938 kB / 0.788 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.1755, allocations: 8 kB / 0.788 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.1755, allocations: 4 kB / 0.788 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001675/0.1757, allocations: 83.94 kB / 0.7881 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007073/0.1764, allocations: 0.6402 MB / 0.7887 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.1766, allocations: 62.55 kB / 0.7888 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.135e-05/0.1766, allocations: 32.84 kB / 0.7888 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.497e-06/0.1767, allocations: 0 / 0.7888 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001538/0.1768, allocations: 135 kB / 0.7889 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.1768, allocations: 0 / 0.7889 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003143/0.1771, allocations: 167 kB / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.24e-05/0.1772, allocations: 140.5 kB / 0.7892 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.1774, allocations: 182.4 kB / 0.7894 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.1774, allocations: 29.7 kB / 0.7894 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.549e-05/0.1775, allocations: 135.7 kB / 0.7895 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.062e-05/0.1775, allocations: 19.8 kB / 0.7896 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.065e-05/0.1776, allocations: 45.61 kB / 0.7896 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.1776, allocations: 318.8 kB / 0.7899 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.171e-05/0.1777, allocations: 43.94 kB / 0.7899 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.1779, allocations: 109.4 kB / 0.79 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.1781, allocations: 230.3 kB / 0.7903 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1781, allocations: 0 / 0.7903 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000305/0.1784, allocations: 248.6 kB / 0.7905 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.1784, allocations: 63.34 kB / 0.7906 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1785, allocations: 8 kB / 0.7906 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.1785, allocations: 4 kB / 0.7906 GB, free: 5.594 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.1786, allocations: 32.23 kB / 0.7906 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.1786, allocations: 11.98 kB / 0.7906 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.1787, allocations: 23.75 kB / 0.7906 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.1787, allocations: 8 kB / 0.7906 GB, free: 5.52 MB / 0.6075 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 0.0001061/0.1789, allocations: 169 kB / 0.7908 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.934e-05/0.1789, allocations: 15.84 kB / 0.7908 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.668e-05/0.1789, allocations: 17.39 kB / 0.7908 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.1789, allocations: 0 / 0.7908 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.1789, allocations: 4 kB / 0.7908 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1789, allocations: 0 / 0.7908 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.1791, allocations: 217.6 kB / 0.7911 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1791, allocations: 0 / 0.7911 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.267e-05/0.1792, allocations: 12 kB / 0.7911 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.1792, allocations: 7.922 kB / 0.7911 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.1792, allocations: 0 / 0.7911 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1792, allocations: 0 / 0.7911 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1792, allocations: 0 / 0.7911 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003308/0.1796, allocations: 226.6 kB / 0.7913 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.1796, allocations: 85.05 kB / 0.7914 GB, free: 4.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.1796, allocations: 3.938 kB / 0.7914 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.888e-05/0.1797, allocations: 11.98 kB / 0.7914 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.696e-05/0.1798, allocations: 11.98 kB / 0.7914 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-06/0.1798, allocations: 0 / 0.7914 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.167e-05/0.1799, allocations: 140.8 kB / 0.7915 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1799, allocations: 0 / 0.7915 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002181/0.1801, allocations: 35.97 kB / 0.7916 GB, free: 4.473 MB / 0.6075 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.0005229/0.1806, allocations: 0.7468 MB / 0.7923 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002692/0.1809, allocations: 227.1 kB / 0.7925 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1809, allocations: 0 / 0.7925 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.181, allocations: 103.3 kB / 0.7926 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001936/0.1812, allocations: 26.52 kB / 0.7926 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.1831, allocations: 1.995 MB / 0.7946 GB, free: 1.168 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.1833, allocations: 0.7158 MB / 0.7953 GB, free: 436 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.587e-05/0.1834, allocations: 12.64 kB / 0.7953 GB, free: 420 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.355e-05/0.1834, allocations: 51.36 kB / 0.7953 GB, free: 368 kB / 0.6075 GB Notification: Performance of SimCode: time 2.01e-07/0.1834, allocations: 0 / 0.7953 GB, free: 368 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.737/1.92, allocations: 2.891 MB / 0.7982 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/1.92, allocations: 201.3 kB / 0.7984 GB, free: 13.35 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.214/7.134, allocations: 4 kB / 0.7984 GB, free: 13.34 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)