Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",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.001575/0.001575, 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.001202/0.001202, allocations: 193.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.581/1.581, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.705/1.705, allocations: 292.3 MB / 0.5489 GB, free: 13.48 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 74 kB / 0.6716 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2108, allocations: 114.5 MB / 0.7835 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.0398/0.2506, allocations: 34.69 MB / 0.8174 GB, free: 10.67 MB / 0.6388 GB Notification: Performance of NFInst.instExpressions: time 0.01876/0.2694, allocations: 11.63 MB / 0.8287 GB, free: 15.01 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003123/0.2726, allocations: 163.2 kB / 0.8289 GB, free: 14.85 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.01093/0.2836, allocations: 4.246 MB / 0.833 GB, free: 10.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.007126/0.2907, allocations: 1.99 MB / 0.835 GB, free: 8.594 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.007064/0.2978, allocations: 2.405 MB / 0.8373 GB, free: 6.188 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.01087/0.3087, allocations: 8.46 MB / 0.8456 GB, free: 13.7 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01612/0.3249, allocations: 11.21 MB / 0.8565 GB, free: 2.375 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005806/0.3307, allocations: 3.732 MB / 0.8602 GB, free: 14.63 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006147/0.3369, allocations: 4.179 MB / 0.8642 GB, free: 10.44 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.00218/0.3391, allocations: 0.7812 MB / 0.865 GB, free: 9.66 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005334/0.3445, allocations: 2.028 MB / 0.867 GB, free: 7.629 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.004876/0.3494, allocations: 3.057 MB / 0.87 GB, free: 4.566 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.009058/0.3585, allocations: 3.4 MB / 0.8733 GB, free: 1.152 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.01526/0.3738, allocations: 11.92 MB / 0.8849 GB, free: 5.203 MB / 0.7013 GB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.3738, allocations: 0 / 0.8849 GB, free: 5.203 MB / 0.7013 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3738, allocations: 0 / 0.8849 GB, free: 5.203 MB / 0.7013 GB Notification: Performance of Transformations before backend: time 0.0002977/0.3741, allocations: 0 / 0.8849 GB, free: 5.203 MB / 0.7013 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01612/0.3902, allocations: 5.795 MB / 0.8906 GB, free: 15.34 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.3903, allocations: 8.031 kB / 0.8906 GB, free: 15.33 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002366/0.3927, allocations: 0.8051 MB / 0.8914 GB, free: 14.51 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006356/0.3991, allocations: 1.056 MB / 0.8924 GB, free: 13.45 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005812/0.4049, allocations: 3.258 MB / 0.8956 GB, free: 10.13 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003343/0.4052, allocations: 415.4 kB / 0.896 GB, free: 9.727 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001428/0.4067, allocations: 0.5432 MB / 0.8965 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01859/0.4253, allocations: 9.079 MB / 0.9054 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002769/0.4256, allocations: 27.69 kB / 0.9054 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001614/0.4272, allocations: 236 kB / 0.9056 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004915/0.4277, allocations: 346.8 kB / 0.906 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01364/0.4414, allocations: 6.834 MB / 0.9126 GB, free: 8.344 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3838/0.8252, allocations: 40.12 MB / 0.9518 GB, free: 93.4 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003463/0.8287, allocations: 3.111 MB / 0.9549 GB, free: 91.62 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002697/0.8314, allocations: 1.967 MB / 0.9568 GB, free: 90.87 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001033/0.8316, allocations: 19.38 kB / 0.9568 GB, free: 90.87 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.8316, allocations: 52.03 kB / 0.9568 GB, free: 90.82 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=179): time 4.278e-06/0.8316, allocations: 0 / 0.9568 GB, free: 90.82 MB / 0.7325 GB Notification: Performance of matching and sorting (n=182): time 0.02556/0.8572, allocations: 9.977 MB / 0.9666 GB, free: 87.05 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.8573, allocations: 79.19 kB / 0.9667 GB, free: 86.98 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00233/0.8596, allocations: 1.523 MB / 0.9682 GB, free: 86.29 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001272/0.8597, allocations: 55.77 kB / 0.9682 GB, free: 86.23 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.001053/0.8608, allocations: 2.252 MB / 0.9704 GB, free: 84.26 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004667/0.8613, allocations: 0.6276 MB / 0.971 GB, free: 83.72 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000616/0.8619, allocations: 416 kB / 0.9714 GB, free: 83.49 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 4.905e-05/0.8619, allocations: 301.1 kB / 0.9717 GB, free: 83.2 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.8635, allocations: 1.183 MB / 0.9729 GB, free: 82.57 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/0.8653, allocations: 1.879 MB / 0.9747 GB, free: 81.03 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003458/0.8687, allocations: 3.375 MB / 0.978 GB, free: 78.66 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.249e-05/0.8688, allocations: 5.938 kB / 0.978 GB, free: 78.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.006732/0.8755, allocations: 4.579 MB / 0.9825 GB, free: 76.21 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/0.8756, allocations: 19.34 kB / 0.9825 GB, free: 76.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/0.8756, allocations: 19.62 kB / 0.9825 GB, free: 76.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003331/0.8789, allocations: 1.606 MB / 0.9841 GB, free: 75.54 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.8802, allocations: 354.7 kB / 0.9844 GB, free: 75.44 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01912/0.8993, allocations: 18.59 MB / 1.003 GB, free: 61.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002005/0.9014, allocations: 127.4 kB / 1.003 GB, free: 61.86 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/0.9016, allocations: 96.53 kB / 1.003 GB, free: 61.84 MB / 0.7325 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 (177): * 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: 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 {(12,26,30.6%), (6,24,66.7%), (6,16,66.7%), (6,16,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003005/0.9046, allocations: 1.893 MB / 1.005 GB, free: 60.68 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004918/0.9051, allocations: 225.3 kB / 1.005 GB, free: 60.45 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005716/0.9108, allocations: 4.094 MB / 1.009 GB, free: 56.33 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.9109, allocations: 19.17 kB / 1.009 GB, free: 56.31 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.891e-05/0.9109, allocations: 20 kB / 1.009 GB, free: 56.29 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.9109, allocations: 7.969 kB / 1.009 GB, free: 56.29 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/0.9231, allocations: 9.47 MB / 1.018 GB, free: 46.61 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/0.9231, allocations: 7.984 kB / 1.018 GB, free: 46.61 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008096/0.9239, allocations: 180.2 kB / 1.018 GB, free: 46.43 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003119/0.9271, allocations: 1.368 MB / 1.02 GB, free: 45.05 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001931/0.9273, allocations: 39.98 kB / 1.02 GB, free: 45.01 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01657/0.9439, allocations: 17.37 MB / 1.037 GB, free: 27.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.9439, allocations: 7.938 kB / 1.037 GB, free: 27.09 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005503/0.9494, allocations: 4.065 MB / 1.041 GB, free: 22.93 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009626/0.9504, allocations: 0.5218 MB / 1.041 GB, free: 22.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002603/0.9507, allocations: 39.98 kB / 1.041 GB, free: 22.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008996/0.9516, allocations: 91.83 kB / 1.041 GB, free: 22.26 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004244/0.952, allocations: 161.7 kB / 1.041 GB, free: 22.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.9521, allocations: 48 kB / 1.041 GB, free: 22.05 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001032/0.9532, allocations: 1.001 MB / 1.042 GB, free: 21.03 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9532, allocations: 0 / 1.042 GB, free: 21.03 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002866/0.9561, allocations: 0.9883 MB / 1.043 GB, free: 20.04 MB / 0.7325 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 (85): * Single equations (assignments): 81 * 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 {(6,16,66.7%), (6,16,66.7%), (6,24,66.7%), (6,24,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005512/0.9616, allocations: 4.667 MB / 1.048 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.007126/0.9688, allocations: 5.203 MB / 1.053 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/0.9688, allocations: 0 / 1.053 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003832/0.9726, allocations: 2.664 MB / 1.056 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003891/0.9766, allocations: 0.7682 MB / 1.056 GB, free: 6.598 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04645/1.023, allocations: 28.67 MB / 1.084 GB, free: 7.934 MB / 0.7638 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005634/1.029, allocations: 3.569 MB / 1.088 GB, free: 4.328 MB / 0.7638 GB Notification: Performance of simCode: alias equations: time 0.001533/1.03, allocations: 467.9 kB / 1.088 GB, free: 3.867 MB / 0.7638 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002525/1.033, allocations: 1.792 MB / 1.09 GB, free: 2.074 MB / 0.7638 GB Notification: Performance of SimCode: time 1.052e-06/1.033, allocations: 0 / 1.09 GB, free: 2.074 MB / 0.7638 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1828/1.216, allocations: 72.48 MB / 1.161 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/12.3, allocations: 12.09 kB / 1.161 GB, free: 10.28 MB / 0.8419 GB (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.fmu > Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1)