Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 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: translateModel(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 112.6 kB / 16.37 MB, free: 6 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.001157/0.001157, allocations: 196 kB / 17.31 MB, free: 5.613 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.258/1.258, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001977/0.001977, allocations: 295.6 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.886/0.886, allocations: 169.3 MB / 0.4989 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 98.23 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.1601, allocations: 86.96 MB / 0.6816 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.2899/0.45, allocations: 37.94 MB / 0.7187 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01997/0.4701, allocations: 11 MB / 0.7294 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005122/0.4752, allocations: 158.1 kB / 0.7295 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0123/0.4875, allocations: 4.357 MB / 0.7338 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006724/0.4943, allocations: 2.22 MB / 0.736 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00545/0.4997, allocations: 2.172 MB / 0.7381 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01013/0.5099, allocations: 9.287 MB / 0.7472 GB, free: 9.512 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01516/0.5251, allocations: 11.28 MB / 0.7582 GB, free: 1.184 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006164/0.5312, allocations: 3.989 MB / 0.7621 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006143/0.5374, allocations: 4.506 MB / 0.7665 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001133/0.5386, allocations: 0.8281 MB / 0.7673 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002793/0.5414, allocations: 1.588 MB / 0.7688 GB, free: 6.246 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002526/0.5439, allocations: 3.15 MB / 0.7719 GB, free: 3.09 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.003382/0.5473, allocations: 3.653 MB / 0.7755 GB, free: 15.42 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01/0.5573, allocations: 12.31 MB / 0.7875 GB, free: 3.082 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.5573, allocations: 4 kB / 0.7875 GB, free: 3.078 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.883e-06/0.5573, allocations: 0 / 0.7875 GB, free: 3.078 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0002902/0.5576, allocations: 0 / 0.7875 GB, free: 3.078 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01192/0.5696, allocations: 6.315 MB / 0.7937 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.5696, allocations: 12.02 kB / 0.7937 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004571/0.5742, allocations: 1.063 MB / 0.7947 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007508/0.5817, allocations: 3.61 MB / 0.7982 GB, free: 7.941 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002729/0.582, allocations: 427.7 kB / 0.7987 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009002/0.5829, allocations: 0.5433 MB / 0.7992 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01507/0.598, allocations: 9.377 MB / 0.8083 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001081/0.5981, allocations: 23.72 kB / 0.8084 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005445/0.5987, allocations: 248 kB / 0.8086 GB, free: 13 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005139/0.5992, allocations: 426.9 kB / 0.809 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01182/0.611, allocations: 7.12 MB / 0.816 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04077/0.6518, allocations: 41 MB / 0.856 GB, free: 8.715 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00409/0.656, allocations: 3.108 MB / 0.859 GB, free: 5.594 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00262/0.6586, allocations: 2.137 MB / 0.8611 GB, free: 3.465 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001219/0.6587, allocations: 25.98 kB / 0.8611 GB, free: 3.441 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/0.6588, allocations: 60.5 kB / 0.8612 GB, free: 3.371 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=209): time 3.396e-06/0.6588, allocations: 4 kB / 0.8612 GB, free: 3.367 MB / 0.6231 GB Notification: Performance of matching and sorting (n=212): time 0.02175/0.6806, allocations: 10.55 MB / 0.8715 GB, free: 8.723 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.6807, allocations: 81.34 kB / 0.8716 GB, free: 8.633 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002553/0.6832, allocations: 2.009 MB / 0.8735 GB, free: 6.605 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001809/0.6834, allocations: 61.7 kB / 0.8736 GB, free: 6.539 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.001695/0.6851, allocations: 2.404 MB / 0.876 GB, free: 4.102 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006832/0.6858, allocations: 0.724 MB / 0.8767 GB, free: 3.367 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007563/0.6866, allocations: 481.2 kB / 0.8771 GB, free: 2.891 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.6867, allocations: 305.1 kB / 0.8774 GB, free: 2.59 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001926/0.6886, allocations: 1.372 MB / 0.8787 GB, free: 1.215 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002523/0.6912, allocations: 2.108 MB / 0.8808 GB, free: 14.79 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004546/0.6957, allocations: 3.762 MB / 0.8845 GB, free: 10.72 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/0.6957, allocations: 8 kB / 0.8845 GB, free: 10.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007548/0.7033, allocations: 5.077 MB / 0.8894 GB, free: 5.609 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.7033, allocations: 18.97 kB / 0.8895 GB, free: 5.594 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.515e-05/0.7034, allocations: 20 kB / 0.8895 GB, free: 5.574 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003274/0.7066, allocations: 1.587 MB / 0.891 GB, free: 3.98 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.7082, allocations: 455.3 kB / 0.8915 GB, free: 3.535 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02117/0.7293, allocations: 18.57 MB / 0.9096 GB, free: 412 kB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002071/0.7314, allocations: 143.9 kB / 0.9097 GB, free: 268 kB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001856/0.7316, allocations: 108 kB / 0.9098 GB, free: 160 kB / 0.67 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.002805/0.7345, allocations: 1.941 MB / 0.9117 GB, free: 14.2 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004516/0.7349, allocations: 288.7 kB / 0.912 GB, free: 13.92 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006626/0.7415, allocations: 4.458 MB / 0.9164 GB, free: 9.43 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/0.7416, allocations: 20 kB / 0.9164 GB, free: 9.41 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.877e-05/0.7416, allocations: 16 kB / 0.9164 GB, free: 9.395 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.997e-05/0.7416, allocations: 11.95 kB / 0.9164 GB, free: 9.383 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01445/0.7561, allocations: 9.672 MB / 0.9259 GB, free: 15.56 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.7561, allocations: 4 kB / 0.9259 GB, free: 15.56 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009117/0.7571, allocations: 227.6 kB / 0.9261 GB, free: 15.34 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003074/0.7601, allocations: 1.445 MB / 0.9275 GB, free: 13.88 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/0.7603, allocations: 40 kB / 0.9275 GB, free: 13.84 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02139/0.7817, allocations: 18.55 MB / 0.9456 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.7817, allocations: 8 kB / 0.9456 GB, free: 10.72 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006735/0.7885, allocations: 4.541 MB / 0.9501 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/0.7899, allocations: 0.6304 MB / 0.9507 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003264/0.7902, allocations: 39.98 kB / 0.9507 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.7914, allocations: 116.1 kB / 0.9508 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004954/0.7919, allocations: 177.6 kB / 0.951 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001412/0.792, allocations: 67.98 kB / 0.9511 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001801/0.7938, allocations: 1.319 MB / 0.9524 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7938, allocations: 0 / 0.9524 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002975/0.7968, allocations: 1.137 MB / 0.9535 GB, free: 2.582 MB / 0.7169 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.0003/0.7971, allocations: 163.1 kB / 0.9536 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.2726/1.07, allocations: 4.719 MB / 0.9582 GB, free: 229.5 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/1.07, allocations: 2.25 kB / 0.9582 GB, free: 229.5 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.004216/1.074, allocations: 2.915 MB / 0.9611 GB, free: 228.9 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003389/1.077, allocations: 0.8929 MB / 0.962 GB, free: 228.8 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/1.093, allocations: 9.266 MB / 0.971 GB, free: 225.8 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004374/1.097, allocations: 3.702 MB / 0.9746 GB, free: 224.5 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.002368/1.1, allocations: 0.5583 MB / 0.9752 GB, free: 224.4 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004976/1.1, allocations: 149.5 kB / 0.9753 GB, free: 224.4 MB / 0.7169 GB Notification: Performance of SimCode: time 1.382e-06/1.1, allocations: 0 / 0.9753 GB, free: 224.4 MB / 0.7169 GB Notification: Performance of Templates: time 0.06837/1.169, allocations: 50.81 MB / 1.025 GB, free: 193.7 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1)