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: translateModel(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007878/0.0007876, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008143/0.0008144, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001755/0.001755, allocations: 273.5 kB / 291.3 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9716/0.9716, allocations: 169.5 MB / 0.5 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000428/0.0004281, allocations: 16.08 kB / 0.598 GB, free: 28.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.1854, allocations: 88.55 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003427/0.1889, allocations: 1.941 MB / 0.6864 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.1904, allocations: 0.7243 MB / 0.6871 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.752e-05/0.1906, allocations: 4 kB / 0.6871 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.1907, allocations: 15.86 kB / 0.6871 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002605/0.191, allocations: 47.73 kB / 0.6871 GB, free: 12.72 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.1912, allocations: 42.2 kB / 0.6872 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.1915, allocations: 167.4 kB / 0.6873 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002866/0.1918, allocations: 182.8 kB / 0.6875 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.1919, allocations: 57.7 kB / 0.6876 GB, free: 12.26 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.1921, allocations: 67.62 kB / 0.6876 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.608e-05/0.1921, allocations: 8 kB / 0.6876 GB, free: 12.18 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.367e-05/0.1922, allocations: 23.98 kB / 0.6877 GB, free: 12.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.156e-05/0.1923, allocations: 28.5 kB / 0.6877 GB, free: 12.13 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.748e-05/0.1924, allocations: 49.64 kB / 0.6877 GB, free: 12.08 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.1926, allocations: 128.4 kB / 0.6879 GB, free: 11.95 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1926, allocations: 0 / 0.6879 GB, free: 11.95 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1926, allocations: 1.188 kB / 0.6879 GB, free: 11.95 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.1926, allocations: 0 / 0.6879 GB, free: 11.95 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.000784/0.1934, allocations: 471.7 kB / 0.6883 GB, free: 11.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.1935, allocations: 8.031 kB / 0.6883 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002654/0.1937, allocations: 33.09 kB / 0.6884 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002909/0.194, allocations: 202.9 kB / 0.6885 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.289e-05/0.1941, allocations: 37.89 kB / 0.6886 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.434e-05/0.1941, allocations: 14.91 kB / 0.6886 GB, free: 11.1 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.1945, allocations: 148.9 kB / 0.6887 GB, free: 10.94 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.1945, allocations: 3.938 kB / 0.6887 GB, free: 10.94 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.774e-05/0.1946, allocations: 19.94 kB / 0.6888 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.101e-05/0.1946, allocations: 5.812 kB / 0.6888 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002786/0.1949, allocations: 88.45 kB / 0.6888 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009882/0.1959, allocations: 0.641 MB / 0.6895 GB, free: 10.13 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/0.1961, allocations: 60.64 kB / 0.6895 GB, free: 10.06 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.136e-05/0.1962, allocations: 33.5 kB / 0.6896 GB, free: 10.03 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.264e-05/0.1962, allocations: 4 kB / 0.6896 GB, free: 10.02 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001837/0.1964, allocations: 142.7 kB / 0.6897 GB, free: 9.859 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.1964, allocations: 0 / 0.6897 GB, free: 9.859 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003311/0.1968, allocations: 171.1 kB / 0.6899 GB, free: 9.68 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/0.1968, allocations: 144.5 kB / 0.69 GB, free: 9.508 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.197, allocations: 179.3 kB / 0.6902 GB, free: 9.324 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.197, allocations: 25.7 kB / 0.6902 GB, free: 9.293 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.92e-05/0.1971, allocations: 135.8 kB / 0.6903 GB, free: 9.152 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.1971, allocations: 23.73 kB / 0.6904 GB, free: 9.129 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.925e-06/0.1971, allocations: 4 kB / 0.6904 GB, free: 9.125 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.922e-05/0.1973, allocations: 326.8 kB / 0.6907 GB, free: 8.797 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.317e-05/0.1973, allocations: 31.98 kB / 0.6907 GB, free: 8.766 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.1975, allocations: 115.1 kB / 0.6908 GB, free: 8.621 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.1976, allocations: 111.3 kB / 0.6909 GB, free: 8.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1976, allocations: 4 kB / 0.6909 GB, free: 8.496 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003405/0.198, allocations: 248.6 kB / 0.6912 GB, free: 8.234 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.481e-05/0.198, allocations: 59.41 kB / 0.6912 GB, free: 8.164 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.198, allocations: 3.953 kB / 0.6912 GB, free: 8.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.1981, allocations: 4 kB / 0.6912 GB, free: 8.156 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.1982, allocations: 31.92 kB / 0.6913 GB, free: 8.125 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1982, allocations: 7.984 kB / 0.6913 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.1983, allocations: 32.16 kB / 0.6913 GB, free: 8.086 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.1984, allocations: 8 kB / 0.6913 GB, free: 8.078 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 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.1985, allocations: 170 kB / 0.6915 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.1985, allocations: 15.81 kB / 0.6915 GB, free: 7.883 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.1986, allocations: 17.39 kB / 0.6915 GB, free: 7.867 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1986, allocations: 7.891 kB / 0.6915 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1986, allocations: 0 / 0.6915 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1986, allocations: 4 kB / 0.6915 GB, free: 7.855 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.1988, allocations: 213.6 kB / 0.6917 GB, free: 7.598 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1988, allocations: 0 / 0.6917 GB, free: 7.598 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.658e-05/0.1989, allocations: 8 kB / 0.6917 GB, free: 7.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1989, allocations: 0 / 0.6917 GB, free: 7.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.1989, allocations: 7.984 kB / 0.6917 GB, free: 7.582 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1989, allocations: 0 / 0.6917 GB, free: 7.582 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1989, allocations: 3.953 kB / 0.6917 GB, free: 7.578 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003698/0.1993, allocations: 222.5 kB / 0.6919 GB, free: 7.336 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.67e-05/0.1993, allocations: 89.05 kB / 0.692 GB, free: 7.23 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.1994, allocations: 4 kB / 0.692 GB, free: 7.227 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.776e-05/0.1995, allocations: 11.98 kB / 0.692 GB, free: 7.215 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.202e-05/0.1995, allocations: 15.94 kB / 0.6921 GB, free: 7.199 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.1996, allocations: 4.062 kB / 0.6921 GB, free: 7.195 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001061/0.1997, allocations: 136.3 kB / 0.6922 GB, free: 7.062 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1997, allocations: 0 / 0.6922 GB, free: 7.062 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.1999, allocations: 27.94 kB / 0.6922 GB, free: 7.035 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 (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.0001025/0.2, allocations: 107.3 kB / 0.6923 GB, free: 6.922 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002944/0.2003, allocations: 223.2 kB / 0.6925 GB, free: 6.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2003, allocations: 4 kB / 0.6925 GB, free: 6.676 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001222/0.2005, allocations: 111.3 kB / 0.6926 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.0002181/0.2007, allocations: 20.41 kB / 0.6927 GB, free: 6.539 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005229/0.2012, allocations: 333.9 kB / 0.693 GB, free: 6.188 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.2015, allocations: 0.7199 MB / 0.6937 GB, free: 5.441 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.249e-05/0.2016, allocations: 20.62 kB / 0.6937 GB, free: 5.422 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.897e-05/0.2016, allocations: 11.44 kB / 0.6937 GB, free: 5.41 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2016, allocations: 0 / 0.6937 GB, free: 5.41 MB / 494.1 MB Notification: Performance of Templates: time 0.003608/0.2052, allocations: 1.205 MB / 0.6949 GB, free: 4.219 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (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 & ./BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)