Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="BuildingSystems_BuildingSystems_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.001315/0.001315, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.001561/0.001561, allocations: 194.5 kB / 16.26 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002028/0.002028, allocations: 278.5 kB / 290.3 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9468/0.9468, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 97.03 kB / 0.5948 GB, free: 28.1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1677, allocations: 86.99 MB / 0.6797 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003411/0.1711, allocations: 2.342 MB / 0.682 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.1723, allocations: 0.7684 MB / 0.6828 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.21e-05/0.1724, allocations: 4 kB / 0.6828 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005486/0.1729, allocations: 141 kB / 0.6829 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001635/0.1731, allocations: 56.36 kB / 0.683 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001439/0.1732, allocations: 53.33 kB / 0.683 GB, free: 13.63 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000211/0.1735, allocations: 155.5 kB / 0.6832 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002689/0.1737, allocations: 109 kB / 0.6833 GB, free: 13.37 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.1739, allocations: 71.7 kB / 0.6833 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.174, allocations: 71.73 kB / 0.6834 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.174, allocations: 12 kB / 0.6834 GB, free: 13.22 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.1741, allocations: 55.89 kB / 0.6835 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.972e-05/0.1742, allocations: 39.84 kB / 0.6835 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.314e-05/0.1743, allocations: 67.66 kB / 0.6836 GB, free: 13.06 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002211/0.1745, allocations: 167.5 kB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.1745, allocations: 4 kB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1745, allocations: 0 / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1746, allocations: 0 / 0.6837 GB, free: 12.89 MB / 494.1 MB 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.0006772/0.1752, allocations: 498.4 kB / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.1753, allocations: 8.031 kB / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.044e-05/0.1753, allocations: 42.73 kB / 0.6843 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001932/0.1755, allocations: 28.83 kB / 0.6843 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002105/0.1757, allocations: 212 kB / 0.6845 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.002e-05/0.1758, allocations: 42.45 kB / 0.6845 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.977e-05/0.1758, allocations: 15.94 kB / 0.6845 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002817/0.1761, allocations: 148.1 kB / 0.6847 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.1762, allocations: 0 / 0.6847 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.1762, allocations: 0 / 0.6847 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.1762, allocations: 7.938 kB / 0.6847 GB, free: 11.78 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.1764, allocations: 87.94 kB / 0.6848 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007865/0.1772, allocations: 0.644 MB / 0.6854 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.1774, allocations: 54.56 kB / 0.6855 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.163e-05/0.1775, allocations: 28.91 kB / 0.6855 GB, free: 10.89 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.1775, allocations: 4 kB / 0.6855 GB, free: 10.89 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.1777, allocations: 146.9 kB / 0.6856 GB, free: 10.72 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.1777, allocations: 0 / 0.6856 GB, free: 10.72 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003494/0.1781, allocations: 167 kB / 0.6858 GB, free: 10.55 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.1782, allocations: 132.5 kB / 0.6859 GB, free: 10.39 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.1783, allocations: 178.4 kB / 0.6861 GB, free: 10.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.1784, allocations: 29.7 kB / 0.6861 GB, free: 10.17 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.949e-05/0.1785, allocations: 143.7 kB / 0.6862 GB, free: 10.02 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.488e-05/0.1785, allocations: 23.73 kB / 0.6863 GB, free: 9.996 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.704e-05/0.1785, allocations: 37.7 kB / 0.6863 GB, free: 9.953 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.1787, allocations: 326.8 kB / 0.6866 GB, free: 9.625 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.631e-05/0.1788, allocations: 43.88 kB / 0.6867 GB, free: 9.582 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.1789, allocations: 119.2 kB / 0.6868 GB, free: 9.434 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.1791, allocations: 222.4 kB / 0.687 GB, free: 9.164 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1791, allocations: 4 kB / 0.687 GB, free: 9.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003443/0.1795, allocations: 240.7 kB / 0.6872 GB, free: 8.906 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.821e-05/0.1795, allocations: 67.33 kB / 0.6873 GB, free: 8.828 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.1796, allocations: 4 kB / 0.6873 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.1796, allocations: 4 kB / 0.6873 GB, free: 8.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.1797, allocations: 27.92 kB / 0.6873 GB, free: 8.793 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.1797, allocations: 4 kB / 0.6873 GB, free: 8.789 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.1799, allocations: 32.14 kB / 0.6874 GB, free: 8.758 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.1799, allocations: 8 kB / 0.6874 GB, free: 8.75 MB / 494.1 MB 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.000152/0.18, allocations: 168.8 kB / 0.6875 GB, free: 8.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.625e-05/0.1801, allocations: 19.75 kB / 0.6875 GB, free: 8.551 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.763e-05/0.1801, allocations: 9.406 kB / 0.6875 GB, free: 8.543 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1801, allocations: 4 kB / 0.6876 GB, free: 8.539 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1801, allocations: 0 / 0.6876 GB, free: 8.539 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1801, allocations: 3.938 kB / 0.6876 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001835/0.1803, allocations: 213.6 kB / 0.6878 GB, free: 8.277 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1803, allocations: 3.984 kB / 0.6878 GB, free: 8.273 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.071e-05/0.1804, allocations: 11.98 kB / 0.6878 GB, free: 8.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.1804, allocations: 3.938 kB / 0.6878 GB, free: 8.258 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.1804, allocations: 4 kB / 0.6878 GB, free: 8.254 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1805, allocations: 0 / 0.6878 GB, free: 8.254 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1805, allocations: 0 / 0.6878 GB, free: 8.254 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003905/0.1809, allocations: 226.5 kB / 0.688 GB, free: 8.008 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.137e-05/0.1809, allocations: 88.98 kB / 0.6881 GB, free: 7.902 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.181, allocations: 11.94 kB / 0.6881 GB, free: 7.891 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.356e-05/0.1811, allocations: 11.98 kB / 0.6881 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.812e-05/0.1811, allocations: 7.984 kB / 0.6881 GB, free: 7.871 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.1811, allocations: 4 kB / 0.6881 GB, free: 7.867 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001039/0.1813, allocations: 137.3 kB / 0.6882 GB, free: 7.734 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1813, allocations: 0 / 0.6882 GB, free: 7.734 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002389/0.1815, allocations: 35.84 kB / 0.6883 GB, free: 7.699 MB / 494.1 MB 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.0006295/0.1821, allocations: 0.7585 MB / 0.689 GB, free: 6.906 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000312/0.1825, allocations: 211.3 kB / 0.6892 GB, free: 6.676 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1825, allocations: 4 kB / 0.6892 GB, free: 6.672 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.1826, allocations: 107.4 kB / 0.6893 GB, free: 6.555 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.1828, allocations: 12 kB / 0.6893 GB, free: 6.543 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.1849, allocations: 1.997 MB / 0.6913 GB, free: 4.391 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.1852, allocations: 0.7197 MB / 0.692 GB, free: 3.645 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.525e-05/0.1853, allocations: 20.41 kB / 0.692 GB, free: 3.625 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.185e-05/0.1854, allocations: 39.42 kB / 0.6921 GB, free: 3.586 MB / 494.1 MB Notification: Performance of SimCode: time 1.684e-06/0.1854, allocations: 4.109 kB / 0.6921 GB, free: 3.582 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01278/0.1982, allocations: 2.911 MB / 0.6949 GB, free: 0.832 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001686/0.1984, allocations: 230.9 kB / 0.6951 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/1.977, allocations: 0 / 0.6951 GB, free: 0.5664 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)