Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",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.001286/0.001286, 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.001299/0.001299, allocations: 192.3 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002178/0.002178, allocations: 286.5 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9416/0.9416, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001703/0.001704, allocations: 94.69 kB / 0.5954 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1321, allocations: 86.98 MB / 0.6803 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008062/0.1402, allocations: 6.725 MB / 0.6869 GB, free: 9.824 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004688/0.1449, allocations: 3.035 MB / 0.6898 GB, free: 6.789 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005395/0.1455, allocations: 31.75 kB / 0.6899 GB, free: 6.758 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00238/0.1479, allocations: 0.9516 MB / 0.6908 GB, free: 5.805 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001326/0.1493, allocations: 0.4934 MB / 0.6913 GB, free: 5.309 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.1503, allocations: 427.1 kB / 0.6917 GB, free: 4.891 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001759/0.1521, allocations: 1.217 MB / 0.6929 GB, free: 3.672 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001102/0.1532, allocations: 0.6506 MB / 0.6935 GB, free: 3.02 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008881/0.1541, allocations: 482.3 kB / 0.694 GB, free: 2.547 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008365/0.155, allocations: 0.5098 MB / 0.6945 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.1552, allocations: 68 kB / 0.6945 GB, free: 1.969 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007171/0.1559, allocations: 379.2 kB / 0.6949 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003179/0.1562, allocations: 319.1 kB / 0.6952 GB, free: 1.285 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005361/0.1568, allocations: 449.8 kB / 0.6956 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001229/0.158, allocations: 1.203 MB / 0.6968 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.158, allocations: 0 / 0.6968 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.735e-06/0.158, allocations: 0 / 0.6968 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.438e-05/0.1581, allocations: 3.938 kB / 0.6968 GB, free: 15.63 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002447/0.1605, allocations: 1.157 MB / 0.6979 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.1606, allocations: 12.03 kB / 0.6979 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002048/0.1608, allocations: 114.7 kB / 0.698 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001678/0.1625, allocations: 243.6 kB / 0.6983 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008003/0.1633, allocations: 0.5414 MB / 0.6988 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.783e-05/0.1633, allocations: 49.67 kB / 0.6989 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.1634, allocations: 68.27 kB / 0.6989 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.1649, allocations: 1.085 MB / 0.7 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.1649, allocations: 3.938 kB / 0.7 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.477e-05/0.165, allocations: 35.98 kB / 0.7 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001458/0.1651, allocations: 89.25 kB / 0.7001 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.1663, allocations: 0.7465 MB / 0.7008 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004919/0.1712, allocations: 5.897 MB / 0.7066 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009357/0.1721, allocations: 0.5547 MB / 0.7071 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004103/0.1726, allocations: 325 kB / 0.7074 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.1726, allocations: 12.44 kB / 0.7075 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.1726, allocations: 35 kB / 0.7075 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 2.014e-06/0.1726, allocations: 4 kB / 0.7075 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.003636/0.1763, allocations: 1.978 MB / 0.7094 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.1763, allocations: 59.84 kB / 0.7095 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005571/0.1769, allocations: 0.5586 MB / 0.71 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.1769, allocations: 33.7 kB / 0.7101 GB, free: 1.277 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002427/0.1772, allocations: 414.9 kB / 0.7105 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.1773, allocations: 173.6 kB / 0.7106 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001801/0.1775, allocations: 126.4 kB / 0.7107 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1776, allocations: 378.7 kB / 0.7111 GB, free: 188 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003955/0.178, allocations: 273.8 kB / 0.7114 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005008/0.1786, allocations: 0.4892 MB / 0.7118 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009482/0.1795, allocations: 0.8094 MB / 0.7126 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1795, allocations: 3.938 kB / 0.7126 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001708/0.1812, allocations: 1.087 MB / 0.7137 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.1813, allocations: 8 kB / 0.7137 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.1813, allocations: 8 kB / 0.7137 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007942/0.1821, allocations: 275.3 kB / 0.714 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004649/0.1826, allocations: 131.8 kB / 0.7141 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005941/0.1885, allocations: 7.139 MB / 0.7211 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005268/0.189, allocations: 35.97 kB / 0.7211 GB, free: 5.152 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.824e-05/0.1891, allocations: 28 kB / 0.7211 GB, free: 5.125 MB / 0.5137 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003002/0.1894, allocations: 255.7 kB / 0.7214 GB, free: 4.867 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.1895, allocations: 71.16 kB / 0.7214 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001482/0.191, allocations: 0.8923 MB / 0.7223 GB, free: 3.883 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.191, allocations: 8 kB / 0.7223 GB, free: 3.875 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.423e-06/0.1911, allocations: 8 kB / 0.7223 GB, free: 3.867 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1911, allocations: 3.984 kB / 0.7223 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.1935, allocations: 1.724 MB / 0.724 GB, free: 2.051 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.1935, allocations: 3.938 kB / 0.724 GB, free: 2.047 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002672/0.1938, allocations: 59.89 kB / 0.7241 GB, free: 1.988 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000719/0.1945, allocations: 271.4 kB / 0.7243 GB, free: 1.711 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.1945, allocations: 12 kB / 0.7243 GB, free: 1.699 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005931/0.2005, allocations: 7.127 MB / 0.7313 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.2005, allocations: 4.031 kB / 0.7313 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.2019, allocations: 0.9873 MB / 0.7323 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002691/0.2022, allocations: 188.3 kB / 0.7325 GB, free: 8.773 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.2023, allocations: 15.84 kB / 0.7325 GB, free: 8.758 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003817/0.2027, allocations: 31.95 kB / 0.7325 GB, free: 8.727 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.508e-05/0.2028, allocations: 35.95 kB / 0.7325 GB, free: 8.691 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-05/0.2029, allocations: 19.94 kB / 0.7326 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004045/0.2033, allocations: 387.1 kB / 0.7329 GB, free: 8.301 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2033, allocations: 0 / 0.7329 GB, free: 8.301 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007529/0.204, allocations: 224 kB / 0.7331 GB, free: 8.082 MB / 0.5294 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001645/0.2057, allocations: 1.548 MB / 0.7346 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002015/0.2077, allocations: 1.33 MB / 0.7359 GB, free: 5.09 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2077, allocations: 0 / 0.7359 GB, free: 5.09 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001201/0.2089, allocations: 0.8935 MB / 0.7368 GB, free: 4.145 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.21, allocations: 211.4 kB / 0.737 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008029/0.218, allocations: 6.53 MB / 0.7434 GB, free: 13.08 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/0.2186, allocations: 1.013 MB / 0.7444 GB, free: 12.04 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004167/0.219, allocations: 118 kB / 0.7445 GB, free: 11.93 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.2193, allocations: 259.3 kB / 0.7447 GB, free: 11.67 MB / 0.545 GB Notification: Performance of SimCode: time 4.81e-07/0.2193, allocations: 0 / 0.7447 GB, free: 11.67 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0457/0.265, allocations: 17.12 MB / 0.7615 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.917/9.182, allocations: 6.172 kB / 0.7615 GB, free: 10.83 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_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_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1)