Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_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.001523/0.001523, 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.002165/0.002165, allocations: 197.8 kB / 16.53 MB, free: 6.664 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.521/1.521, allocations: 205.1 MB / 222.4 MB, free: 4.578 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.725/1.725, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.001532/0.001532, allocations: 74.08 kB / 0.6716 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2683, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04033/0.3086, allocations: 37.81 MB / 0.8204 GB, free: 7.457 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01986/0.3286, allocations: 11.09 MB / 0.8312 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005599/0.3342, allocations: 159.2 kB / 0.8314 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.01181/0.3461, allocations: 4.343 MB / 0.8356 GB, free: 7.828 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.007879/0.354, allocations: 2.219 MB / 0.8378 GB, free: 5.598 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.006459/0.3605, allocations: 2.17 MB / 0.8399 GB, free: 3.43 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.01325/0.3738, allocations: 9.28 MB / 0.849 GB, free: 10.12 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01622/0.39, allocations: 11.35 MB / 0.8601 GB, free: 14.65 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007588/0.3977, allocations: 3.977 MB / 0.8639 GB, free: 10.66 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009509/0.4072, allocations: 4.506 MB / 0.8683 GB, free: 6.145 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.00344/0.4107, allocations: 0.8203 MB / 0.8691 GB, free: 5.324 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005708/0.4164, allocations: 1.592 MB / 0.8707 GB, free: 3.73 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.004758/0.4212, allocations: 3.146 MB / 0.8738 GB, free: 0.5781 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.006814/0.4281, allocations: 3.661 MB / 0.8773 GB, free: 12.9 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.01597/0.4441, allocations: 12.23 MB / 0.8893 GB, free: 0.6406 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.4441, allocations: 0 / 0.8893 GB, free: 0.6406 MB / 0.7012 GB Notification: Performance of FrontEnd: time 3.266e-06/0.4441, allocations: 4 kB / 0.8893 GB, free: 0.6367 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0004709/0.4446, allocations: 0 / 0.8893 GB, free: 0.6367 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02122/0.4658, allocations: 6.322 MB / 0.8955 GB, free: 10.24 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.459e-05/0.4659, allocations: 12.03 kB / 0.8955 GB, free: 10.23 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004157/0.4701, allocations: 0.8333 MB / 0.8963 GB, free: 9.387 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0109/0.481, allocations: 1.059 MB / 0.8973 GB, free: 8.32 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009773/0.4908, allocations: 3.419 MB / 0.9007 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006435/0.4915, allocations: 427.7 kB / 0.9011 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003119/0.4947, allocations: 0.551 MB / 0.9016 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02419/0.5189, allocations: 9.377 MB / 0.9108 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002723/0.5192, allocations: 19.81 kB / 0.9108 GB, free: 10.15 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001887/0.5211, allocations: 244 kB / 0.911 GB, free: 9.91 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007091/0.5218, allocations: 422.9 kB / 0.9114 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0176/0.5394, allocations: 7.12 MB / 0.9184 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4783/1.018, allocations: 41.32 MB / 0.9587 GB, free: 90.72 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005168/1.023, allocations: 3.109 MB / 0.9618 GB, free: 89.52 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003984/1.027, allocations: 2.134 MB / 0.9638 GB, free: 88.69 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001269/1.027, allocations: 25.61 kB / 0.9639 GB, free: 88.69 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.118e-05/1.027, allocations: 58.59 kB / 0.9639 GB, free: 88.63 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=209): time 4.679e-06/1.027, allocations: 4 kB / 0.9639 GB, free: 88.63 MB / 0.7325 GB Notification: Performance of matching and sorting (n=212): time 0.02957/1.057, allocations: 10.56 MB / 0.9742 GB, free: 82.95 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.299e-05/1.057, allocations: 74.31 kB / 0.9743 GB, free: 82.89 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006058/1.063, allocations: 2.005 MB / 0.9763 GB, free: 81.8 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0004553/1.064, allocations: 64.7 kB / 0.9763 GB, free: 81.74 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.001596/1.065, allocations: 2.405 MB / 0.9787 GB, free: 79.63 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008498/1.066, allocations: 0.7277 MB / 0.9794 GB, free: 79 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001177/1.067, allocations: 477.3 kB / 0.9798 GB, free: 78.74 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 6.31e-05/1.067, allocations: 309.1 kB / 0.9801 GB, free: 78.43 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001982/1.069, allocations: 1.377 MB / 0.9815 GB, free: 77.71 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002161/1.071, allocations: 2.105 MB / 0.9835 GB, free: 76.05 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003995/1.075, allocations: 3.762 MB / 0.9872 GB, free: 73.48 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.007e-05/1.075, allocations: 11.84 kB / 0.9872 GB, free: 73.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007672/1.083, allocations: 5.068 MB / 0.9922 GB, free: 70.79 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.925e-05/1.083, allocations: 18.06 kB / 0.9922 GB, free: 70.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.931e-05/1.083, allocations: 22.31 kB / 0.9922 GB, free: 70.79 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003252/1.087, allocations: 1.603 MB / 0.9938 GB, free: 70.11 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001669/1.088, allocations: 449.6 kB / 0.9942 GB, free: 70 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01893/1.107, allocations: 18.58 MB / 1.012 GB, free: 53.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003223/1.11, allocations: 147.9 kB / 1.012 GB, free: 52.98 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007112/1.111, allocations: 108 kB / 1.013 GB, free: 52.88 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 (231): * Single equations (assignments): 227 * 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 {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004333/1.116, allocations: 1.945 MB / 1.014 GB, free: 50.92 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.117, allocations: 292.6 kB / 1.015 GB, free: 50.63 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007023/1.124, allocations: 4.451 MB / 1.019 GB, free: 46.15 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.721e-05/1.124, allocations: 24.08 kB / 1.019 GB, free: 46.12 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.995e-05/1.124, allocations: 16 kB / 1.019 GB, free: 46.11 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-05/1.124, allocations: 11.97 kB / 1.019 GB, free: 46.1 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01773/1.142, allocations: 9.66 MB / 1.029 GB, free: 36.33 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.689e-05/1.142, allocations: 4 kB / 1.029 GB, free: 36.33 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009794/1.143, allocations: 243.5 kB / 1.029 GB, free: 36.09 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002915/1.145, allocations: 1.435 MB / 1.03 GB, free: 34.64 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001979/1.146, allocations: 36 kB / 1.03 GB, free: 34.61 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01814/1.164, allocations: 18.58 MB / 1.048 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/1.164, allocations: 11.94 kB / 1.048 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007526/1.171, allocations: 4.544 MB / 1.053 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002282/1.174, allocations: 0.6342 MB / 1.053 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008608/1.175, allocations: 44 kB / 1.054 GB, free: 10.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002058/1.177, allocations: 119.9 kB / 1.054 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007668/1.178, allocations: 177.6 kB / 1.054 GB, free: 9.848 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002222/1.178, allocations: 60 kB / 1.054 GB, free: 9.789 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002331/1.18, allocations: 1.311 MB / 1.055 GB, free: 8.469 MB / 0.7325 GB Notification: Performance of sort global known variables: time 5.71e-07/1.18, allocations: 0 / 1.055 GB, free: 8.469 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004147/1.184, allocations: 1.145 MB / 1.056 GB, free: 7.324 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 (107): * Single equations (assignments): 103 * 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 {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006408/1.191, allocations: 5.158 MB / 1.061 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.009708/1.2, allocations: 5.909 MB / 1.067 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.41e-05/1.201, allocations: 4 kB / 1.067 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.004853/1.205, allocations: 2.919 MB / 1.07 GB, free: 9.156 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005534/1.211, allocations: 0.8851 MB / 1.071 GB, free: 8.297 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06069/1.272, allocations: 33.63 MB / 1.104 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006775/1.278, allocations: 3.694 MB / 1.107 GB, free: 432 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.002711/1.281, allocations: 0.5557 MB / 1.108 GB, free: 15.86 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003179/1.284, allocations: 1.944 MB / 1.11 GB, free: 13.91 MB / 0.795 GB Notification: Performance of SimCode: time 1.312e-06/1.284, allocations: 3.938 kB / 1.11 GB, free: 13.91 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1472/1.432, allocations: 85.69 MB / 1.193 GB, free: 9.168 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/12.76, allocations: 7.5 kB / 1.193 GB, free: 9.164 MB / 0.8731 GB (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1)