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.001288/0.001288, 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.001383/0.001383, allocations: 193.8 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.411/1.411, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002532/0.002532, allocations: 283 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 1.082/1.082, allocations: 178.6 MB / 0.5073 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002822/0.002823, allocations: 102 kB / 0.6066 GB, free: 24.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1479, allocations: 89.14 MB / 0.6936 GB, free: 4.23 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.00656/0.1545, allocations: 4.841 MB / 0.6983 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003871/0.1584, allocations: 2.457 MB / 0.7007 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002059/0.1586, allocations: 23.81 kB / 0.7008 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001127/0.1598, allocations: 409.8 kB / 0.7012 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008283/0.1606, allocations: 441.7 kB / 0.7016 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007467/0.1614, allocations: 372.7 kB / 0.7019 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009145/0.1623, allocations: 0.9174 MB / 0.7028 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004999/0.1628, allocations: 355.3 kB / 0.7032 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003786/0.1632, allocations: 334.7 kB / 0.7035 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004251/0.1636, allocations: 342.5 kB / 0.7038 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.931e-05/0.1637, allocations: 40 kB / 0.7038 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006547/0.1644, allocations: 411 kB / 0.7042 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.1646, allocations: 175.4 kB / 0.7044 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003172/0.1649, allocations: 322.2 kB / 0.7047 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009434/0.1658, allocations: 0.8682 MB / 0.7056 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1658, allocations: 0 / 0.7056 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.373e-06/0.1659, allocations: 0 / 0.7056 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.937e-06/0.1659, allocations: 0 / 0.7056 GB, free: 7.961 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001388/0.1673, allocations: 0.9347 MB / 0.7065 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.1673, allocations: 8.031 kB / 0.7065 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.1674, allocations: 98.62 kB / 0.7066 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001248/0.1687, allocations: 199.9 kB / 0.7068 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006937/0.1694, allocations: 0.4904 MB / 0.7072 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.1694, allocations: 29.38 kB / 0.7073 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.683e-05/0.1695, allocations: 48.36 kB / 0.7073 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/0.1706, allocations: 0.8446 MB / 0.7081 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.1707, allocations: 7.875 kB / 0.7082 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.356e-05/0.1707, allocations: 23.98 kB / 0.7082 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.371e-05/0.1708, allocations: 68.95 kB / 0.7082 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008712/0.1717, allocations: 0.5734 MB / 0.7088 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004759/0.1765, allocations: 5.65 MB / 0.7143 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006755/0.1772, allocations: 462.2 kB / 0.7148 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003288/0.1775, allocations: 236.6 kB / 0.715 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.1776, allocations: 0.5312 kB / 0.715 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.1776, allocations: 34.56 kB / 0.715 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=32): time 1.944e-06/0.1776, allocations: 0 / 0.715 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33): time 0.002693/0.1803, allocations: 1.509 MB / 0.7165 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.1804, allocations: 55.69 kB / 0.7165 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005354/0.1809, allocations: 499 kB / 0.717 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.1809, allocations: 29.7 kB / 0.717 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002561/0.1812, allocations: 354.8 kB / 0.7174 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.1813, allocations: 126.3 kB / 0.7175 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.1815, allocations: 106.2 kB / 0.7176 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001757/0.1817, allocations: 366.8 kB / 0.718 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002977/0.182, allocations: 193.2 kB / 0.7181 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000493/0.1825, allocations: 455.3 kB / 0.7186 GB, free: 9.703 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008466/0.1833, allocations: 0.6835 MB / 0.7192 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.1833, allocations: 4 kB / 0.7192 GB, free: 8.898 MB / 0.5137 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0013/0.1846, allocations: 0.8055 MB / 0.72 GB, free: 8.07 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.1847, allocations: 8 kB / 0.72 GB, free: 8.062 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.1847, allocations: 12 kB / 0.7201 GB, free: 8.051 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000488/0.1852, allocations: 156.6 kB / 0.7202 GB, free: 7.883 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004569/0.1856, allocations: 123.8 kB / 0.7203 GB, free: 7.762 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00368/0.1893, allocations: 4.34 MB / 0.7246 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003468/0.1897, allocations: 36.12 kB / 0.7246 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.094e-05/0.1897, allocations: 32 kB / 0.7246 GB, free: 2.93 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.0002603/0.19, allocations: 217.5 kB / 0.7248 GB, free: 2.707 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.277e-05/0.1901, allocations: 59.25 kB / 0.7249 GB, free: 2.648 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/0.1912, allocations: 0.5969 MB / 0.7255 GB, free: 2.031 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.1912, allocations: 0 / 0.7255 GB, free: 2.031 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1912, allocations: 4 kB / 0.7255 GB, free: 2.027 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1912, allocations: 0 / 0.7255 GB, free: 2.027 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.1931, allocations: 1.271 MB / 0.7267 GB, free: 0.6641 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1931, allocations: 0 / 0.7267 GB, free: 0.6641 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002602/0.1934, allocations: 55.89 kB / 0.7268 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000401/0.1938, allocations: 144.3 kB / 0.7269 GB, free: 464 kB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.539e-05/0.1938, allocations: 11.94 kB / 0.7269 GB, free: 452 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003525/0.1973, allocations: 4.332 MB / 0.7311 GB, free: 11.69 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/0.1974, allocations: 20.02 kB / 0.7312 GB, free: 11.67 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.1984, allocations: 0.7042 MB / 0.7319 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002035/0.1986, allocations: 164.4 kB / 0.732 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.356e-05/0.1987, allocations: 8 kB / 0.732 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.1989, allocations: 23.97 kB / 0.732 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/0.199, allocations: 39.83 kB / 0.7321 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/0.199, allocations: 12 kB / 0.7321 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003568/0.1994, allocations: 326.9 kB / 0.7324 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1994, allocations: 0 / 0.7324 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0005951/0.2, allocations: 144 kB / 0.7325 GB, free: 10.2 MB / 0.5294 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.001367/0.2014, allocations: 1.261 MB / 0.7338 GB, free: 8.867 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001499/0.2029, allocations: 1.075 MB / 0.7348 GB, free: 7.711 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.2029, allocations: 0 / 0.7348 GB, free: 7.711 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008816/0.2038, allocations: 0.7351 MB / 0.7355 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009942/0.2048, allocations: 210.9 kB / 0.7357 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006391/0.2112, allocations: 5.191 MB / 0.7408 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000573/0.2118, allocations: 0.9097 MB / 0.7417 GB, free: 196 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003405/0.2121, allocations: 117.3 kB / 0.7418 GB, free: 76 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002803/0.2124, allocations: 195.4 kB / 0.742 GB, free: 15.88 MB / 0.545 GB Notification: Performance of SimCode: time 3.31e-07/0.2124, allocations: 0 / 0.742 GB, free: 15.88 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04464/0.2571, allocations: 12.55 MB / 0.7543 GB, free: 3.602 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.73/9.987, allocations: 15.78 kB / 0.7543 GB, free: 3.59 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)