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.001074/0.001074, 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.001078/0.001078, allocations: 194.2 kB / 16.53 MB, free: 6.664 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002123/0.002123, allocations: 287.2 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.934/0.934, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 95.98 kB / 0.5953 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1423, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004387/0.1467, allocations: 3.057 MB / 0.6833 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002689/0.1494, allocations: 1.915 MB / 0.6851 GB, free: 11.61 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.1495, allocations: 7.938 kB / 0.6851 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008196/0.1503, allocations: 290.8 kB / 0.6854 GB, free: 11.31 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003739/0.1507, allocations: 187.1 kB / 0.6856 GB, free: 11.13 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000521/0.1513, allocations: 248 kB / 0.6858 GB, free: 10.89 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003067/0.1516, allocations: 319 kB / 0.6861 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000319/0.1519, allocations: 185 kB / 0.6863 GB, free: 10.39 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001527/0.1521, allocations: 131.5 kB / 0.6864 GB, free: 10.26 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002612/0.1523, allocations: 147.4 kB / 0.6866 GB, free: 10.12 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.557e-05/0.1524, allocations: 24 kB / 0.6866 GB, free: 10.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005594/0.153, allocations: 403.2 kB / 0.687 GB, free: 9.699 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.039e-05/0.1531, allocations: 87.73 kB / 0.6871 GB, free: 9.613 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.1532, allocations: 119.4 kB / 0.6872 GB, free: 9.496 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005227/0.1537, allocations: 478.7 kB / 0.6876 GB, free: 9.027 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1537, allocations: 3.984 kB / 0.6876 GB, free: 9.023 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1537, allocations: 4 kB / 0.6877 GB, free: 9.02 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1537, allocations: 3.938 kB / 0.6877 GB, free: 9.016 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.0007751/0.1545, allocations: 0.5575 MB / 0.6882 GB, free: 8.41 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.1546, allocations: 12.03 kB / 0.6882 GB, free: 8.398 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.74e-05/0.1546, allocations: 54.73 kB / 0.6883 GB, free: 8.336 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007652/0.1554, allocations: 112.5 kB / 0.6884 GB, free: 8.227 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.1557, allocations: 255.9 kB / 0.6886 GB, free: 7.938 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.1557, allocations: 16.81 kB / 0.6886 GB, free: 7.922 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.467e-05/0.1558, allocations: 16.38 kB / 0.6886 GB, free: 7.906 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004895/0.1563, allocations: 361.2 kB / 0.689 GB, free: 7.527 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.1563, allocations: 3.984 kB / 0.689 GB, free: 7.523 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.1563, allocations: 8 kB / 0.689 GB, free: 7.516 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.452e-05/0.1564, allocations: 28.42 kB / 0.689 GB, free: 7.488 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004246/0.1568, allocations: 297.4 kB / 0.6893 GB, free: 7.199 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.1587, allocations: 1.737 MB / 0.691 GB, free: 5.293 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004508/0.1592, allocations: 318.1 kB / 0.6913 GB, free: 4.945 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.1594, allocations: 117.6 kB / 0.6914 GB, free: 4.824 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001037/0.1595, allocations: 85.11 kB / 0.6915 GB, free: 4.723 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.483e-05/0.1595, allocations: 38.48 kB / 0.6915 GB, free: 4.676 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.313e-06/0.1595, allocations: 4 kB / 0.6915 GB, free: 4.672 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002389/0.1619, allocations: 0.9599 MB / 0.6925 GB, free: 3.676 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.162, allocations: 85.05 kB / 0.6926 GB, free: 3.574 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.1622, allocations: 216.5 kB / 0.6928 GB, free: 3.355 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.1622, allocations: 33.64 kB / 0.6928 GB, free: 3.316 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.7e-05/0.1623, allocations: 176 kB / 0.693 GB, free: 3.141 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.021e-05/0.1624, allocations: 78.91 kB / 0.693 GB, free: 3.062 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.249e-05/0.1625, allocations: 57.7 kB / 0.6931 GB, free: 3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1626, allocations: 330.8 kB / 0.6934 GB, free: 2.668 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.1628, allocations: 123.9 kB / 0.6935 GB, free: 2.547 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.163, allocations: 219.1 kB / 0.6937 GB, free: 2.301 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004313/0.1634, allocations: 366 kB / 0.6941 GB, free: 1.914 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1635, allocations: 7.938 kB / 0.6941 GB, free: 1.906 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008133/0.1643, allocations: 0.5119 MB / 0.6946 GB, free: 1.375 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.1643, allocations: 4 kB / 0.6946 GB, free: 1.371 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1643, allocations: 4 kB / 0.6946 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005086/0.1648, allocations: 151.6 kB / 0.6948 GB, free: 1.207 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002426/0.1651, allocations: 59.89 kB / 0.6948 GB, free: 1.148 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002978/0.1681, allocations: 4.19 MB / 0.6989 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001837/0.1683, allocations: 23.88 kB / 0.6989 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.1683, allocations: 8 kB / 0.6989 GB, free: 12.6 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.0001651/0.1685, allocations: 170.8 kB / 0.6991 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.945e-05/0.1686, allocations: 19.8 kB / 0.6991 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008429/0.1694, allocations: 478.5 kB / 0.6996 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1694, allocations: 4 kB / 0.6996 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.1694, allocations: 0 / 0.6996 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1694, allocations: 0 / 0.6996 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.171, allocations: 1.015 MB / 0.7006 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.171, allocations: 0 / 0.7006 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.1711, allocations: 31.98 kB / 0.7006 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003925/0.1715, allocations: 147.5 kB / 0.7007 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.1715, allocations: 8 kB / 0.7007 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002695/0.1742, allocations: 4.174 MB / 0.7048 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.1743, allocations: 7.938 kB / 0.7048 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008111/0.1751, allocations: 0.6306 MB / 0.7054 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.1752, allocations: 136.8 kB / 0.7056 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.6e-05/0.1753, allocations: 11.91 kB / 0.7056 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.1755, allocations: 16.03 kB / 0.7056 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.018e-05/0.1756, allocations: 27.95 kB / 0.7056 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.1756, allocations: 8 kB / 0.7056 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001372/0.1757, allocations: 161.5 kB / 0.7058 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1757, allocations: 0 / 0.7058 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005076/0.1762, allocations: 95.94 kB / 0.7059 GB, free: 4.949 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.001061/0.1773, allocations: 1.202 MB / 0.7071 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00091/0.1782, allocations: 0.5912 MB / 0.7076 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.1782, allocations: 64 / 0.7076 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004761/0.1787, allocations: 401.2 kB / 0.708 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004946/0.1792, allocations: 45.64 kB / 0.7081 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003772/0.183, allocations: 3.33 MB / 0.7113 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.1833, allocations: 0.787 MB / 0.7121 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001782/0.1835, allocations: 58.25 kB / 0.7121 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.924e-05/0.1836, allocations: 75.41 kB / 0.7122 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of SimCode: time 1.443e-06/0.1836, allocations: 0 / 0.7122 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.2101, allocations: 6.615 MB / 0.7187 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.87, allocations: 11 kB / 0.7187 GB, free: 7.676 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 & 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)