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.001768/0.001768, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001303/0.001304, allocations: 198.7 kB / 16.26 MB, free: 6.625 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.434/1.434, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002502/0.002502, allocations: 286.5 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.106/1.106, allocations: 178.6 MB / 0.507 GB, free: 4.734 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002803/0.002803, allocations: 106 kB / 0.6059 GB, free: 25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1725, allocations: 89.15 MB / 0.693 GB, free: 4.703 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003902/0.1765, allocations: 2.355 MB / 0.6953 GB, free: 2.344 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.1778, allocations: 0.7784 MB / 0.696 GB, free: 1.562 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.817e-05/0.1779, allocations: 3.938 kB / 0.696 GB, free: 1.559 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005458/0.1784, allocations: 140.1 kB / 0.6962 GB, free: 1.422 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001634/0.1786, allocations: 52.55 kB / 0.6962 GB, free: 1.371 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001527/0.1788, allocations: 53.14 kB / 0.6963 GB, free: 1.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002434/0.179, allocations: 159.5 kB / 0.6964 GB, free: 1.164 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002696/0.1793, allocations: 109.5 kB / 0.6965 GB, free: 1.062 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.1794, allocations: 71.7 kB / 0.6966 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001444/0.1796, allocations: 72.39 kB / 0.6967 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.419e-05/0.1796, allocations: 16 kB / 0.6967 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.1797, allocations: 47.91 kB / 0.6967 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.823e-05/0.1798, allocations: 35.89 kB / 0.6968 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.197e-05/0.1799, allocations: 67.66 kB / 0.6968 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002352/0.1801, allocations: 171.4 kB / 0.697 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1801, allocations: 0 / 0.697 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1802, allocations: 0 / 0.697 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1802, allocations: 4 kB / 0.697 GB, free: 0.5859 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.0007268/0.1809, allocations: 490.5 kB / 0.6975 GB, free: 48 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.1809, allocations: 12.03 kB / 0.6975 GB, free: 36 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001982/0.1811, allocations: 28.73 kB / 0.6975 GB, free: 8 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.1814, allocations: 216 kB / 0.6977 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.351e-05/0.1815, allocations: 34.45 kB / 0.6977 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.881e-05/0.1815, allocations: 12.12 kB / 0.6977 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/0.1818, allocations: 145.1 kB / 0.6979 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1819, allocations: 0 / 0.6979 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.1819, allocations: 12 kB / 0.6979 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/0.1819, allocations: 4 kB / 0.6979 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000209/0.1821, allocations: 83.89 kB / 0.698 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009318/0.1831, allocations: 0.6479 MB / 0.6986 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002246/0.1833, allocations: 58.55 kB / 0.6987 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.994e-05/0.1834, allocations: 32.84 kB / 0.6987 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.1834, allocations: 0 / 0.6987 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002039/0.1836, allocations: 138.8 kB / 0.6988 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.1836, allocations: 0 / 0.6988 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0003816/0.184, allocations: 171.3 kB / 0.699 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/0.1842, allocations: 136.5 kB / 0.6991 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.1844, allocations: 179.4 kB / 0.6993 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.1844, allocations: 29.7 kB / 0.6993 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1845, allocations: 139.7 kB / 0.6995 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/0.1846, allocations: 23.73 kB / 0.6995 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.769e-05/0.1846, allocations: 45.61 kB / 0.6995 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.1848, allocations: 322.8 kB / 0.6998 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.706e-05/0.1849, allocations: 35.98 kB / 0.6999 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001711/0.1851, allocations: 115.8 kB / 0.7 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.1854, allocations: 230.3 kB / 0.7002 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.1854, allocations: 4 kB / 0.7002 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000409/0.1858, allocations: 240.7 kB / 0.7004 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.33e-05/0.1859, allocations: 67.34 kB / 0.7005 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.1859, allocations: 7.938 kB / 0.7005 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.1859, allocations: 0 / 0.7005 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.1861, allocations: 27.98 kB / 0.7005 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.1861, allocations: 7.938 kB / 0.7005 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.1863, allocations: 31.73 kB / 0.7006 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.1863, allocations: 12.28 kB / 0.7006 GB, free: 12.49 MB / 0.4981 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.0001504/0.1864, allocations: 160.6 kB / 0.7007 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.549e-05/0.1865, allocations: 11.91 kB / 0.7007 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.546e-05/0.1865, allocations: 21.33 kB / 0.7008 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1865, allocations: 0 / 0.7008 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.1865, allocations: 0 / 0.7008 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1865, allocations: 4 kB / 0.7008 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002067/0.1867, allocations: 217.6 kB / 0.701 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1867, allocations: 7.875 kB / 0.701 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.024e-05/0.1868, allocations: 12 kB / 0.701 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1868, allocations: 0 / 0.701 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.1869, allocations: 11.92 kB / 0.701 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1869, allocations: 0 / 0.701 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1869, allocations: 0 / 0.701 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004033/0.1873, allocations: 210.6 kB / 0.7012 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.829e-05/0.1874, allocations: 85.05 kB / 0.7013 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.011e-05/0.1874, allocations: 12 kB / 0.7013 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.456e-05/0.1875, allocations: 7.984 kB / 0.7013 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.784e-05/0.1876, allocations: 8 kB / 0.7013 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.1876, allocations: 7.984 kB / 0.7013 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001136/0.1877, allocations: 131.2 kB / 0.7014 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1877, allocations: 0 / 0.7014 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002508/0.188, allocations: 39.84 kB / 0.7015 GB, free: 11.45 MB / 0.4981 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.0001206/0.1881, allocations: 103.2 kB / 0.7016 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003425/0.1884, allocations: 218.6 kB / 0.7018 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.1885, allocations: 4 kB / 0.7018 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.1886, allocations: 99.39 kB / 0.7019 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.1888, allocations: 23.92 kB / 0.7019 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006995/0.1895, allocations: 331.8 kB / 0.7022 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/0.1899, allocations: 0.7232 MB / 0.7029 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.867e-05/0.19, allocations: 16.64 kB / 0.7029 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.663e-05/0.1901, allocations: 19.44 kB / 0.703 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1901, allocations: 0 / 0.703 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of Templates: time 0.004605/0.1947, allocations: 1.313 MB / 0.7042 GB, free: 8.539 MB / 0.4981 GB 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)