Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.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.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",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.0008061/0.0008062, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004797/0.004797, allocations: 171.8 kB / 16.27 MB, free: 6.371 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.266/1.266, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001734/0.001733, allocations: 275 kB / 291.7 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9046/0.9046, allocations: 169.5 MB / 0.5004 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004084/0.0004082, allocations: 17.56 kB / 0.5988 GB, free: 28.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1399, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003411/0.1433, allocations: 2.748 MB / 0.6879 GB, free: 12.2 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002859/0.1462, allocations: 1.896 MB / 0.6898 GB, free: 10.3 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.1464, allocations: 4 kB / 0.6898 GB, free: 10.29 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.1466, allocations: 35.7 kB / 0.6898 GB, free: 10.26 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005169/0.1471, allocations: 186.7 kB / 0.69 GB, free: 10.08 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005892/0.1477, allocations: 211.5 kB / 0.6902 GB, free: 9.871 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004791/0.1482, allocations: 450.7 kB / 0.6906 GB, free: 9.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005994/0.1488, allocations: 324.8 kB / 0.6909 GB, free: 9.098 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.149, allocations: 105.4 kB / 0.691 GB, free: 8.996 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002902/0.1493, allocations: 147.5 kB / 0.6912 GB, free: 8.852 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.142e-05/0.1493, allocations: 8 kB / 0.6912 GB, free: 8.844 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006881/0.15, allocations: 479 kB / 0.6916 GB, free: 8.375 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.33e-05/0.1501, allocations: 71.8 kB / 0.6917 GB, free: 8.305 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.1503, allocations: 133.6 kB / 0.6918 GB, free: 8.168 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000618/0.1509, allocations: 496.9 kB / 0.6923 GB, free: 7.684 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.1509, allocations: 0 / 0.6923 GB, free: 7.684 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.908e-06/0.1509, allocations: 0 / 0.6923 GB, free: 7.684 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.1509, allocations: 3.938 kB / 0.6923 GB, free: 7.68 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007475/0.1517, allocations: 0.5115 MB / 0.6928 GB, free: 7.121 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.1517, allocations: 12.69 kB / 0.6928 GB, free: 7.109 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.941e-05/0.1518, allocations: 54.73 kB / 0.6929 GB, free: 7.047 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008208/0.1526, allocations: 114.4 kB / 0.693 GB, free: 6.938 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.153, allocations: 263.8 kB / 0.6932 GB, free: 6.641 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.153, allocations: 12.81 kB / 0.6932 GB, free: 6.629 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.855e-05/0.153, allocations: 23.12 kB / 0.6933 GB, free: 6.609 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005346/0.1536, allocations: 353.1 kB / 0.6936 GB, free: 6.242 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.1536, allocations: 0.7812 kB / 0.6936 GB, free: 6.242 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/0.1536, allocations: 11.98 kB / 0.6936 GB, free: 6.23 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.123e-05/0.1537, allocations: 30.08 kB / 0.6936 GB, free: 6.203 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004515/0.1541, allocations: 293.5 kB / 0.6939 GB, free: 5.918 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002042/0.1562, allocations: 1.753 MB / 0.6956 GB, free: 4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004617/0.1566, allocations: 318.1 kB / 0.6959 GB, free: 3.652 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.1568, allocations: 105.7 kB / 0.696 GB, free: 3.543 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.1569, allocations: 89.03 kB / 0.6961 GB, free: 3.438 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.157, allocations: 38.56 kB / 0.6962 GB, free: 3.391 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.157, allocations: 0 / 0.6962 GB, free: 3.391 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002425/0.1594, allocations: 0.9802 MB / 0.6971 GB, free: 2.375 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.1595, allocations: 92.97 kB / 0.6972 GB, free: 2.266 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.1597, allocations: 216.3 kB / 0.6974 GB, free: 2.043 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/0.1597, allocations: 29.7 kB / 0.6974 GB, free: 2.008 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.871e-05/0.1598, allocations: 168.1 kB / 0.6976 GB, free: 1.84 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.699e-05/0.1599, allocations: 74.91 kB / 0.6977 GB, free: 1.766 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.1599, allocations: 33.7 kB / 0.6977 GB, free: 1.727 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.16, allocations: 334.8 kB / 0.698 GB, free: 1.391 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001846/0.1602, allocations: 123.9 kB / 0.6981 GB, free: 1.27 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00024/0.1605, allocations: 214.5 kB / 0.6983 GB, free: 1.027 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004481/0.1609, allocations: 370 kB / 0.6987 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1609, allocations: 4 kB / 0.6987 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008274/0.1618, allocations: 0.5006 MB / 0.6992 GB, free: 116 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1618, allocations: 5.875 kB / 0.6992 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.1618, allocations: 4 kB / 0.6992 GB, free: 108 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005335/0.1623, allocations: 151.3 kB / 0.6993 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002397/0.1626, allocations: 59.89 kB / 0.6994 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002798/0.1654, allocations: 3.977 MB / 0.7033 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/0.1656, allocations: 23.97 kB / 0.7033 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.1656, allocations: 8 kB / 0.7033 GB, free: 11.56 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001537/0.1658, allocations: 173.8 kB / 0.7035 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.379e-05/0.1659, allocations: 15.81 kB / 0.7035 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008647/0.1668, allocations: 482.4 kB / 0.704 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1668, allocations: 4 kB / 0.704 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.756e-06/0.1668, allocations: 0 / 0.704 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1668, allocations: 3.938 kB / 0.704 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00146/0.1683, allocations: 0.9999 MB / 0.7049 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1683, allocations: 96 / 0.7049 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001268/0.1684, allocations: 39.86 kB / 0.705 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000423/0.1688, allocations: 155.5 kB / 0.7051 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.1689, allocations: 8 kB / 0.7051 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002636/0.1715, allocations: 3.945 MB / 0.709 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.1715, allocations: 4.281 kB / 0.709 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007571/0.1723, allocations: 0.6247 MB / 0.7096 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.1724, allocations: 136.7 kB / 0.7097 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.65e-05/0.1725, allocations: 12 kB / 0.7097 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.1727, allocations: 23.97 kB / 0.7098 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.572e-05/0.1728, allocations: 15.98 kB / 0.7098 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.1728, allocations: 12 kB / 0.7098 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001497/0.1729, allocations: 169.4 kB / 0.71 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.502e-06/0.173, allocations: 0 / 0.71 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004744/0.1734, allocations: 91.94 kB / 0.71 GB, free: 4.148 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001098/0.1745, allocations: 1.197 MB / 0.7112 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000853/0.1754, allocations: 0.5863 MB / 0.7118 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1754, allocations: 0 / 0.7118 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005048/0.1759, allocations: 408.3 kB / 0.7122 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000508/0.1764, allocations: 40.02 kB / 0.7122 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003915/0.1804, allocations: 3.436 MB / 0.7156 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.1807, allocations: 0.783 MB / 0.7163 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001679/0.1809, allocations: 54.25 kB / 0.7164 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.181, allocations: 79.34 kB / 0.7165 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of SimCode: time 3.01e-07/0.181, allocations: 0 / 0.7165 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01847/0.1995, allocations: 6.238 MB / 0.7226 GB, free: 7.207 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002556/0.1998, allocations: 243.3 kB / 0.7228 GB, free: 6.957 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/1.934, allocations: 3.938 kB / 0.7228 GB, free: 6.953 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)