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.001707/0.001707, allocations: 108 kB / 15.61 MB, free: 152 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.00191/0.00191, allocations: 195.3 kB / 16.53 MB, free: 6.699 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00241/0.00241, allocations: 279 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9638/0.9638, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002638/0.002639, allocations: 93.97 kB / 0.5953 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1399, allocations: 86.97 MB / 0.6803 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003778/0.1437, allocations: 2.298 MB / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.1449, allocations: 0.7814 MB / 0.6833 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.021e-05/0.145, allocations: 4 kB / 0.6833 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005402/0.1456, allocations: 144.7 kB / 0.6834 GB, free: 13.39 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.1457, allocations: 68.25 kB / 0.6835 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001482/0.1459, allocations: 59.88 kB / 0.6836 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000216/0.1461, allocations: 159.5 kB / 0.6837 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002219/0.1463, allocations: 93.06 kB / 0.6838 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.1465, allocations: 71.7 kB / 0.6839 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.1466, allocations: 67.67 kB / 0.6839 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.501e-05/0.1467, allocations: 12 kB / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.1468, allocations: 55.89 kB / 0.684 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.742e-05/0.1468, allocations: 35.91 kB / 0.684 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.588e-05/0.1469, allocations: 71.66 kB / 0.6841 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.1472, allocations: 159.5 kB / 0.6842 GB, free: 12.55 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.1472, allocations: 0 / 0.6842 GB, free: 12.55 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1472, allocations: 4 kB / 0.6842 GB, free: 12.55 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1472, allocations: 4 kB / 0.6843 GB, free: 12.55 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.0006794/0.1479, allocations: 498.4 kB / 0.6847 GB, free: 12 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.1479, allocations: 8.031 kB / 0.6847 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.118e-05/0.148, allocations: 46.73 kB / 0.6848 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001859/0.1482, allocations: 20.84 kB / 0.6848 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.1484, allocations: 216 kB / 0.685 GB, free: 11.67 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.399e-05/0.1485, allocations: 38.44 kB / 0.685 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.1485, allocations: 15.94 kB / 0.6851 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.1488, allocations: 150.5 kB / 0.6852 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1488, allocations: 0 / 0.6852 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.1488, allocations: 7.938 kB / 0.6852 GB, free: 11.44 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.1489, allocations: 4 kB / 0.6852 GB, free: 11.44 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.1491, allocations: 83.94 kB / 0.6853 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008399/0.1499, allocations: 0.648 MB / 0.6859 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002191/0.1501, allocations: 62.5 kB / 0.686 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.749e-05/0.1502, allocations: 28.91 kB / 0.686 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.1502, allocations: 0 / 0.686 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.1505, allocations: 142.9 kB / 0.6861 GB, free: 10.38 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.1505, allocations: 0 / 0.6861 GB, free: 10.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003814/0.1509, allocations: 167 kB / 0.6863 GB, free: 10.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.085e-05/0.1509, allocations: 136.5 kB / 0.6864 GB, free: 10.04 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.1511, allocations: 175.4 kB / 0.6866 GB, free: 9.859 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.1511, allocations: 29.7 kB / 0.6866 GB, free: 9.824 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.144e-05/0.1512, allocations: 143.7 kB / 0.6868 GB, free: 9.676 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.1513, allocations: 23.73 kB / 0.6868 GB, free: 9.652 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.121e-05/0.1513, allocations: 41.64 kB / 0.6868 GB, free: 9.605 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1515, allocations: 322.8 kB / 0.6871 GB, free: 9.281 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.1516, allocations: 47.88 kB / 0.6872 GB, free: 9.234 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.1517, allocations: 109.4 kB / 0.6873 GB, free: 9.094 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.152, allocations: 230.3 kB / 0.6875 GB, free: 8.816 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.79e-06/0.152, allocations: 4 kB / 0.6875 GB, free: 8.812 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003625/0.1524, allocations: 232.7 kB / 0.6877 GB, free: 8.566 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.657e-05/0.1525, allocations: 67.34 kB / 0.6878 GB, free: 8.488 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.1525, allocations: 8.297 kB / 0.6878 GB, free: 8.48 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.1525, allocations: 8 kB / 0.6878 GB, free: 8.473 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.1526, allocations: 27.92 kB / 0.6878 GB, free: 8.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.1526, allocations: 4 kB / 0.6878 GB, free: 8.441 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.1528, allocations: 23.84 kB / 0.6879 GB, free: 8.418 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.1528, allocations: 11.98 kB / 0.6879 GB, free: 8.406 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.0001352/0.1529, allocations: 163 kB / 0.688 GB, free: 8.234 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.153, allocations: 19.73 kB / 0.6881 GB, free: 8.215 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.802e-05/0.153, allocations: 17.41 kB / 0.6881 GB, free: 8.199 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.153, allocations: 4 kB / 0.6881 GB, free: 8.195 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.153, allocations: 3.938 kB / 0.6881 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.153, allocations: 0 / 0.6881 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.1532, allocations: 213.6 kB / 0.6883 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1532, allocations: 0 / 0.6883 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8e-05/0.1533, allocations: 11.98 kB / 0.6883 GB, free: 7.922 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.1533, allocations: 3.938 kB / 0.6883 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.1534, allocations: 8 kB / 0.6883 GB, free: 7.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1534, allocations: 0 / 0.6883 GB, free: 7.91 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1534, allocations: 4 kB / 0.6883 GB, free: 7.906 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/0.1538, allocations: 218.5 kB / 0.6885 GB, free: 7.668 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.711e-05/0.1538, allocations: 88.98 kB / 0.6886 GB, free: 7.562 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.297e-05/0.1539, allocations: 7.938 kB / 0.6886 GB, free: 7.555 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.589e-05/0.154, allocations: 7.984 kB / 0.6886 GB, free: 7.547 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.88e-05/0.154, allocations: 15.97 kB / 0.6886 GB, free: 7.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.154, allocations: 8.062 kB / 0.6886 GB, free: 7.523 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001086/0.1541, allocations: 132.3 kB / 0.6888 GB, free: 7.395 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1542, allocations: 0 / 0.6888 GB, free: 7.395 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002405/0.1544, allocations: 35.91 kB / 0.6888 GB, free: 7.359 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.0006628/0.1551, allocations: 0.7508 MB / 0.6895 GB, free: 6.574 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003248/0.1554, allocations: 214.6 kB / 0.6897 GB, free: 6.34 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1554, allocations: 3.938 kB / 0.6897 GB, free: 6.336 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.1556, allocations: 107.4 kB / 0.6898 GB, free: 6.219 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/0.1558, allocations: 12.23 kB / 0.6899 GB, free: 6.207 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002194/0.158, allocations: 1.962 MB / 0.6918 GB, free: 4.086 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.1583, allocations: 0.7119 MB / 0.6925 GB, free: 3.348 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.102e-05/0.1584, allocations: 28.52 kB / 0.6925 GB, free: 3.32 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.254e-05/0.1585, allocations: 39.36 kB / 0.6925 GB, free: 3.285 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1585, allocations: 0 / 0.6925 GB, free: 3.285 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02432/0.1828, allocations: 3.073 MB / 0.6955 GB, free: 336 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.466/7.649, allocations: 11.02 kB / 0.6955 GB, free: 328 kB / 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)