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.001304/0.001305, allocations: 108 kB / 15.6 MB, free: 132 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.002105/0.002106, allocations: 192 kB / 16.53 MB, free: 6.391 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.46/1.46, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002521/0.002521, allocations: 290.6 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.078/1.078, allocations: 178.6 MB / 0.5073 GB, free: 4.59 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002725/0.002725, allocations: 93.78 kB / 0.6065 GB, free: 24.63 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1524, allocations: 89.14 MB / 0.6936 GB, free: 4.234 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004732/0.1572, allocations: 3.069 MB / 0.6966 GB, free: 1.16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002918/0.1601, allocations: 1.918 MB / 0.6985 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.1602, allocations: 4 kB / 0.6985 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008649/0.1611, allocations: 283.6 kB / 0.6987 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004017/0.1615, allocations: 191.1 kB / 0.6989 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000552/0.1621, allocations: 249.5 kB / 0.6992 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.1624, allocations: 315 kB / 0.6995 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003246/0.1628, allocations: 192.9 kB / 0.6996 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/0.163, allocations: 127.5 kB / 0.6998 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002682/0.1632, allocations: 151.4 kB / 0.6999 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.998e-05/0.1633, allocations: 20 kB / 0.6999 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006/0.1639, allocations: 403.2 kB / 0.7003 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.812e-05/0.164, allocations: 83.8 kB / 0.7004 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.1642, allocations: 123.4 kB / 0.7005 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005861/0.1647, allocations: 486.6 kB / 0.701 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1648, allocations: 0 / 0.701 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1648, allocations: 4 kB / 0.701 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.878e-06/0.1648, allocations: 0 / 0.701 GB, free: 12.64 MB / 0.4981 GB 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.0008448/0.1656, allocations: 0.5692 MB / 0.7015 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1657, allocations: 8.031 kB / 0.7015 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.198e-05/0.1657, allocations: 54.73 kB / 0.7016 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007978/0.1665, allocations: 104.5 kB / 0.7017 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003448/0.1669, allocations: 271.7 kB / 0.702 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.1669, allocations: 20.81 kB / 0.702 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.167, allocations: 16.38 kB / 0.702 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005597/0.1676, allocations: 353.2 kB / 0.7023 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1676, allocations: 0 / 0.7023 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.1676, allocations: 8 kB / 0.7023 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.835e-05/0.1677, allocations: 28.42 kB / 0.7024 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004944/0.1682, allocations: 289.5 kB / 0.7026 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002243/0.1704, allocations: 1.737 MB / 0.7043 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005205/0.171, allocations: 326.2 kB / 0.7046 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.1711, allocations: 109.5 kB / 0.7047 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001192/0.1713, allocations: 93.09 kB / 0.7048 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.1713, allocations: 38.56 kB / 0.7049 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 4.819e-06/0.1713, allocations: 0 / 0.7049 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23): time 0.002529/0.1738, allocations: 0.9595 MB / 0.7058 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.1739, allocations: 89.03 kB / 0.7059 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.1741, allocations: 211.8 kB / 0.7061 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.1742, allocations: 25.7 kB / 0.7061 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.1743, allocations: 176.1 kB / 0.7063 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.72e-05/0.1744, allocations: 74.91 kB / 0.7064 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.1745, allocations: 65.59 kB / 0.7064 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1746, allocations: 334.8 kB / 0.7067 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.1748, allocations: 127.9 kB / 0.7069 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.1751, allocations: 205.4 kB / 0.7071 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005006/0.1756, allocations: 378.4 kB / 0.7074 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1756, allocations: 0 / 0.7074 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00089/0.1765, allocations: 0.5044 MB / 0.7079 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.1766, allocations: 8 kB / 0.7079 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.1766, allocations: 0 / 0.7079 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005275/0.1771, allocations: 155.4 kB / 0.7081 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.1774, allocations: 55.91 kB / 0.7081 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003487/0.1809, allocations: 4.194 MB / 0.7122 GB, free: 268 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001958/0.1811, allocations: 19.92 kB / 0.7122 GB, free: 248 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.1811, allocations: 12 kB / 0.7123 GB, free: 236 kB / 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.0001847/0.1813, allocations: 175.6 kB / 0.7124 GB, free: 52 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.386e-05/0.1814, allocations: 19.81 kB / 0.7124 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009049/0.1823, allocations: 474.5 kB / 0.7129 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.1823, allocations: 7.984 kB / 0.7129 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.1823, allocations: 3.938 kB / 0.7129 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.1823, allocations: 4 kB / 0.7129 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.1839, allocations: 1.006 MB / 0.7139 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/0.184, allocations: 7.984 kB / 0.7139 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001336/0.1841, allocations: 31.92 kB / 0.7139 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004048/0.1845, allocations: 143.6 kB / 0.7141 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.1846, allocations: 8 kB / 0.7141 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003209/0.1878, allocations: 4.167 MB / 0.7181 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.1878, allocations: 4.031 kB / 0.7181 GB, free: 9.742 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008559/0.1887, allocations: 0.6326 MB / 0.7188 GB, free: 9.059 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.1888, allocations: 128.7 kB / 0.7189 GB, free: 8.914 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.043e-05/0.1889, allocations: 11.94 kB / 0.7189 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.1891, allocations: 19.97 kB / 0.7189 GB, free: 8.883 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.914e-05/0.1892, allocations: 27.92 kB / 0.7189 GB, free: 8.855 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.1892, allocations: 11.98 kB / 0.719 GB, free: 8.844 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001553/0.1893, allocations: 156.2 kB / 0.7191 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1893, allocations: 0 / 0.7191 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005101/0.1899, allocations: 92 kB / 0.7192 GB, free: 8.602 MB / 0.5137 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.001243/0.1911, allocations: 1.205 MB / 0.7204 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009986/0.1921, allocations: 0.5984 MB / 0.7209 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1921, allocations: 0 / 0.7209 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005518/0.1927, allocations: 402.1 kB / 0.7213 GB, free: 6.289 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005012/0.1932, allocations: 40.67 kB / 0.7214 GB, free: 6.25 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004285/0.1975, allocations: 3.331 MB / 0.7246 GB, free: 2.703 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004154/0.1979, allocations: 0.7831 MB / 0.7254 GB, free: 1.895 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001824/0.1981, allocations: 54.25 kB / 0.7254 GB, free: 1.844 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.1982, allocations: 71.41 kB / 0.7255 GB, free: 1.773 MB / 0.5137 GB Notification: Performance of SimCode: time 3.91e-07/0.1982, allocations: 0 / 0.7255 GB, free: 1.773 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03563/0.2339, allocations: 6.634 MB / 0.732 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.07, allocations: 3.938 kB / 0.732 GB, free: 11.3 MB / 0.5294 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)