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.001112/0.001112, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.435/1.435, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.704/1.704, allocations: 292.3 MB / 0.5486 GB, free: 13.64 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.001324/0.001323, allocations: 67.34 kB / 0.6711 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1845, allocations: 114.5 MB / 0.783 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03502/0.2195, allocations: 37.46 MB / 0.8196 GB, free: 8.227 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.0156/0.2352, allocations: 10.98 MB / 0.8303 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002793/0.238, allocations: 139.2 kB / 0.8304 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.009324/0.2474, allocations: 4.081 MB / 0.8344 GB, free: 8.984 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.004942/0.2523, allocations: 2.053 MB / 0.8364 GB, free: 6.922 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.004086/0.2564, allocations: 1.976 MB / 0.8383 GB, free: 4.949 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.008311/0.2648, allocations: 9.3 MB / 0.8474 GB, free: 11.62 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01606/0.2808, allocations: 13.56 MB / 0.8607 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005487/0.2863, allocations: 4.062 MB / 0.8646 GB, free: 9.879 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00535/0.2917, allocations: 4.709 MB / 0.8692 GB, free: 5.156 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001047/0.2928, allocations: 0.8281 MB / 0.87 GB, free: 4.328 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002504/0.2953, allocations: 1.596 MB / 0.8716 GB, free: 2.73 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.002664/0.298, allocations: 3.142 MB / 0.8747 GB, free: 15.58 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.00343/0.3014, allocations: 3.649 MB / 0.8782 GB, free: 11.92 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.3116, allocations: 12.31 MB / 0.8903 GB, free: 15.57 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3116, allocations: 0 / 0.8903 GB, free: 15.57 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3116, allocations: 0 / 0.8903 GB, free: 15.57 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0001931/0.3118, allocations: 0 / 0.8903 GB, free: 15.57 MB / 0.7169 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.0105/0.3223, allocations: 6.322 MB / 0.8964 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.3223, allocations: 8.031 kB / 0.8964 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009583/0.3233, allocations: 0.8216 MB / 0.8972 GB, free: 8.34 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004353/0.3277, allocations: 1.071 MB / 0.8983 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004641/0.3323, allocations: 3.423 MB / 0.9016 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002553/0.3326, allocations: 431.7 kB / 0.902 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007059/0.3333, allocations: 0.5354 MB / 0.9026 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01329/0.3466, allocations: 9.377 MB / 0.9117 GB, free: 9.113 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001071/0.3467, allocations: 23.8 kB / 0.9117 GB, free: 9.09 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005345/0.3473, allocations: 248 kB / 0.912 GB, free: 8.848 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000518/0.3478, allocations: 418.9 kB / 0.9124 GB, free: 8.438 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01049/0.3583, allocations: 7.123 MB / 0.9193 GB, free: 1.305 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3356/0.6939, allocations: 41.33 MB / 0.9597 GB, free: 90.67 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003963/0.6979, allocations: 3.102 MB / 0.9627 GB, free: 89.47 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002746/0.7007, allocations: 2.14 MB / 0.9648 GB, free: 88.44 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001143/0.7008, allocations: 25.5 kB / 0.9648 GB, free: 88.43 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.7009, allocations: 59 kB / 0.9649 GB, free: 88.38 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=209): time 3.296e-06/0.7009, allocations: 1.688 kB / 0.9649 GB, free: 88.38 MB / 0.7325 GB Notification: Performance of matching and sorting (n=212): time 0.02001/0.7209, allocations: 10.56 MB / 0.9752 GB, free: 82.45 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.7209, allocations: 77.88 kB / 0.9753 GB, free: 82.39 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002471/0.7234, allocations: 2.001 MB / 0.9772 GB, free: 81.3 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.7236, allocations: 68.36 kB / 0.9773 GB, free: 81.24 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009638/0.7245, allocations: 2.409 MB / 0.9797 GB, free: 79.12 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004148/0.725, allocations: 0.7276 MB / 0.9804 GB, free: 78.5 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006615/0.7256, allocations: 476.3 kB / 0.9808 GB, free: 78.23 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 3.524e-05/0.7257, allocations: 306.2 kB / 0.9811 GB, free: 77.93 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.7271, allocations: 1.374 MB / 0.9825 GB, free: 77.21 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001753/0.7289, allocations: 2.102 MB / 0.9845 GB, free: 75.55 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003281/0.7322, allocations: 3.773 MB / 0.9882 GB, free: 72.98 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.059e-05/0.7322, allocations: 3.812 kB / 0.9882 GB, free: 72.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.006209/0.7384, allocations: 5.071 MB / 0.9931 GB, free: 70.29 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.7385, allocations: 15.47 kB / 0.9932 GB, free: 70.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/0.7385, allocations: 23.88 kB / 0.9932 GB, free: 70.29 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002852/0.7413, allocations: 1.591 MB / 0.9947 GB, free: 69.62 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/0.7427, allocations: 457.2 kB / 0.9952 GB, free: 69.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/0.7586, allocations: 18.59 MB / 1.013 GB, free: 52.15 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002038/0.7607, allocations: 143.9 kB / 1.013 GB, free: 52.01 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002787/0.7609, allocations: 108 kB / 1.014 GB, free: 51.9 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.002553/0.7635, allocations: 1.945 MB / 1.015 GB, free: 49.95 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005441/0.7641, allocations: 288.6 kB / 1.016 GB, free: 49.66 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005509/0.7696, allocations: 4.451 MB / 1.02 GB, free: 45.18 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.7696, allocations: 20 kB / 1.02 GB, free: 45.16 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.394e-05/0.7697, allocations: 16 kB / 1.02 GB, free: 45.14 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.799e-05/0.7697, allocations: 11.95 kB / 1.02 GB, free: 45.13 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0139/0.7836, allocations: 9.667 MB / 1.03 GB, free: 35.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/0.7836, allocations: 4 kB / 1.03 GB, free: 35.36 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008568/0.7845, allocations: 239.6 kB / 1.03 GB, free: 35.12 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002625/0.7871, allocations: 1.438 MB / 1.031 GB, free: 33.67 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/0.7873, allocations: 36 kB / 1.031 GB, free: 33.64 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01556/0.8029, allocations: 18.58 MB / 1.049 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.8029, allocations: 11.94 kB / 1.049 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005493/0.8084, allocations: 4.54 MB / 1.054 GB, free: 9.867 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.8095, allocations: 0.6342 MB / 1.054 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000481/0.81, allocations: 43.98 kB / 1.054 GB, free: 9.168 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/0.8113, allocations: 115.9 kB / 1.055 GB, free: 9.055 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003771/0.8116, allocations: 181.6 kB / 1.055 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/0.8118, allocations: 67.89 kB / 1.055 GB, free: 8.812 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001405/0.8132, allocations: 1.311 MB / 1.056 GB, free: 7.492 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8132, allocations: 0 / 1.056 GB, free: 7.492 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002674/0.8159, allocations: 1.141 MB / 1.057 GB, free: 6.352 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.005347/0.8212, allocations: 5.158 MB / 1.062 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.008901/0.8301, allocations: 5.909 MB / 1.068 GB, free: 11.15 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.8302, allocations: 4 kB / 1.068 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.004365/0.8345, allocations: 2.924 MB / 1.071 GB, free: 8.176 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003863/0.8384, allocations: 0.8859 MB / 1.072 GB, free: 7.316 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05011/0.8886, allocations: 35.94 MB / 1.107 GB, free: 0.8516 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004627/0.8932, allocations: 3.698 MB / 1.11 GB, free: 13.12 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001814/0.895, allocations: 0.5518 MB / 1.111 GB, free: 12.57 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002145/0.8972, allocations: 1.959 MB / 1.113 GB, free: 10.61 MB / 0.795 GB Notification: Performance of SimCode: time 7.61e-07/0.8972, allocations: 0 / 1.113 GB, free: 10.61 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.848/5.745, allocations: 85.75 MB / 1.197 GB, free: 5.844 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/5.746, allocations: 243.8 kB / 1.197 GB, free: 5.59 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.639/9.385, allocations: 0 / 1.197 GB, free: 5.59 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N_fmu --startTime=0 --stopTime=1 --timeout=50 --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)