Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.Loads.Examples.TestImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",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.001037/0.001038, 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.001021/0.001021, allocations: 193 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.304/1.304, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002146/0.002146, allocations: 283.1 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 0.94/0.94, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001681, allocations: 91.67 kB / 0.5953 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1355, allocations: 86.98 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006072/0.1416, allocations: 4.839 MB / 0.685 GB, free: 11.72 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003782/0.1454, allocations: 2.458 MB / 0.6874 GB, free: 9.254 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004368/0.1459, allocations: 23.81 kB / 0.6874 GB, free: 9.23 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001143/0.1471, allocations: 413.8 kB / 0.6878 GB, free: 8.824 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001074/0.1481, allocations: 433.7 kB / 0.6882 GB, free: 8.398 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008879/0.149, allocations: 374.7 kB / 0.6886 GB, free: 8.035 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001029/0.1501, allocations: 0.9096 MB / 0.6895 GB, free: 7.125 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006101/0.1507, allocations: 362.4 kB / 0.6898 GB, free: 6.766 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005961/0.1513, allocations: 334.7 kB / 0.6902 GB, free: 6.438 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004611/0.1518, allocations: 346.5 kB / 0.6905 GB, free: 6.098 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.487e-05/0.1519, allocations: 36 kB / 0.6905 GB, free: 6.062 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006321/0.1525, allocations: 407.1 kB / 0.6909 GB, free: 5.664 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.1527, allocations: 187.4 kB / 0.6911 GB, free: 5.48 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002706/0.153, allocations: 310.3 kB / 0.6914 GB, free: 5.176 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008637/0.1538, allocations: 0.8682 MB / 0.6922 GB, free: 4.305 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1539, allocations: 0 / 0.6922 GB, free: 4.305 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1539, allocations: 3.938 kB / 0.6922 GB, free: 4.301 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.1539, allocations: 4 kB / 0.6922 GB, free: 4.297 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001246/0.1551, allocations: 0.9346 MB / 0.6932 GB, free: 3.312 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1552, allocations: 8.031 kB / 0.6932 GB, free: 3.305 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.008e-05/0.1553, allocations: 94.7 kB / 0.6933 GB, free: 3.203 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001254/0.1565, allocations: 199.9 kB / 0.6934 GB, free: 3.008 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005954/0.1571, allocations: 494.2 kB / 0.6939 GB, free: 2.488 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.1572, allocations: 37.36 kB / 0.694 GB, free: 2.449 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.7e-05/0.1573, allocations: 48.27 kB / 0.694 GB, free: 2.402 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000998/0.1583, allocations: 0.8485 MB / 0.6948 GB, free: 1.426 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.1583, allocations: 7.938 kB / 0.6948 GB, free: 1.418 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.632e-05/0.1584, allocations: 23.94 kB / 0.6949 GB, free: 1.395 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.583e-05/0.1585, allocations: 64.95 kB / 0.6949 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007655/0.1592, allocations: 0.5734 MB / 0.6955 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003783/0.163, allocations: 5.643 MB / 0.701 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005861/0.1636, allocations: 455.8 kB / 0.7014 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002827/0.1639, allocations: 228.7 kB / 0.7016 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.1639, allocations: 7.984 kB / 0.7016 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.164, allocations: 34.5 kB / 0.7017 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=32): time 1.633e-06/0.164, allocations: 0 / 0.7017 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.002355/0.1663, allocations: 1.506 MB / 0.7032 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.1664, allocations: 59.67 kB / 0.7032 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004693/0.1669, allocations: 0.4911 MB / 0.7037 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.1669, allocations: 29.7 kB / 0.7037 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.1671, allocations: 350.8 kB / 0.7041 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.524e-05/0.1672, allocations: 126.3 kB / 0.7042 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.1674, allocations: 106.2 kB / 0.7043 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1675, allocations: 366.8 kB / 0.7046 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002627/0.1678, allocations: 201.2 kB / 0.7048 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/0.1682, allocations: 447.3 kB / 0.7052 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006997/0.1689, allocations: 0.6882 MB / 0.7059 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.1689, allocations: 0 / 0.7059 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00113/0.17, allocations: 0.8128 MB / 0.7067 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1701, allocations: 8 kB / 0.7067 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.1701, allocations: 8 kB / 0.7067 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004424/0.1705, allocations: 152.9 kB / 0.7069 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/0.171, allocations: 127.7 kB / 0.707 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002981/0.174, allocations: 4.348 MB / 0.7112 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.1743, allocations: 31.97 kB / 0.7113 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/0.1743, allocations: 28 kB / 0.7113 GB, free: 15.29 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002283/0.1746, allocations: 216.4 kB / 0.7115 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.941e-05/0.1747, allocations: 63.41 kB / 0.7116 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009577/0.1756, allocations: 0.6006 MB / 0.7121 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1756, allocations: 4 kB / 0.7122 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1756, allocations: 0 / 0.7122 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.1757, allocations: 0 / 0.7122 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.1773, allocations: 1.263 MB / 0.7134 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.1773, allocations: 4 kB / 0.7134 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002479/0.1776, allocations: 51.89 kB / 0.7134 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003731/0.178, allocations: 152.3 kB / 0.7136 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.443e-05/0.178, allocations: 7.938 kB / 0.7136 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002942/0.1809, allocations: 4.337 MB / 0.7178 GB, free: 8.043 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.181, allocations: 0 / 0.7178 GB, free: 8.043 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008702/0.1818, allocations: 0.712 MB / 0.7185 GB, free: 7.277 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.182, allocations: 172.3 kB / 0.7187 GB, free: 7.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.028e-05/0.1821, allocations: 8 kB / 0.7187 GB, free: 7.082 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002688/0.1824, allocations: 19.97 kB / 0.7187 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.477e-05/0.1824, allocations: 39.84 kB / 0.7187 GB, free: 7.023 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.1825, allocations: 12 kB / 0.7188 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003033/0.1828, allocations: 330.8 kB / 0.7191 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.4e-07/0.1828, allocations: 0 / 0.7191 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005636/0.1833, allocations: 144 kB / 0.7192 GB, free: 6.551 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001135/0.1845, allocations: 1.26 MB / 0.7204 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001334/0.1858, allocations: 1.072 MB / 0.7215 GB, free: 4.074 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1858, allocations: 0 / 0.7215 GB, free: 4.074 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007787/0.1866, allocations: 0.7419 MB / 0.7222 GB, free: 3.25 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009723/0.1876, allocations: 208.9 kB / 0.7224 GB, free: 3.055 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005412/0.193, allocations: 5.196 MB / 0.7275 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.1934, allocations: 0.9098 MB / 0.7284 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003093/0.1938, allocations: 121.3 kB / 0.7285 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002151/0.194, allocations: 195.4 kB / 0.7287 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of SimCode: time 1.383e-06/0.194, allocations: 0 / 0.7287 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03221/0.2262, allocations: 12.57 MB / 0.741 GB, free: 15.93 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.877/9.103, allocations: 15.69 kB / 0.741 GB, free: 15.91 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_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_Loads_Examples_TestImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)