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.001119/0.001119, 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.001111/0.001111, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.293/1.293, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002079/0.002079, allocations: 274.9 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9438/0.9438, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 96.45 kB / 0.5954 GB, free: 27.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1346, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.007339/0.142, allocations: 6.127 MB / 0.6863 GB, free: 10.44 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004317/0.1463, allocations: 3.178 MB / 0.6894 GB, free: 7.254 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002464/0.1466, allocations: 27.81 kB / 0.6894 GB, free: 7.227 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002111/0.1487, allocations: 0.9291 MB / 0.6903 GB, free: 6.297 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007943/0.1495, allocations: 477.5 kB / 0.6908 GB, free: 5.828 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009602/0.1505, allocations: 0.4949 MB / 0.6913 GB, free: 5.332 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009322/0.1515, allocations: 1.096 MB / 0.6923 GB, free: 4.234 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007956/0.1523, allocations: 0.6388 MB / 0.693 GB, free: 3.594 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004636/0.1527, allocations: 442.3 kB / 0.6934 GB, free: 3.16 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004916/0.1532, allocations: 482.1 kB / 0.6938 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.133e-05/0.1533, allocations: 60 kB / 0.6939 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006778/0.154, allocations: 479 kB / 0.6944 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002286/0.1542, allocations: 283.3 kB / 0.6946 GB, free: 1.883 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003186/0.1546, allocations: 401.9 kB / 0.695 GB, free: 1.488 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009905/0.1556, allocations: 1.172 MB / 0.6961 GB, free: 320 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1556, allocations: 0 / 0.6961 GB, free: 320 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1556, allocations: 0 / 0.6961 GB, free: 320 kB / 494.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.1556, allocations: 0 / 0.6961 GB, free: 320 kB / 494.1 MB 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.001418/0.157, allocations: 1.069 MB / 0.6972 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1571, allocations: 8.031 kB / 0.6972 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.1572, allocations: 122.5 kB / 0.6973 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/0.1586, allocations: 223.7 kB / 0.6975 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006568/0.1593, allocations: 0.5376 MB / 0.6981 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.621e-05/0.1593, allocations: 49.67 kB / 0.6981 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.995e-05/0.1594, allocations: 60.36 kB / 0.6982 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.1606, allocations: 1.041 MB / 0.6992 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/0.1607, allocations: 7.906 kB / 0.6992 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.312e-05/0.1607, allocations: 31.98 kB / 0.6992 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.317e-05/0.1608, allocations: 69.27 kB / 0.6993 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009411/0.1618, allocations: 0.6918 MB / 0.7 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004237/0.166, allocations: 5.745 MB / 0.7056 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000759/0.1668, allocations: 0.5987 MB / 0.7062 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007272/0.1675, allocations: 427.6 kB / 0.7066 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.1676, allocations: 4 kB / 0.7066 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.1676, allocations: 34.56 kB / 0.7066 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=41): time 1.773e-06/0.1676, allocations: 0 / 0.7066 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.004089/0.1717, allocations: 2.054 MB / 0.7086 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.1717, allocations: 55.41 kB / 0.7087 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000424/0.1722, allocations: 466.8 kB / 0.7091 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.1722, allocations: 37.64 kB / 0.7091 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.1724, allocations: 391 kB / 0.7095 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.1726, allocations: 145.9 kB / 0.7096 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.1727, allocations: 114.2 kB / 0.7098 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1728, allocations: 362.8 kB / 0.7101 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003234/0.1732, allocations: 245.2 kB / 0.7103 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004309/0.1736, allocations: 461 kB / 0.7108 GB, free: 412 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00086/0.1745, allocations: 0.7595 MB / 0.7115 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1745, allocations: 0 / 0.7115 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001757/0.1762, allocations: 1.066 MB / 0.7126 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1763, allocations: 8.125 kB / 0.7126 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.1763, allocations: 12 kB / 0.7126 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009772/0.1773, allocations: 323.1 kB / 0.7129 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/0.1776, allocations: 99.81 kB / 0.713 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006512/0.1841, allocations: 7.526 MB / 0.7203 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000386/0.1845, allocations: 28.03 kB / 0.7204 GB, free: 5.898 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.832e-05/0.1846, allocations: 27.98 kB / 0.7204 GB, free: 5.871 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 (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.0002969/0.1849, allocations: 248.2 kB / 0.7206 GB, free: 5.621 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.185, allocations: 59.34 kB / 0.7207 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/0.1866, allocations: 0.9198 MB / 0.7216 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.401e-06/0.1866, allocations: 4 kB / 0.7216 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.1867, allocations: 4 kB / 0.7216 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1867, allocations: 0 / 0.7216 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00255/0.1892, allocations: 1.72 MB / 0.7233 GB, free: 2.809 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.1892, allocations: 0 / 0.7233 GB, free: 2.809 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001678/0.1894, allocations: 43.91 kB / 0.7233 GB, free: 2.766 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009384/0.1904, allocations: 331.3 kB / 0.7236 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-05/0.1904, allocations: 12 kB / 0.7236 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006447/0.1969, allocations: 7.509 MB / 0.731 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.1969, allocations: 4 kB / 0.731 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.1985, allocations: 1.015 MB / 0.732 GB, free: 9.281 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002499/0.1988, allocations: 176.3 kB / 0.7321 GB, free: 9.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.887e-05/0.1989, allocations: 16 kB / 0.7321 GB, free: 9.074 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003066/0.1992, allocations: 19.97 kB / 0.7322 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.1993, allocations: 39.89 kB / 0.7322 GB, free: 9.016 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.1993, allocations: 16 kB / 0.7322 GB, free: 9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003412/0.1997, allocations: 314.8 kB / 0.7325 GB, free: 8.695 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1997, allocations: 0 / 0.7325 GB, free: 8.695 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000798/0.2005, allocations: 200 kB / 0.7327 GB, free: 8.5 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 (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.001836/0.2023, allocations: 1.552 MB / 0.7342 GB, free: 6.887 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001912/0.2042, allocations: 1.258 MB / 0.7355 GB, free: 5.578 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.2043, allocations: 0 / 0.7355 GB, free: 5.578 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.2054, allocations: 0.8544 MB / 0.7363 GB, free: 4.672 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009897/0.2064, allocations: 217.4 kB / 0.7365 GB, free: 4.477 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00794/0.2144, allocations: 6.006 MB / 0.7424 GB, free: 14.14 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005647/0.2149, allocations: 0.9921 MB / 0.7433 GB, free: 13.12 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003077/0.2153, allocations: 101.2 kB / 0.7434 GB, free: 13.02 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002565/0.2155, allocations: 227.4 kB / 0.7436 GB, free: 12.8 MB / 0.545 GB Notification: Performance of SimCode: time 5.31e-07/0.2155, allocations: 0 / 0.7436 GB, free: 12.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04368/0.2592, allocations: 15.31 MB / 0.7586 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.982/9.241, allocations: 23.95 kB / 0.7586 GB, free: 13.75 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)