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.001065/0.001065, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 198.6 kB / 16.54 MB, free: 6.672 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.313/1.313, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00208/0.00208, allocations: 283 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9261/0.9261, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 94.03 kB / 0.5952 GB, free: 28.1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1641, allocations: 86.98 MB / 0.6802 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00389/0.168, allocations: 2.3 MB / 0.6824 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.1693, allocations: 0.7809 MB / 0.6832 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.1695, allocations: 4 kB / 0.6832 GB, free: 13.6 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006349/0.1701, allocations: 147.3 kB / 0.6833 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002257/0.1704, allocations: 63.61 kB / 0.6834 GB, free: 13.39 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001977/0.1706, allocations: 51.89 kB / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000236/0.1708, allocations: 163.5 kB / 0.6836 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002764/0.1711, allocations: 101 kB / 0.6837 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.1713, allocations: 75.7 kB / 0.6838 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.1714, allocations: 63.73 kB / 0.6838 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.804e-05/0.1715, allocations: 12 kB / 0.6838 GB, free: 12.94 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001404/0.1716, allocations: 51.89 kB / 0.6839 GB, free: 12.89 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.087e-05/0.1717, allocations: 39.84 kB / 0.6839 GB, free: 12.85 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.925e-05/0.1718, allocations: 67.67 kB / 0.684 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.172, allocations: 163.5 kB / 0.6841 GB, free: 12.62 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1721, allocations: 0 / 0.6841 GB, free: 12.62 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1721, allocations: 0 / 0.6841 GB, free: 12.62 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.1721, allocations: 0 / 0.6841 GB, free: 12.62 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.0007292/0.1728, allocations: 0.4984 MB / 0.6846 GB, free: 12.06 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.1729, allocations: 8.031 kB / 0.6846 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002137/0.1731, allocations: 24.83 kB / 0.6847 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.1733, allocations: 212 kB / 0.6849 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.043e-05/0.1734, allocations: 34.45 kB / 0.6849 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.063e-05/0.1734, allocations: 16.12 kB / 0.6849 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.1737, allocations: 146.6 kB / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.1737, allocations: 0 / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.1738, allocations: 8 kB / 0.6851 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.1738, allocations: 7.938 kB / 0.6851 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.174, allocations: 83.94 kB / 0.6851 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000829/0.1748, allocations: 0.6441 MB / 0.6858 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.1751, allocations: 58.44 kB / 0.6858 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.545e-05/0.1752, allocations: 32.91 kB / 0.6859 GB, free: 10.67 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.1752, allocations: 4 kB / 0.6859 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001941/0.1754, allocations: 142.8 kB / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.1754, allocations: 3.938 kB / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003596/0.1758, allocations: 167.2 kB / 0.6862 GB, free: 10.32 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.3e-05/0.1758, allocations: 136.5 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.176, allocations: 175.4 kB / 0.6865 GB, free: 9.977 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.176, allocations: 29.7 kB / 0.6865 GB, free: 9.941 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.509e-05/0.1761, allocations: 147.7 kB / 0.6866 GB, free: 9.789 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.1762, allocations: 19.73 kB / 0.6866 GB, free: 9.77 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.683e-05/0.1762, allocations: 37.7 kB / 0.6867 GB, free: 9.727 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1763, allocations: 326.8 kB / 0.687 GB, free: 9.398 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.942e-05/0.1764, allocations: 39.97 kB / 0.687 GB, free: 9.359 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.1766, allocations: 114.3 kB / 0.6871 GB, free: 9.215 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000249/0.1768, allocations: 226.3 kB / 0.6874 GB, free: 8.941 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1768, allocations: 0 / 0.6874 GB, free: 8.941 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003511/0.1772, allocations: 244.7 kB / 0.6876 GB, free: 8.684 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.423e-05/0.1773, allocations: 63.39 kB / 0.6876 GB, free: 8.609 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.1773, allocations: 7.984 kB / 0.6877 GB, free: 8.602 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.1773, allocations: 3.984 kB / 0.6877 GB, free: 8.598 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.1774, allocations: 31.98 kB / 0.6877 GB, free: 8.566 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.1774, allocations: 8.25 kB / 0.6877 GB, free: 8.559 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.1776, allocations: 27.83 kB / 0.6877 GB, free: 8.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.1776, allocations: 8 kB / 0.6877 GB, free: 8.523 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.000131/0.1777, allocations: 167 kB / 0.6879 GB, free: 8.348 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.1778, allocations: 15.81 kB / 0.6879 GB, free: 8.332 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.072e-05/0.1778, allocations: 17.34 kB / 0.6879 GB, free: 8.316 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1778, allocations: 0 / 0.6879 GB, free: 8.316 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1778, allocations: 0 / 0.6879 GB, free: 8.316 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1778, allocations: 8 kB / 0.6879 GB, free: 8.309 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001671/0.178, allocations: 213.5 kB / 0.6881 GB, free: 8.051 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.178, allocations: 0 / 0.6881 GB, free: 8.051 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.096e-05/0.1781, allocations: 15.92 kB / 0.6881 GB, free: 8.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1781, allocations: 0 / 0.6881 GB, free: 8.035 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.1781, allocations: 11.94 kB / 0.6882 GB, free: 8.023 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1781, allocations: 0 / 0.6882 GB, free: 8.023 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1781, allocations: 0 / 0.6882 GB, free: 8.023 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003673/0.1785, allocations: 218.9 kB / 0.6884 GB, free: 7.785 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.128e-05/0.1786, allocations: 85.05 kB / 0.6884 GB, free: 7.684 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.1786, allocations: 7.938 kB / 0.6885 GB, free: 7.676 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.179e-05/0.1787, allocations: 7.984 kB / 0.6885 GB, free: 7.668 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.087e-05/0.1788, allocations: 19.91 kB / 0.6885 GB, free: 7.648 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.1788, allocations: 8 kB / 0.6885 GB, free: 7.641 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001169/0.1789, allocations: 131.2 kB / 0.6886 GB, free: 7.512 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1789, allocations: 0 / 0.6886 GB, free: 7.512 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.1792, allocations: 39.98 kB / 0.6887 GB, free: 7.473 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 9.108e-05/0.1793, allocations: 105.4 kB / 0.6888 GB, free: 7.363 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003042/0.1796, allocations: 210.6 kB / 0.689 GB, free: 7.133 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1796, allocations: 0 / 0.689 GB, free: 7.133 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.1797, allocations: 107.4 kB / 0.6891 GB, free: 7.016 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002143/0.1799, allocations: 22.56 kB / 0.6891 GB, free: 6.996 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005439/0.1805, allocations: 294.6 kB / 0.6894 GB, free: 6.68 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.1808, allocations: 0.7119 MB / 0.6901 GB, free: 5.941 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.752e-05/0.1809, allocations: 24.62 kB / 0.6901 GB, free: 5.918 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.966e-05/0.1809, allocations: 11.44 kB / 0.6901 GB, free: 5.906 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1809, allocations: 0 / 0.6901 GB, free: 5.906 MB / 494.1 MB Notification: Performance of Templates: time 0.003891/0.1848, allocations: 1.4 MB / 0.6915 GB, free: 4.523 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)