Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_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.001993/0.001993, 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.002308/0.002308, allocations: 194.4 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.498/1.498, allocations: 222.9 MB / 240.2 MB, free: 4.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002592/0.002593, allocations: 283.1 kB / 290.7 MB, free: 1.852 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.068/1.068, allocations: 178.6 MB / 0.5073 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002757/0.002757, allocations: 101.9 kB / 0.6066 GB, free: 24.53 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.155, allocations: 89.14 MB / 0.6936 GB, free: 4.238 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.008075/0.1631, allocations: 6.142 MB / 0.6996 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.005208/0.1683, allocations: 3.173 MB / 0.7027 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003826/0.1687, allocations: 27.81 kB / 0.7027 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002363/0.1711, allocations: 0.9398 MB / 0.7036 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001059/0.1722, allocations: 469.5 kB / 0.7041 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.1733, allocations: 0.4983 MB / 0.7046 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001144/0.1745, allocations: 1.108 MB / 0.7057 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008889/0.1754, allocations: 0.6352 MB / 0.7063 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005512/0.1759, allocations: 434.4 kB / 0.7067 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005857/0.1765, allocations: 474.1 kB / 0.7071 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.768e-05/0.1766, allocations: 60 kB / 0.7072 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009024/0.1776, allocations: 491 kB / 0.7077 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002866/0.1779, allocations: 283.3 kB / 0.7079 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003911/0.1782, allocations: 401.9 kB / 0.7083 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001299/0.1796, allocations: 1.168 MB / 0.7095 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1796, allocations: 3.938 kB / 0.7095 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.362e-06/0.1796, allocations: 3.938 kB / 0.7095 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.838e-06/0.1796, allocations: 0 / 0.7095 GB, free: 3.949 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.0016/0.1812, allocations: 1.063 MB / 0.7105 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1812, allocations: 8.031 kB / 0.7105 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001364/0.1814, allocations: 118.7 kB / 0.7106 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001463/0.1829, allocations: 215.7 kB / 0.7108 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008198/0.1837, allocations: 0.5491 MB / 0.7114 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.248e-05/0.1837, allocations: 45.67 kB / 0.7114 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.1838, allocations: 72.27 kB / 0.7115 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.1854, allocations: 1.037 MB / 0.7125 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/0.1854, allocations: 7.938 kB / 0.7125 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-05/0.1855, allocations: 27.98 kB / 0.7125 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.88e-05/0.1856, allocations: 69.27 kB / 0.7126 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.1867, allocations: 0.6996 MB / 0.7133 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005502/0.1922, allocations: 5.741 MB / 0.7189 GB, free: 9.664 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009189/0.1932, allocations: 0.5949 MB / 0.7195 GB, free: 9.023 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000833/0.194, allocations: 420.6 kB / 0.7199 GB, free: 8.609 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.194, allocations: 8 kB / 0.7199 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.1941, allocations: 38.5 kB / 0.7199 GB, free: 8.555 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=41): time 2.164e-06/0.1941, allocations: 0 / 0.7199 GB, free: 8.555 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.004706/0.1988, allocations: 2.057 MB / 0.7219 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.1989, allocations: 59.41 kB / 0.722 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005241/0.1994, allocations: 458.8 kB / 0.7224 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.613e-05/0.1995, allocations: 37.7 kB / 0.7225 GB, free: 5.836 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002912/0.1998, allocations: 391 kB / 0.7228 GB, free: 5.445 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.1999, allocations: 153.8 kB / 0.723 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.2001, allocations: 106.2 kB / 0.7231 GB, free: 5.184 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001794/0.2003, allocations: 358.8 kB / 0.7234 GB, free: 4.824 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003911/0.2007, allocations: 253.2 kB / 0.7237 GB, free: 4.578 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000538/0.2012, allocations: 461 kB / 0.7241 GB, free: 4.031 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.2022, allocations: 0.7518 MB / 0.7248 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.2022, allocations: 7.938 kB / 0.7248 GB, free: 3.176 MB / 0.5137 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001963/0.2042, allocations: 1.057 MB / 0.7259 GB, free: 2.098 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.2042, allocations: 8 kB / 0.7259 GB, free: 2.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.2042, allocations: 8.844 kB / 0.7259 GB, free: 2.082 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.2053, allocations: 335 kB / 0.7262 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003143/0.2057, allocations: 99.81 kB / 0.7263 GB, free: 1.645 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007845/0.2135, allocations: 7.521 MB / 0.7337 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004702/0.214, allocations: 40.02 kB / 0.7337 GB, free: 9.512 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.788e-05/0.2141, allocations: 24 kB / 0.7337 GB, free: 9.488 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.0003686/0.2145, allocations: 246.1 kB / 0.7339 GB, free: 9.238 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.7e-05/0.2146, allocations: 55.34 kB / 0.734 GB, free: 9.184 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001814/0.2164, allocations: 0.9195 MB / 0.7349 GB, free: 8.242 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.2164, allocations: 4 kB / 0.7349 GB, free: 8.238 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.2164, allocations: 4 kB / 0.7349 GB, free: 8.234 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.2164, allocations: 0 / 0.7349 GB, free: 8.234 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002755/0.2192, allocations: 1.72 MB / 0.7366 GB, free: 6.426 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.2192, allocations: 0 / 0.7366 GB, free: 6.426 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.2194, allocations: 39.97 kB / 0.7366 GB, free: 6.387 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001003/0.2204, allocations: 331.4 kB / 0.7369 GB, free: 6.051 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.355e-05/0.2204, allocations: 11.98 kB / 0.737 GB, free: 6.039 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007553/0.228, allocations: 7.509 MB / 0.7443 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.228, allocations: 0 / 0.7443 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.2298, allocations: 1.019 MB / 0.7453 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002396/0.2301, allocations: 172.3 kB / 0.7454 GB, free: 12.72 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.81e-05/0.2302, allocations: 11.94 kB / 0.7455 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002901/0.2305, allocations: 27.97 kB / 0.7455 GB, free: 12.68 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.2306, allocations: 43.88 kB / 0.7455 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-05/0.2306, allocations: 12 kB / 0.7455 GB, free: 12.62 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003475/0.231, allocations: 310.8 kB / 0.7458 GB, free: 12.32 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.21e-07/0.231, allocations: 0 / 0.7458 GB, free: 12.32 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0007417/0.2317, allocations: 200 kB / 0.746 GB, free: 12.13 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.00203/0.2338, allocations: 1.552 MB / 0.7475 GB, free: 10.52 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002023/0.2358, allocations: 1.258 MB / 0.7488 GB, free: 9.207 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2358, allocations: 3.938 kB / 0.7488 GB, free: 9.203 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.2371, allocations: 0.8543 MB / 0.7496 GB, free: 8.297 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.2381, allocations: 214.4 kB / 0.7498 GB, free: 8.102 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008418/0.2466, allocations: 5.995 MB / 0.7557 GB, free: 1.781 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006693/0.2473, allocations: 0.9921 MB / 0.7566 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003318/0.2476, allocations: 97.28 kB / 0.7567 GB, free: 0.668 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002815/0.2479, allocations: 231.4 kB / 0.7569 GB, free: 452 kB / 0.545 GB Notification: Performance of SimCode: time 7.52e-07/0.2479, allocations: 4 kB / 0.7569 GB, free: 448 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.052/0.2999, allocations: 15.33 MB / 0.7719 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.787/10.09, allocations: 3.938 kB / 0.7719 GB, free: 1.41 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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_ThreePhasesBalanced_Lines_Examples_ACLine_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1)