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.001392/0.001392, allocations: 106.9 kB / 16.36 MB, free: 5.824 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.001491/0.001491, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.288/1.288, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002273/0.002273, allocations: 292.2 kB / 291.4 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9185/0.9185, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 94.91 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1452, allocations: 86.97 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003472/0.1487, allocations: 2.3 MB / 0.6838 GB, free: 5.137 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.1498, allocations: 0.787 MB / 0.6846 GB, free: 4.344 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.057e-05/0.1499, allocations: 0 / 0.6846 GB, free: 4.344 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005185/0.1505, allocations: 154.2 kB / 0.6847 GB, free: 4.195 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001637/0.1506, allocations: 59.61 kB / 0.6848 GB, free: 4.137 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001437/0.1508, allocations: 59.86 kB / 0.6849 GB, free: 4.078 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.151, allocations: 155.5 kB / 0.685 GB, free: 3.926 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000245/0.1513, allocations: 105 kB / 0.6851 GB, free: 3.824 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.1514, allocations: 71.7 kB / 0.6852 GB, free: 3.754 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.1515, allocations: 67.69 kB / 0.6852 GB, free: 3.688 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.31e-05/0.1516, allocations: 12 kB / 0.6853 GB, free: 3.676 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.1517, allocations: 51.89 kB / 0.6853 GB, free: 3.625 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.272e-05/0.1517, allocations: 35.91 kB / 0.6853 GB, free: 3.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.356e-05/0.1518, allocations: 71.66 kB / 0.6854 GB, free: 3.52 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002131/0.152, allocations: 159.5 kB / 0.6856 GB, free: 3.363 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1521, allocations: 4 kB / 0.6856 GB, free: 3.359 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1521, allocations: 7.938 kB / 0.6856 GB, free: 3.352 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1521, allocations: 0 / 0.6856 GB, free: 3.352 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.0006384/0.1527, allocations: 494.5 kB / 0.686 GB, free: 2.809 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.1528, allocations: 8.031 kB / 0.686 GB, free: 2.801 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/0.153, allocations: 24.75 kB / 0.6861 GB, free: 2.777 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.1532, allocations: 212.1 kB / 0.6863 GB, free: 2.531 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.043e-05/0.1533, allocations: 42.39 kB / 0.6863 GB, free: 2.484 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.052e-05/0.1533, allocations: 16.12 kB / 0.6863 GB, free: 2.469 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/0.1536, allocations: 149.2 kB / 0.6865 GB, free: 2.309 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1536, allocations: 0 / 0.6865 GB, free: 2.309 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.1536, allocations: 0 / 0.6865 GB, free: 2.309 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.1537, allocations: 8 kB / 0.6865 GB, free: 2.301 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.1539, allocations: 93 kB / 0.6866 GB, free: 2.211 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008015/0.1547, allocations: 0.6402 MB / 0.6872 GB, free: 1.508 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002049/0.1549, allocations: 50.56 kB / 0.6872 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.365e-05/0.155, allocations: 28.91 kB / 0.6873 GB, free: 1.418 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.16e-05/0.155, allocations: 4 kB / 0.6873 GB, free: 1.414 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.1552, allocations: 150.7 kB / 0.6874 GB, free: 1.242 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.1552, allocations: 0 / 0.6874 GB, free: 1.242 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003573/0.1556, allocations: 163.3 kB / 0.6876 GB, free: 1.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.332e-05/0.1557, allocations: 140.5 kB / 0.6877 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.1558, allocations: 179.4 kB / 0.6879 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.1559, allocations: 29.7 kB / 0.6879 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.852e-05/0.1559, allocations: 139.8 kB / 0.688 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/0.156, allocations: 23.66 kB / 0.6881 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.609e-05/0.156, allocations: 33.7 kB / 0.6881 GB, free: 488 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1562, allocations: 326.8 kB / 0.6884 GB, free: 152 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.939e-05/0.1563, allocations: 35.97 kB / 0.6884 GB, free: 116 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2448/0.4011, allocations: 115.7 kB / 0.6885 GB, free: 18.17 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002894/0.4014, allocations: 225 kB / 0.6888 GB, free: 17.99 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.4014, allocations: 0.5625 kB / 0.6888 GB, free: 17.99 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003847/0.4018, allocations: 252.4 kB / 0.689 GB, free: 17.89 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.863e-05/0.4019, allocations: 61.34 kB / 0.6891 GB, free: 17.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.4019, allocations: 5.562 kB / 0.6891 GB, free: 17.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.4019, allocations: 3.672 kB / 0.6891 GB, free: 17.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.402, allocations: 27.78 kB / 0.6891 GB, free: 17.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.4021, allocations: 9.203 kB / 0.6891 GB, free: 17.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.4022, allocations: 26.8 kB / 0.6891 GB, free: 17.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.4022, allocations: 10.53 kB / 0.6891 GB, free: 17.82 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.0001153/0.4024, allocations: 169 kB / 0.6893 GB, free: 17.68 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.4024, allocations: 13.81 kB / 0.6893 GB, free: 17.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.08e-05/0.4024, allocations: 14.11 kB / 0.6893 GB, free: 17.67 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.4024, allocations: 2.922 kB / 0.6893 GB, free: 17.67 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4025, allocations: 0 / 0.6893 GB, free: 17.67 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.4025, allocations: 0.5156 kB / 0.6893 GB, free: 17.67 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.4026, allocations: 220.8 kB / 0.6895 GB, free: 17.48 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4026, allocations: 4.688 kB / 0.6895 GB, free: 17.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.51e-05/0.4027, allocations: 16.3 kB / 0.6896 GB, free: 17.47 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.4027, allocations: 1.844 kB / 0.6896 GB, free: 17.47 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.4027, allocations: 1.906 kB / 0.6896 GB, free: 17.47 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.4027, allocations: 1.719 kB / 0.6896 GB, free: 17.47 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.4027, allocations: 1.406 kB / 0.6896 GB, free: 17.47 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003419/0.4031, allocations: 212 kB / 0.6898 GB, free: 17.38 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.218e-05/0.4031, allocations: 95.89 kB / 0.6899 GB, free: 17.28 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.936e-05/0.4032, allocations: 4.609 kB / 0.6899 GB, free: 17.28 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.513e-05/0.4033, allocations: 11.48 kB / 0.6899 GB, free: 17.28 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.4033, allocations: 10.73 kB / 0.6899 GB, free: 17.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.4034, allocations: 3.047 kB / 0.6899 GB, free: 17.28 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.644e-05/0.4035, allocations: 135.2 kB / 0.69 GB, free: 17.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4035, allocations: 0 / 0.69 GB, free: 17.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.4037, allocations: 34.66 kB / 0.6901 GB, free: 17.2 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 7.553e-05/0.4038, allocations: 104.9 kB / 0.6902 GB, free: 17.11 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002747/0.4041, allocations: 218 kB / 0.6904 GB, free: 16.98 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4041, allocations: 0.75 kB / 0.6904 GB, free: 16.98 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.4042, allocations: 105.1 kB / 0.6905 GB, free: 16.92 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.4044, allocations: 19.84 kB / 0.6905 GB, free: 16.92 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005051/0.4049, allocations: 289 kB / 0.6908 GB, free: 16.77 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001299/0.4051, allocations: 0.7187 MB / 0.6915 GB, free: 16.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.885e-05/0.4052, allocations: 19.17 kB / 0.6915 GB, free: 16.07 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.729e-05/0.4052, allocations: 14.92 kB / 0.6915 GB, free: 16.07 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4052, allocations: 1.469 kB / 0.6915 GB, free: 16.07 MB / 494.1 MB Notification: Performance of Templates: time 0.003986/0.4092, allocations: 1.402 MB / 0.6929 GB, free: 16 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)