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.001073/0.001073, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001101/0.001101, allocations: 193.9 kB / 16.14 MB, free: 6.707 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.234/1.234, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001926/0.001927, allocations: 280.2 kB / 290.2 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8774/0.8774, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 89.17 kB / 0.5946 GB, free: 28.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1369, allocations: 86.98 MB / 0.6795 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.0034/0.1403, allocations: 2.35 MB / 0.6818 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.1415, allocations: 0.7817 MB / 0.6826 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.092e-05/0.1416, allocations: 3.938 kB / 0.6826 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004782/0.142, allocations: 139.1 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.1422, allocations: 65.39 kB / 0.6828 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001274/0.1423, allocations: 39.97 kB / 0.6828 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001946/0.1425, allocations: 199.3 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.1427, allocations: 72.8 kB / 0.6831 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.604e-05/0.1428, allocations: 56.69 kB / 0.6831 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.143, allocations: 71.67 kB / 0.6832 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.143, allocations: 12 kB / 0.6832 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.1431, allocations: 59.88 kB / 0.6833 GB, free: 13.24 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.142e-05/0.1432, allocations: 35.89 kB / 0.6833 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.405e-05/0.1433, allocations: 59.67 kB / 0.6834 GB, free: 13.15 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.1435, allocations: 167.4 kB / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1435, allocations: 0 / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1435, allocations: 0 / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.1435, allocations: 0 / 0.6835 GB, free: 12.98 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.000619/0.1441, allocations: 0.4964 MB / 0.684 GB, free: 12.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.1442, allocations: 16.03 kB / 0.684 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.612e-05/0.1442, allocations: 38.75 kB / 0.6841 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.1444, allocations: 24.83 kB / 0.6841 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.1446, allocations: 208 kB / 0.6843 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.617e-05/0.1447, allocations: 38.45 kB / 0.6843 GB, free: 12.06 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.848e-05/0.1447, allocations: 11.94 kB / 0.6843 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002613/0.145, allocations: 145.1 kB / 0.6845 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.145, allocations: 4 kB / 0.6845 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.145, allocations: 7.984 kB / 0.6845 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.145, allocations: 8 kB / 0.6845 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.1452, allocations: 87.83 kB / 0.6846 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007367/0.146, allocations: 0.6363 MB / 0.6852 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.1462, allocations: 58.55 kB / 0.6853 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.022e-05/0.1463, allocations: 32.91 kB / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.234e-05/0.1463, allocations: 7.922 kB / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/0.1465, allocations: 142.9 kB / 0.6854 GB, free: 10.81 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.1465, allocations: 0 / 0.6854 GB, free: 10.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003393/0.1468, allocations: 163.1 kB / 0.6856 GB, free: 10.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.37e-05/0.1469, allocations: 136.5 kB / 0.6857 GB, free: 10.48 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.147, allocations: 174.4 kB / 0.6859 GB, free: 10.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.1471, allocations: 33.7 kB / 0.6859 GB, free: 10.26 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.523e-05/0.1471, allocations: 143.7 kB / 0.686 GB, free: 10.11 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.1472, allocations: 27.67 kB / 0.6861 GB, free: 10.08 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.102e-05/0.1472, allocations: 41.7 kB / 0.6861 GB, free: 10.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.505e-05/0.1473, allocations: 318.8 kB / 0.6864 GB, free: 9.715 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.969e-05/0.1474, allocations: 43.84 kB / 0.6865 GB, free: 9.672 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.1476, allocations: 109.4 kB / 0.6866 GB, free: 9.531 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000227/0.1478, allocations: 230.4 kB / 0.6868 GB, free: 9.254 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1478, allocations: 4 kB / 0.6868 GB, free: 9.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003253/0.1481, allocations: 240.7 kB / 0.687 GB, free: 8.996 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.011e-05/0.1482, allocations: 71.28 kB / 0.6871 GB, free: 8.914 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1482, allocations: 4 kB / 0.6871 GB, free: 8.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.1482, allocations: 4 kB / 0.6871 GB, free: 8.906 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.1483, allocations: 27.98 kB / 0.6871 GB, free: 8.879 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.1484, allocations: 7.938 kB / 0.6871 GB, free: 8.871 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.1485, allocations: 28.14 kB / 0.6872 GB, free: 8.844 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.1485, allocations: 8 kB / 0.6872 GB, free: 8.836 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.0001159/0.1486, allocations: 160.8 kB / 0.6873 GB, free: 8.664 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.529e-05/0.1487, allocations: 19.75 kB / 0.6873 GB, free: 8.645 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.671e-05/0.1487, allocations: 17.39 kB / 0.6874 GB, free: 8.629 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1487, allocations: 0 / 0.6874 GB, free: 8.629 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1487, allocations: 0 / 0.6874 GB, free: 8.629 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1487, allocations: 0 / 0.6874 GB, free: 8.629 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.1489, allocations: 217.5 kB / 0.6876 GB, free: 8.367 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1489, allocations: 4 kB / 0.6876 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.826e-05/0.149, allocations: 11.94 kB / 0.6876 GB, free: 8.352 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.149, allocations: 7.938 kB / 0.6876 GB, free: 8.344 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.149, allocations: 3.984 kB / 0.6876 GB, free: 8.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.149, allocations: 3.938 kB / 0.6876 GB, free: 8.336 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.149, allocations: 0 / 0.6876 GB, free: 8.336 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003686/0.1494, allocations: 214.6 kB / 0.6878 GB, free: 8.102 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.93e-05/0.1495, allocations: 85.08 kB / 0.6879 GB, free: 8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.1495, allocations: 7.969 kB / 0.6879 GB, free: 7.992 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.733e-05/0.1496, allocations: 15.98 kB / 0.6879 GB, free: 7.977 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.1496, allocations: 7.984 kB / 0.6879 GB, free: 7.969 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.1497, allocations: 0 / 0.6879 GB, free: 7.969 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.459e-05/0.1498, allocations: 137.4 kB / 0.688 GB, free: 7.836 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1498, allocations: 0 / 0.688 GB, free: 7.836 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002328/0.15, allocations: 35.84 kB / 0.6881 GB, free: 7.801 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.0005535/0.1506, allocations: 0.7684 MB / 0.6888 GB, free: 7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002702/0.1508, allocations: 211.3 kB / 0.689 GB, free: 6.77 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1509, allocations: 64 / 0.689 GB, free: 6.77 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.151, allocations: 103.4 kB / 0.6891 GB, free: 6.656 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.1512, allocations: 25.7 kB / 0.6891 GB, free: 6.633 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.1531, allocations: 1.989 MB / 0.6911 GB, free: 4.492 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/0.1534, allocations: 0.716 MB / 0.6918 GB, free: 3.75 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.457e-05/0.1535, allocations: 20.64 kB / 0.6918 GB, free: 3.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.321e-05/0.1535, allocations: 43.42 kB / 0.6918 GB, free: 3.688 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1535, allocations: 0 / 0.6918 GB, free: 3.688 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0116/0.1652, allocations: 2.818 MB / 0.6946 GB, free: 1.004 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/0.1654, allocations: 222.8 kB / 0.6948 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.681/1.847, allocations: 0 / 0.6948 GB, free: 0.7461 MB / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)