Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_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.001225/0.001225, 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.001308/0.001308, allocations: 196.8 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.446/1.446, 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.002477/0.002477, allocations: 298.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.058/1.058, allocations: 178.5 MB / 0.5073 GB, free: 4.613 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002663/0.002663, allocations: 101.6 kB / 0.6066 GB, free: 24.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1739, allocations: 89.13 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.04065/0.2146, allocations: 32.6 MB / 0.7254 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01829/0.2329, allocations: 10.27 MB / 0.7355 GB, free: 9.25 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002855/0.2358, allocations: 151.2 kB / 0.7356 GB, free: 9.102 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.01077/0.2466, allocations: 3.711 MB / 0.7392 GB, free: 5.383 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006852/0.2535, allocations: 1.85 MB / 0.741 GB, free: 3.523 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006077/0.2596, allocations: 2.135 MB / 0.7431 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.009549/0.2691, allocations: 7.322 MB / 0.7503 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01372/0.2829, allocations: 9.482 MB / 0.7595 GB, free: 456 kB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.2929/0.5759, allocations: 3.157 MB / 0.7626 GB, free: 24.84 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006036/0.5819, allocations: 3.474 MB / 0.766 GB, free: 24.52 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002344/0.5843, allocations: 0.6502 MB / 0.7666 GB, free: 24.52 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004905/0.5892, allocations: 1.77 MB / 0.7684 GB, free: 24.52 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.003951/0.5932, allocations: 2.55 MB / 0.7709 GB, free: 24.34 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.005156/0.5984, allocations: 2.893 MB / 0.7737 GB, free: 23.63 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01427/0.6127, allocations: 10.05 MB / 0.7835 GB, free: 22.77 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.6127, allocations: 1.531 kB / 0.7835 GB, free: 22.77 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.795e-06/0.6127, allocations: 3.281 kB / 0.7835 GB, free: 22.77 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0003756/0.6131, allocations: 0 / 0.7835 GB, free: 22.77 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01443/0.6275, allocations: 4.999 MB / 0.7884 GB, free: 20.91 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.6276, allocations: 9.062 kB / 0.7884 GB, free: 20.91 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001532/0.6292, allocations: 0.6779 MB / 0.7891 GB, free: 20.84 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005785/0.6349, allocations: 0.9598 MB / 0.79 GB, free: 20.58 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005536/0.6405, allocations: 2.857 MB / 0.7928 GB, free: 19.93 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002392/0.6408, allocations: 353.5 kB / 0.7931 GB, free: 19.88 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001169/0.6419, allocations: 464.5 kB / 0.7936 GB, free: 19.73 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01399/0.6559, allocations: 7.67 MB / 0.8011 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001426/0.6561, allocations: 25.25 kB / 0.8011 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005889/0.6567, allocations: 201.5 kB / 0.8013 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002826/0.657, allocations: 319.9 kB / 0.8016 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009987/0.667, allocations: 5.707 MB / 0.8072 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04065/0.7077, allocations: 35.09 MB / 0.8414 GB, free: 11.72 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002899/0.7106, allocations: 2.156 MB / 0.8435 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001647/0.7123, allocations: 1.265 MB / 0.8448 GB, free: 9.578 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.206e-05/0.7124, allocations: 19.91 kB / 0.8448 GB, free: 9.578 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.7124, allocations: 43.38 kB / 0.8448 GB, free: 9.531 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=133): time 2.876e-06/0.7124, allocations: 4 kB / 0.8448 GB, free: 9.527 MB / 0.5762 GB Notification: Performance of matching and sorting (n=136): time 0.015/0.7274, allocations: 7.085 MB / 0.8517 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.398e-05/0.7275, allocations: 72.12 kB / 0.8518 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/0.7298, allocations: 1.484 MB / 0.8533 GB, free: 1.387 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.73, allocations: 45.7 kB / 0.8533 GB, free: 1.336 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001582/0.7315, allocations: 2.014 MB / 0.8553 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004805/0.732, allocations: 479 kB / 0.8557 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005494/0.7326, allocations: 351 kB / 0.8561 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000209/0.7328, allocations: 312.5 kB / 0.8564 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.7342, allocations: 0.9096 MB / 0.8573 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001999/0.7362, allocations: 1.59 MB / 0.8588 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003667/0.7399, allocations: 2.736 MB / 0.8615 GB, free: 8.434 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.7399, allocations: 4 kB / 0.8615 GB, free: 8.43 MB / 0.5919 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006599/0.7465, allocations: 3.527 MB / 0.8649 GB, free: 5.02 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.499e-05/0.7466, allocations: 16 kB / 0.8649 GB, free: 5.004 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.368e-05/0.7466, allocations: 24 kB / 0.865 GB, free: 4.98 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002755/0.7494, allocations: 0.913 MB / 0.8659 GB, free: 4.039 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.7507, allocations: 353.9 kB / 0.8662 GB, free: 3.719 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02428/0.775, allocations: 23.11 MB / 0.8888 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002008/0.777, allocations: 108 kB / 0.8889 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001864/0.7772, allocations: 80 kB / 0.8889 GB, free: 10.87 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (185): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,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.003464/0.7807, allocations: 1.617 MB / 0.8905 GB, free: 9.27 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004924/0.7812, allocations: 209.5 kB / 0.8907 GB, free: 9.062 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005734/0.7869, allocations: 2.989 MB / 0.8936 GB, free: 6.062 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/0.787, allocations: 12 kB / 0.8937 GB, free: 6.051 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-05/0.787, allocations: 12 kB / 0.8937 GB, free: 6.039 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.787, allocations: 7.969 kB / 0.8937 GB, free: 6.031 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01349/0.8005, allocations: 7.346 MB / 0.9008 GB, free: 14.54 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.8006, allocations: 4 kB / 0.9008 GB, free: 14.54 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008551/0.8014, allocations: 182.1 kB / 0.901 GB, free: 14.37 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002572/0.804, allocations: 0.8321 MB / 0.9018 GB, free: 13.51 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.8041, allocations: 24 kB / 0.9019 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02285/0.827, allocations: 21.95 MB / 0.9233 GB, free: 5.941 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/0.827, allocations: 4 kB / 0.9233 GB, free: 5.938 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005786/0.8328, allocations: 3.028 MB / 0.9263 GB, free: 2.832 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/0.834, allocations: 454.5 kB / 0.9267 GB, free: 2.367 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002635/0.8343, allocations: 36.11 kB / 0.9267 GB, free: 2.332 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008437/0.8351, allocations: 71.92 kB / 0.9268 GB, free: 2.262 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003658/0.8355, allocations: 132.1 kB / 0.9269 GB, free: 2.141 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.697e-05/0.8356, allocations: 36 kB / 0.927 GB, free: 2.105 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001474/0.8371, allocations: 0.9795 MB / 0.9279 GB, free: 1.102 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.5e-07/0.8371, allocations: 3.281 kB / 0.9279 GB, free: 1.102 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.002863/0.8399, allocations: 0.7852 MB / 0.9287 GB, free: 324 kB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (91): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005763/0.8457, allocations: 3.61 MB / 0.9322 GB, free: 12.62 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.007822/0.8535, allocations: 4.652 MB / 0.9367 GB, free: 7.91 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.8536, allocations: 0 / 0.9367 GB, free: 7.91 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.004162/0.8577, allocations: 2.734 MB / 0.9394 GB, free: 5.051 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003563/0.8613, allocations: 0.734 MB / 0.9401 GB, free: 4.363 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04052/0.9019, allocations: 23.85 MB / 0.9634 GB, free: 10.97 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003882/0.9058, allocations: 3.105 MB / 0.9665 GB, free: 7.836 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001495/0.9073, allocations: 457.9 kB / 0.9669 GB, free: 7.387 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001873/0.9092, allocations: 1.538 MB / 0.9684 GB, free: 5.848 MB / 0.7012 GB Notification: Performance of SimCode: time 6.21e-07/0.9092, allocations: 0 / 0.9684 GB, free: 5.848 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1381/1.047, allocations: 60.32 MB / 1.027 GB, free: 10.36 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.84, allocations: 11.48 kB / 1.027 GB, free: 10.35 MB / 0.7637 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.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_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1)