Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",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.001271/0.001271, 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.001271/0.001271, allocations: 198.7 kB / 16.54 MB, free: 6.672 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.425/1.425, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002623/0.002623, allocations: 275 kB / 290.7 MB, free: 2.035 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.089/1.089, allocations: 178.6 MB / 0.5073 GB, free: 4.598 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002775/0.002775, allocations: 101.6 kB / 0.6066 GB, free: 24.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1487, allocations: 89.14 MB / 0.6936 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008522/0.1573, allocations: 6.076 MB / 0.6995 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.005077/0.1624, allocations: 3.137 MB / 0.7026 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002608/0.1626, allocations: 31.81 kB / 0.7026 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002338/0.165, allocations: 0.9359 MB / 0.7035 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009032/0.1659, allocations: 469.5 kB / 0.704 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.1669, allocations: 493.9 kB / 0.7045 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001107/0.1681, allocations: 1.092 MB / 0.7055 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008692/0.1689, allocations: 0.643 MB / 0.7062 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004827/0.1694, allocations: 438.3 kB / 0.7066 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000562/0.17, allocations: 470.2 kB / 0.707 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.005e-05/0.1701, allocations: 56 kB / 0.7071 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007603/0.1709, allocations: 483 kB / 0.7075 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002809/0.1712, allocations: 287.2 kB / 0.7078 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003926/0.1716, allocations: 401.9 kB / 0.7082 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.1728, allocations: 1.16 MB / 0.7093 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1728, allocations: 0 / 0.7093 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.1728, allocations: 4 kB / 0.7093 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.089e-05/0.1728, allocations: 0 / 0.7093 GB, free: 4.074 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001644/0.1745, allocations: 1.056 MB / 0.7104 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1745, allocations: 8.031 kB / 0.7104 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001396/0.1747, allocations: 122.7 kB / 0.7105 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00147/0.1762, allocations: 219.6 kB / 0.7107 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007711/0.1769, allocations: 0.5336 MB / 0.7112 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/0.177, allocations: 45.69 kB / 0.7113 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.1771, allocations: 60.36 kB / 0.7113 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.1786, allocations: 1.041 MB / 0.7123 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.252e-05/0.1786, allocations: 7.906 kB / 0.7123 GB, free: 0.7734 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.835e-05/0.1787, allocations: 28 kB / 0.7124 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.617e-05/0.1788, allocations: 73.2 kB / 0.7124 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.1799, allocations: 0.688 MB / 0.7131 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005513/0.1854, allocations: 5.76 MB / 0.7187 GB, free: 9.801 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009306/0.1864, allocations: 0.5988 MB / 0.7193 GB, free: 9.156 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008311/0.1872, allocations: 424.6 kB / 0.7197 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.1873, allocations: 4 kB / 0.7197 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.1873, allocations: 34.56 kB / 0.7198 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=41): time 2.044e-06/0.1873, allocations: 0 / 0.7198 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.00462/0.1919, allocations: 2.057 MB / 0.7218 GB, free: 6.539 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.192, allocations: 55.41 kB / 0.7218 GB, free: 6.473 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004944/0.1925, allocations: 458.7 kB / 0.7223 GB, free: 6.02 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.909e-05/0.1925, allocations: 29.7 kB / 0.7223 GB, free: 5.984 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002722/0.1928, allocations: 387.1 kB / 0.7227 GB, free: 5.598 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.193, allocations: 149.8 kB / 0.7228 GB, free: 5.449 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.1931, allocations: 110.2 kB / 0.7229 GB, free: 5.336 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001776/0.1933, allocations: 370.8 kB / 0.7233 GB, free: 4.965 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003809/0.1937, allocations: 241.2 kB / 0.7235 GB, free: 4.73 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005393/0.1942, allocations: 457 kB / 0.7239 GB, free: 4.188 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009946/0.1953, allocations: 0.7597 MB / 0.7247 GB, free: 3.332 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.1953, allocations: 4 kB / 0.7247 GB, free: 3.328 MB / 0.5137 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001961/0.1972, allocations: 1.062 MB / 0.7257 GB, free: 2.246 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.1973, allocations: 8 kB / 0.7257 GB, free: 2.238 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.1973, allocations: 4 kB / 0.7257 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/0.1984, allocations: 335.3 kB / 0.726 GB, free: 1.895 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003258/0.1987, allocations: 95.83 kB / 0.7261 GB, free: 1.801 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007832/0.2065, allocations: 7.524 MB / 0.7335 GB, free: 9.703 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/0.2069, allocations: 28.02 kB / 0.7335 GB, free: 9.676 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.601e-05/0.207, allocations: 28 kB / 0.7335 GB, free: 9.648 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (53): * Single equations (assignments): 49 * 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): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003246/0.2073, allocations: 245.5 kB / 0.7338 GB, free: 9.398 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.703e-05/0.2074, allocations: 59.34 kB / 0.7338 GB, free: 9.34 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00179/0.2092, allocations: 0.9116 MB / 0.7347 GB, free: 8.406 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.2092, allocations: 4.188 kB / 0.7347 GB, free: 8.402 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.2093, allocations: 11.94 kB / 0.7347 GB, free: 8.391 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.2093, allocations: 7.984 kB / 0.7347 GB, free: 8.383 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002787/0.2121, allocations: 1.704 MB / 0.7364 GB, free: 6.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.2121, allocations: 4.188 kB / 0.7364 GB, free: 6.586 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.2123, allocations: 43.91 kB / 0.7365 GB, free: 6.543 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009821/0.2132, allocations: 327.3 kB / 0.7368 GB, free: 6.211 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.323e-05/0.2133, allocations: 11.98 kB / 0.7368 GB, free: 6.199 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007667/0.221, allocations: 7.509 MB / 0.7441 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.221, allocations: 0 / 0.7441 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.2228, allocations: 1.019 MB / 0.7451 GB, free: 13.07 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002322/0.223, allocations: 172.3 kB / 0.7453 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.918e-05/0.2231, allocations: 11.94 kB / 0.7453 GB, free: 12.87 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002874/0.2234, allocations: 27.97 kB / 0.7453 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.2235, allocations: 43.88 kB / 0.7453 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.2235, allocations: 12 kB / 0.7454 GB, free: 12.79 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003484/0.2239, allocations: 310.8 kB / 0.7457 GB, free: 12.49 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2239, allocations: 0 / 0.7457 GB, free: 12.49 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0007518/0.2246, allocations: 196 kB / 0.7458 GB, free: 12.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * 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): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002125/0.2268, allocations: 1.56 MB / 0.7474 GB, free: 10.68 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002004/0.2288, allocations: 1.254 MB / 0.7486 GB, free: 9.371 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.2288, allocations: 4.062 kB / 0.7486 GB, free: 9.367 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.2301, allocations: 0.858 MB / 0.7494 GB, free: 8.457 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.2311, allocations: 208.6 kB / 0.7496 GB, free: 8.266 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008536/0.2396, allocations: 5.95 MB / 0.7554 GB, free: 1.988 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006664/0.2403, allocations: 0.9843 MB / 0.7564 GB, free: 0.9766 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003203/0.2407, allocations: 101.2 kB / 0.7565 GB, free: 0.8789 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000274/0.2409, allocations: 223.4 kB / 0.7567 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of SimCode: time 5.51e-07/0.2409, allocations: 0 / 0.7567 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05077/0.2917, allocations: 15.19 MB / 0.7715 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.85/10.14, allocations: 18.47 kB / 0.7716 GB, free: 1.711 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_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_Lines_Examples_ACLine_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1)