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.001032/0.001032, allocations: 109.4 kB / 15.69 MB, free: 128 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.00102/0.00102, allocations: 186.2 kB / 16.62 MB, free: 6.613 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.409/1.409, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.659/1.659, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.002261/0.002261, allocations: 74.98 kB / 0.6718 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2478, allocations: 114.5 MB / 0.7836 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03919/0.2871, allocations: 37.8 MB / 0.8205 GB, free: 7.293 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01966/0.3068, allocations: 11.09 MB / 0.8314 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004807/0.3116, allocations: 159.2 kB / 0.8315 GB, free: 12.02 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0112/0.3229, allocations: 4.346 MB / 0.8358 GB, free: 7.66 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.007908/0.3308, allocations: 2.219 MB / 0.8379 GB, free: 5.43 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.006648/0.3375, allocations: 2.174 MB / 0.8401 GB, free: 3.258 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.01156/0.3491, allocations: 9.268 MB / 0.8491 GB, free: 9.961 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01388/0.363, allocations: 11.36 MB / 0.8602 GB, free: 14.49 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006696/0.3697, allocations: 3.996 MB / 0.8641 GB, free: 10.48 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00749/0.3772, allocations: 4.51 MB / 0.8685 GB, free: 5.957 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.002172/0.3795, allocations: 0.8281 MB / 0.8693 GB, free: 5.129 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004308/0.3838, allocations: 1.588 MB / 0.8709 GB, free: 3.539 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.003992/0.3878, allocations: 3.15 MB / 0.8739 GB, free: 392 kB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.006944/0.3948, allocations: 3.657 MB / 0.8775 GB, free: 12.71 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.01453/0.4093, allocations: 12.3 MB / 0.8895 GB, free: 380 kB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 9.658e-06/0.4094, allocations: 0 / 0.8895 GB, free: 380 kB / 0.7012 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4094, allocations: 0 / 0.8895 GB, free: 380 kB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0004619/0.4098, allocations: 3.938 kB / 0.8895 GB, free: 376 kB / 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.01659/0.4264, allocations: 6.328 MB / 0.8957 GB, free: 9.969 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.4265, allocations: 12.03 kB / 0.8957 GB, free: 9.957 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001732/0.4283, allocations: 0.8294 MB / 0.8965 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00513/0.4334, allocations: 1.067 MB / 0.8976 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006765/0.4402, allocations: 3.606 MB / 0.9011 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002969/0.4405, allocations: 423.7 kB / 0.9015 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00132/0.4418, allocations: 0.5471 MB / 0.902 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4501/0.892, allocations: 9.376 MB / 0.9112 GB, free: 106.2 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001989/0.8922, allocations: 15.81 kB / 0.9112 GB, free: 106.2 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001016/0.8933, allocations: 250.9 kB / 0.9114 GB, free: 106.1 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006766/0.8939, allocations: 424.1 kB / 0.9119 GB, free: 106 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01427/0.9082, allocations: 7.119 MB / 0.9188 GB, free: 103.5 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04187/0.9501, allocations: 41.01 MB / 0.9589 GB, free: 68.23 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004196/0.9544, allocations: 3.109 MB / 0.9619 GB, free: 66.65 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002529/0.9569, allocations: 2.139 MB / 0.964 GB, free: 65.55 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.9571, allocations: 21.53 kB / 0.964 GB, free: 65.55 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.9571, allocations: 63.56 kB / 0.9641 GB, free: 65.49 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=209): time 4.769e-06/0.9571, allocations: 0 / 0.9641 GB, free: 65.49 MB / 0.7169 GB Notification: Performance of matching and sorting (n=212): time 0.02077/0.9779, allocations: 10.56 MB / 0.9744 GB, free: 59.48 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.978, allocations: 72.34 kB / 0.9744 GB, free: 59.41 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002176/0.9802, allocations: 2.007 MB / 0.9764 GB, free: 58.32 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002199/0.9804, allocations: 64.2 kB / 0.9765 GB, free: 58.27 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008623/0.9813, allocations: 2.407 MB / 0.9788 GB, free: 56.15 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004735/0.9818, allocations: 0.7259 MB / 0.9795 GB, free: 55.53 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006034/0.9824, allocations: 478 kB / 0.98 GB, free: 55.26 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.229e-05/0.9824, allocations: 304.9 kB / 0.9803 GB, free: 54.96 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001542/0.984, allocations: 1.369 MB / 0.9816 GB, free: 54.25 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001844/0.9858, allocations: 2.108 MB / 0.9837 GB, free: 52.38 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003412/0.9893, allocations: 3.77 MB / 0.9873 GB, free: 48.3 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.9893, allocations: 4 kB / 0.9873 GB, free: 48.3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.006734/0.996, allocations: 5.072 MB / 0.9923 GB, free: 43.2 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.9961, allocations: 16 kB / 0.9923 GB, free: 43.19 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.923e-05/0.9961, allocations: 20 kB / 0.9923 GB, free: 43.17 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003031/0.9992, allocations: 1.592 MB / 0.9939 GB, free: 41.57 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/1.001, allocations: 459.2 kB / 0.9943 GB, free: 41.12 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0175/1.018, allocations: 18.57 MB / 1.012 GB, free: 22 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00241/1.021, allocations: 143.9 kB / 1.013 GB, free: 21.86 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004158/1.021, allocations: 108 kB / 1.013 GB, free: 21.75 MB / 0.7169 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.002958/1.024, allocations: 1.941 MB / 1.015 GB, free: 19.8 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006909/1.025, allocations: 293.7 kB / 1.015 GB, free: 19.51 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006184/1.031, allocations: 4.443 MB / 1.019 GB, free: 15.04 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/1.031, allocations: 24 kB / 1.019 GB, free: 15.01 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-05/1.031, allocations: 19.94 kB / 1.019 GB, free: 14.99 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.21e-05/1.031, allocations: 11.95 kB / 1.019 GB, free: 14.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01492/1.046, allocations: 9.676 MB / 1.029 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.677e-05/1.046, allocations: 4 kB / 1.029 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009307/1.047, allocations: 231.7 kB / 1.029 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002876/1.05, allocations: 1.431 MB / 1.03 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001795/1.05, allocations: 40 kB / 1.03 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02222/1.072, allocations: 18.55 MB / 1.048 GB, free: 396 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/1.072, allocations: 15.44 kB / 1.049 GB, free: 384 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007881/1.08, allocations: 4.54 MB / 1.053 GB, free: 11.75 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001569/1.082, allocations: 0.6382 MB / 1.054 GB, free: 11.09 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006947/1.083, allocations: 40 kB / 1.054 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001674/1.084, allocations: 111.9 kB / 1.054 GB, free: 10.94 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005432/1.085, allocations: 177.6 kB / 1.054 GB, free: 10.76 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001877/1.085, allocations: 60 kB / 1.054 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002376/1.087, allocations: 1.327 MB / 1.055 GB, free: 9.367 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.31e-07/1.087, allocations: 0 / 1.055 GB, free: 9.367 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004013/1.092, allocations: 1.137 MB / 1.056 GB, free: 8.23 MB / 0.7481 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.008071/1.1, allocations: 5.158 MB / 1.061 GB, free: 2.98 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.008557/1.108, allocations: 4.72 MB / 1.066 GB, free: 14.21 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.667e-05/1.108, allocations: 0 / 1.066 GB, free: 14.21 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.005185/1.113, allocations: 2.928 MB / 1.069 GB, free: 11.23 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005474/1.119, allocations: 0.882 MB / 1.07 GB, free: 10.38 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0567/1.176, allocations: 30.37 MB / 1.099 GB, free: 10.82 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005969/1.182, allocations: 3.702 MB / 1.103 GB, free: 7.09 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00222/1.184, allocations: 0.5556 MB / 1.104 GB, free: 6.527 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002552/1.186, allocations: 1.944 MB / 1.105 GB, free: 4.582 MB / 0.795 GB Notification: Performance of SimCode: time 9.52e-07/1.187, allocations: 0 / 1.105 GB, free: 4.582 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1331/1.32, allocations: 83.64 MB / 1.187 GB, free: 1.945 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.4/15.72, allocations: 6.719 kB / 1.187 GB, free: 1.945 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)