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.00193/0.00193, 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.002279/0.002279, allocations: 193.8 kB / 16.53 MB, free: 6.699 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.45/1.45, 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.002583/0.002583, allocations: 286.8 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.081/1.081, allocations: 178.6 MB / 0.5073 GB, free: 4.59 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002749/0.002749, allocations: 107.8 kB / 0.6066 GB, free: 24.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.152, allocations: 89.14 MB / 0.6936 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009342/0.1614, allocations: 6.72 MB / 0.7002 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004983/0.1664, allocations: 3.039 MB / 0.7031 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002717/0.1667, allocations: 27.81 kB / 0.7032 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002404/0.1691, allocations: 0.94 MB / 0.7041 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009219/0.17, allocations: 0.4934 MB / 0.7046 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008978/0.1709, allocations: 446 kB / 0.705 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001219/0.1722, allocations: 1.213 MB / 0.7062 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009155/0.1731, allocations: 0.6621 MB / 0.7068 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005215/0.1736, allocations: 478.3 kB / 0.7073 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006392/0.1743, allocations: 0.5175 MB / 0.7078 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.1744, allocations: 68 kB / 0.7078 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006082/0.175, allocations: 371.3 kB / 0.7082 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003262/0.1753, allocations: 319.1 kB / 0.7085 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004572/0.1758, allocations: 445.7 kB / 0.7089 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001273/0.1771, allocations: 1.203 MB / 0.7101 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1771, allocations: 0 / 0.7101 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.042e-06/0.1771, allocations: 0 / 0.7101 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.1771, allocations: 0 / 0.7101 GB, free: 3.281 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.001909/0.179, allocations: 1.167 MB / 0.7112 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.1791, allocations: 12.03 kB / 0.7113 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001558/0.1792, allocations: 118.7 kB / 0.7114 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001529/0.1808, allocations: 239.6 kB / 0.7116 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008037/0.1816, allocations: 0.5491 MB / 0.7121 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.273e-05/0.1816, allocations: 45.67 kB / 0.7122 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.1818, allocations: 68.36 kB / 0.7122 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.1833, allocations: 1.089 MB / 0.7133 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.1834, allocations: 7.938 kB / 0.7133 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.717e-05/0.1835, allocations: 35.98 kB / 0.7134 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001653/0.1836, allocations: 81.25 kB / 0.7134 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.1849, allocations: 0.7543 MB / 0.7142 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005758/0.1907, allocations: 5.889 MB / 0.7199 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.1917, allocations: 0.5581 MB / 0.7205 GB, free: 8.027 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004787/0.1922, allocations: 326 kB / 0.7208 GB, free: 7.707 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.594e-05/0.1922, allocations: 8.438 kB / 0.7208 GB, free: 7.699 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.1923, allocations: 35 kB / 0.7208 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=47): time 1.533e-06/0.1923, allocations: 3.938 kB / 0.7208 GB, free: 7.652 MB / 0.5137 GB Notification: Performance of matching and sorting (n=48): time 0.003983/0.1963, allocations: 1.982 MB / 0.7228 GB, free: 5.578 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.1963, allocations: 55.84 kB / 0.7228 GB, free: 5.512 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006984/0.197, allocations: 0.5585 MB / 0.7234 GB, free: 4.945 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.812e-05/0.1971, allocations: 37.7 kB / 0.7234 GB, free: 4.902 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003572/0.1975, allocations: 411 kB / 0.7238 GB, free: 4.496 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.1976, allocations: 177.5 kB / 0.7239 GB, free: 4.32 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/0.1979, allocations: 130.5 kB / 0.7241 GB, free: 4.188 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002148/0.1981, allocations: 378.7 kB / 0.7244 GB, free: 3.809 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004756/0.1986, allocations: 273.8 kB / 0.7247 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006397/0.1992, allocations: 489 kB / 0.7252 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.2003, allocations: 0.8171 MB / 0.726 GB, free: 2.062 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2004, allocations: 0 / 0.726 GB, free: 2.062 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001954/0.2023, allocations: 1.082 MB / 0.727 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.2023, allocations: 8 kB / 0.727 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.2024, allocations: 12.78 kB / 0.727 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008457/0.2032, allocations: 283.1 kB / 0.7273 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004885/0.2037, allocations: 123.8 kB / 0.7274 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007479/0.2112, allocations: 7.138 MB / 0.7344 GB, free: 8.828 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005144/0.2117, allocations: 40.03 kB / 0.7344 GB, free: 8.789 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.153e-05/0.2118, allocations: 28 kB / 0.7345 GB, free: 8.762 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 (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.0003465/0.2122, allocations: 257.4 kB / 0.7347 GB, free: 8.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.2123, allocations: 75.14 kB / 0.7348 GB, free: 8.426 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/0.214, allocations: 0.8846 MB / 0.7356 GB, free: 7.52 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.214, allocations: 8 kB / 0.7356 GB, free: 7.512 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.214, allocations: 0 / 0.7356 GB, free: 7.512 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.214, allocations: 7.984 kB / 0.7357 GB, free: 7.504 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002736/0.2168, allocations: 1.721 MB / 0.7373 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.2168, allocations: 3.938 kB / 0.7373 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.2171, allocations: 68.08 kB / 0.7374 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007541/0.2178, allocations: 267.1 kB / 0.7377 GB, free: 5.348 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.334e-05/0.2179, allocations: 12 kB / 0.7377 GB, free: 5.336 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007278/0.2251, allocations: 7.119 MB / 0.7446 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.2252, allocations: 8.156 kB / 0.7446 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/0.2268, allocations: 0.9796 MB / 0.7456 GB, free: 12.62 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002736/0.2271, allocations: 188.2 kB / 0.7458 GB, free: 12.42 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.049e-05/0.2272, allocations: 23.92 kB / 0.7458 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000366/0.2275, allocations: 23.97 kB / 0.7458 GB, free: 12.37 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.827e-05/0.2276, allocations: 47.89 kB / 0.7459 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.2277, allocations: 19.98 kB / 0.7459 GB, free: 12.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0004566/0.2281, allocations: 383.1 kB / 0.7462 GB, free: 11.94 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2281, allocations: 0 / 0.7462 GB, free: 11.94 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0007811/0.2289, allocations: 220 kB / 0.7465 GB, free: 11.72 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 (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.001955/0.2309, allocations: 1.552 MB / 0.748 GB, free: 10.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002188/0.2331, allocations: 1.334 MB / 0.7493 GB, free: 8.727 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.2331, allocations: 0 / 0.7493 GB, free: 8.727 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001335/0.2345, allocations: 0.8893 MB / 0.7501 GB, free: 7.785 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.2355, allocations: 216.7 kB / 0.7503 GB, free: 7.578 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009071/0.2446, allocations: 6.504 MB / 0.7567 GB, free: 0.7383 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007316/0.2453, allocations: 1.016 MB / 0.7577 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0004169/0.2457, allocations: 122 kB / 0.7578 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000337/0.2461, allocations: 251.4 kB / 0.758 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of SimCode: time 4.21e-07/0.2461, allocations: 0 / 0.758 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2874/0.5335, allocations: 17.13 MB / 0.7748 GB, free: 80.02 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.797/10.33, allocations: 7.125 kB / 0.7748 GB, free: 80.02 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)