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.0008341/0.0008341, allocations: 92 kB / 15.36 MB, free: 0.7383 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.005117/0.005117, allocations: 170.3 kB / 16.26 MB, free: 6.613 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.305/1.305, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001739/0.001739, allocations: 266.7 kB / 291.7 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9365/0.9365, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005653/0.0005654, allocations: 12.86 kB / 0.5988 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1594, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002892/0.1624, allocations: 2.003 MB / 0.6872 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.1637, allocations: 0.762 MB / 0.6879 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.867e-05/0.1638, allocations: 0.5312 kB / 0.6879 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.1639, allocations: 15.86 kB / 0.6879 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002455/0.1642, allocations: 62 kB / 0.688 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001745/0.1644, allocations: 47.89 kB / 0.688 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002279/0.1646, allocations: 191.4 kB / 0.6882 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002633/0.1649, allocations: 206.6 kB / 0.6884 GB, free: 11.65 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.165, allocations: 55.77 kB / 0.6885 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.1652, allocations: 63.69 kB / 0.6885 GB, free: 11.54 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.1652, allocations: 4 kB / 0.6885 GB, free: 11.53 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.1654, allocations: 60.5 kB / 0.6886 GB, free: 11.47 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.077e-05/0.1654, allocations: 39.83 kB / 0.6886 GB, free: 11.43 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.883e-05/0.1656, allocations: 86.03 kB / 0.6887 GB, free: 11.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002461/0.1658, allocations: 155.4 kB / 0.6889 GB, free: 11.19 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1658, allocations: 0.7188 kB / 0.6889 GB, free: 11.19 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.1658, allocations: 3.984 kB / 0.6889 GB, free: 11.19 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1658, allocations: 1 kB / 0.6889 GB, free: 11.19 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.0006069/0.1665, allocations: 475.9 kB / 0.6893 GB, free: 10.66 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1665, allocations: 8.031 kB / 0.6893 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.89e-05/0.1666, allocations: 47.23 kB / 0.6894 GB, free: 10.6 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002079/0.1668, allocations: 32.73 kB / 0.6894 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.167, allocations: 206.6 kB / 0.6896 GB, free: 10.33 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.966e-05/0.1671, allocations: 40.39 kB / 0.6896 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.871e-05/0.1671, allocations: 15.94 kB / 0.6897 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002814/0.1674, allocations: 148.1 kB / 0.6898 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.1674, allocations: 0 / 0.6898 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.1674, allocations: 7.984 kB / 0.6898 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.875e-05/0.1674, allocations: 7.984 kB / 0.6898 GB, free: 10.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.1676, allocations: 84.89 kB / 0.6899 GB, free: 10.02 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008085/0.1685, allocations: 0.6518 MB / 0.6905 GB, free: 9.301 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.1687, allocations: 62.55 kB / 0.6906 GB, free: 9.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.615e-05/0.1688, allocations: 28.92 kB / 0.6906 GB, free: 9.199 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.1688, allocations: 0 / 0.6906 GB, free: 9.199 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001887/0.169, allocations: 146.9 kB / 0.6908 GB, free: 9.031 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.169, allocations: 0 / 0.6908 GB, free: 9.031 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003812/0.1694, allocations: 175.3 kB / 0.6909 GB, free: 8.848 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.1695, allocations: 132.5 kB / 0.6911 GB, free: 8.688 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.1696, allocations: 174.4 kB / 0.6912 GB, free: 8.508 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.1697, allocations: 33.7 kB / 0.6913 GB, free: 8.469 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.003e-05/0.1697, allocations: 139.7 kB / 0.6914 GB, free: 8.324 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.456e-05/0.1698, allocations: 23.73 kB / 0.6914 GB, free: 8.301 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.491e-05/0.1698, allocations: 21.72 kB / 0.6914 GB, free: 8.273 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.1699, allocations: 326.8 kB / 0.6917 GB, free: 7.945 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.678e-05/0.17, allocations: 51.86 kB / 0.6918 GB, free: 7.895 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.1702, allocations: 113.4 kB / 0.6919 GB, free: 7.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000247/0.1704, allocations: 230.4 kB / 0.6921 GB, free: 7.473 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1704, allocations: 0 / 0.6921 GB, free: 7.473 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003577/0.1708, allocations: 248.5 kB / 0.6924 GB, free: 7.211 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.588e-05/0.1709, allocations: 73.05 kB / 0.6924 GB, free: 7.129 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.1709, allocations: 4.078 kB / 0.6924 GB, free: 7.125 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.1709, allocations: 4 kB / 0.6924 GB, free: 7.121 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.171, allocations: 31.92 kB / 0.6925 GB, free: 7.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.171, allocations: 8.297 kB / 0.6925 GB, free: 7.082 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.1712, allocations: 27.83 kB / 0.6925 GB, free: 7.055 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.1712, allocations: 12 kB / 0.6925 GB, free: 7.043 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.0001327/0.1713, allocations: 168.8 kB / 0.6927 GB, free: 6.863 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.41e-05/0.1714, allocations: 15.75 kB / 0.6927 GB, free: 6.848 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.106e-05/0.1714, allocations: 13.41 kB / 0.6927 GB, free: 6.836 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1714, allocations: 0 / 0.6927 GB, free: 6.836 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1714, allocations: 4 kB / 0.6927 GB, free: 6.832 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1714, allocations: 4 kB / 0.6927 GB, free: 6.828 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.1716, allocations: 213.6 kB / 0.6929 GB, free: 6.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.1716, allocations: 4 kB / 0.6929 GB, free: 6.566 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.875e-05/0.1717, allocations: 11.98 kB / 0.6929 GB, free: 6.555 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.1717, allocations: 3.938 kB / 0.6929 GB, free: 6.551 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.1717, allocations: 4 kB / 0.6929 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1717, allocations: 0 / 0.6929 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1717, allocations: 0 / 0.6929 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003703/0.1721, allocations: 222.6 kB / 0.6931 GB, free: 6.305 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.463e-05/0.1722, allocations: 88.95 kB / 0.6932 GB, free: 6.199 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.763e-05/0.1722, allocations: 7.922 kB / 0.6932 GB, free: 6.191 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.289e-05/0.1723, allocations: 12 kB / 0.6932 GB, free: 6.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.251e-05/0.1724, allocations: 11.98 kB / 0.6933 GB, free: 6.168 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.1724, allocations: 4.062 kB / 0.6933 GB, free: 6.164 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001026/0.1725, allocations: 137.3 kB / 0.6934 GB, free: 6.031 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.452e-06/0.1725, allocations: 0 / 0.6934 GB, free: 6.031 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000244/0.1727, allocations: 39.88 kB / 0.6934 GB, free: 5.992 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.0005885/0.1733, allocations: 0.7624 MB / 0.6942 GB, free: 5.195 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002898/0.1736, allocations: 218.7 kB / 0.6944 GB, free: 4.957 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1736, allocations: 4 kB / 0.6944 GB, free: 4.953 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.1738, allocations: 108 kB / 0.6945 GB, free: 4.836 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.174, allocations: 18.25 kB / 0.6945 GB, free: 4.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00215/0.1762, allocations: 2.016 MB / 0.6965 GB, free: 2.645 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.1764, allocations: 0.72 MB / 0.6972 GB, free: 1.898 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.341e-05/0.1765, allocations: 20.41 kB / 0.6972 GB, free: 1.879 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.453e-05/0.1766, allocations: 39.42 kB / 0.6972 GB, free: 1.844 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1766, allocations: 0 / 0.6972 GB, free: 1.844 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01201/0.1886, allocations: 2.75 MB / 0.6999 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.1888, allocations: 224.2 kB / 0.7001 GB, free: 15 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.683/1.871, allocations: 0 / 0.7001 GB, free: 15 MB / 0.4981 GB (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)