Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008078/0.0008078, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001725/0.001724, allocations: 274.5 kB / 291.3 MB, free: 1.965 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9844/0.9844, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005027/0.0005028, allocations: 14.19 kB / 0.598 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2089, allocations: 88.54 MB / 0.6845 GB, free: 15.44 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.0321/0.2411, allocations: 32.01 MB / 0.7157 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01827/0.2594, allocations: 9.48 MB / 0.725 GB, free: 5.867 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003656/0.2631, allocations: 123.3 kB / 0.7251 GB, free: 5.746 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002153/0.2653, allocations: 0.6898 MB / 0.7258 GB, free: 5.051 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004895/0.2702, allocations: 1.632 MB / 0.7274 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00392/0.2741, allocations: 1.153 MB / 0.7285 GB, free: 2.262 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01088/0.285, allocations: 8.841 MB / 0.7371 GB, free: 9.398 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01637/0.3014, allocations: 10.41 MB / 0.7473 GB, free: 14.91 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005167/0.3066, allocations: 2.436 MB / 0.7497 GB, free: 12.46 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005938/0.3126, allocations: 3.134 MB / 0.7528 GB, free: 9.32 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001992/0.3146, allocations: 280 kB / 0.753 GB, free: 9.047 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003862/0.3185, allocations: 0.64 MB / 0.7536 GB, free: 8.406 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.003238/0.3217, allocations: 2.089 MB / 0.7557 GB, free: 6.312 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002021/0.3238, allocations: 1.03 MB / 0.7567 GB, free: 5.273 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.7178/1.042, allocations: 8.548 MB / 0.765 GB, free: 25.67 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/1.042, allocations: 1.75 kB / 0.765 GB, free: 25.67 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.835e-06/1.042, allocations: 0 / 0.765 GB, free: 25.67 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0003825/1.042, allocations: 1.375 kB / 0.765 GB, free: 25.67 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: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01322/1.055, allocations: 4.417 MB / 0.7694 GB, free: 23.88 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/1.055, allocations: 10.06 kB / 0.7694 GB, free: 23.88 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007542/1.063, allocations: 0.9617 MB / 0.7703 GB, free: 23.6 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008291/1.071, allocations: 2.925 MB / 0.7732 GB, free: 23.02 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002822/1.072, allocations: 356 kB / 0.7735 GB, free: 23 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002318/1.074, allocations: 469.3 kB / 0.774 GB, free: 23 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02008/1.094, allocations: 7.869 MB / 0.7816 GB, free: 21.93 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001584/1.094, allocations: 20.34 kB / 0.7817 GB, free: 21.93 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009767/1.095, allocations: 208.7 kB / 0.7819 GB, free: 21.93 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005089/1.096, allocations: 365.6 kB / 0.7822 GB, free: 21.92 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01423/1.11, allocations: 5.897 MB / 0.788 GB, free: 21.87 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03878/1.149, allocations: 36.25 MB / 0.8234 GB, free: 12.86 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002868/1.152, allocations: 2.132 MB / 0.8254 GB, free: 11.76 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002004/1.154, allocations: 1.478 MB / 0.8269 GB, free: 11.03 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/1.154, allocations: 20.62 kB / 0.8269 GB, free: 11.03 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.288e-05/1.154, allocations: 51.31 kB / 0.827 GB, free: 10.98 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=157): time 3.407e-06/1.154, allocations: 0 / 0.827 GB, free: 10.98 MB / 0.5607 GB Notification: Performance of matching and sorting (n=160): time 0.01304/1.167, allocations: 7.543 MB / 0.8343 GB, free: 6.137 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/1.167, allocations: 71.33 kB / 0.8344 GB, free: 6.07 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002315/1.169, allocations: 1.841 MB / 0.8362 GB, free: 5.051 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.000137/1.169, allocations: 63.03 kB / 0.8362 GB, free: 4.992 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.001299/1.171, allocations: 2.122 MB / 0.8383 GB, free: 3.133 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004638/1.171, allocations: 0.557 MB / 0.8389 GB, free: 2.652 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/1.171, allocations: 51.47 kB / 0.8389 GB, free: 2.617 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 0.0001615/1.172, allocations: 393 kB / 0.8393 GB, free: 2.25 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/1.173, allocations: 1.05 MB / 0.8403 GB, free: 1.695 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001802/1.175, allocations: 1.754 MB / 0.842 GB, free: 224 kB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001775/1.177, allocations: 1.354 MB / 0.8433 GB, free: 15.52 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.188e-06/1.177, allocations: 7.438 kB / 0.8434 GB, free: 15.52 MB / 0.5763 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.005765/1.182, allocations: 3.901 MB / 0.8472 GB, free: 13.55 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/1.182, allocations: 15.62 kB / 0.8472 GB, free: 13.55 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/1.182, allocations: 23.66 kB / 0.8472 GB, free: 13.55 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002185/1.185, allocations: 0.9334 MB / 0.8481 GB, free: 13.05 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/1.186, allocations: 428.6 kB / 0.8485 GB, free: 12.97 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01878/1.205, allocations: 21.04 MB / 0.8691 GB, free: 6.961 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002104/1.207, allocations: 131.8 kB / 0.8692 GB, free: 6.832 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003575/1.207, allocations: 96.06 kB / 0.8693 GB, free: 6.738 MB / 0.5919 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003178/1.21, allocations: 1.645 MB / 0.8709 GB, free: 5.113 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006194/1.211, allocations: 257.1 kB / 0.8711 GB, free: 4.859 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005413/1.217, allocations: 3.253 MB / 0.8743 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/1.217, allocations: 19.95 kB / 0.8743 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/1.217, allocations: 16 kB / 0.8743 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/1.217, allocations: 7.969 kB / 0.8744 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01202/1.229, allocations: 7.536 MB / 0.8817 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/1.229, allocations: 4 kB / 0.8817 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009266/1.23, allocations: 219.9 kB / 0.8819 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002196/1.232, allocations: 0.8964 MB / 0.8828 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/1.232, allocations: 28 kB / 0.8828 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01867/1.251, allocations: 21.02 MB / 0.9034 GB, free: 2.297 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/1.251, allocations: 10.06 kB / 0.9034 GB, free: 2.289 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007172/1.258, allocations: 3.354 MB / 0.9066 GB, free: 14.86 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002305/1.26, allocations: 0.537 MB / 0.9072 GB, free: 14.3 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001218/1.261, allocations: 32 kB / 0.9072 GB, free: 14.27 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002038/1.263, allocations: 91.89 kB / 0.9073 GB, free: 14.18 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004789/1.264, allocations: 144.9 kB / 0.9074 GB, free: 14.04 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001786/1.264, allocations: 44 kB / 0.9075 GB, free: 14 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.002671/1.267, allocations: 1.205 MB / 0.9086 GB, free: 12.78 MB / 0.6388 GB Notification: Performance of sort global known variables: time 5.81e-07/1.267, allocations: 0 / 0.9086 GB, free: 12.78 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.004037/1.271, allocations: 0.9102 MB / 0.9095 GB, free: 11.87 MB / 0.6388 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003422/1.271, allocations: 160.4 kB / 0.9097 GB, free: 11.72 MB / 0.6388 GB Notification: Performance of simCode: created initialization part: time 0.006647/1.278, allocations: 4.413 MB / 0.914 GB, free: 7.242 MB / 0.6388 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/1.278, allocations: 4 kB / 0.914 GB, free: 7.238 MB / 0.6388 GB Notification: Performance of simCode: created simulation system equations: time 0.004049/1.282, allocations: 2.988 MB / 0.9169 GB, free: 4.125 MB / 0.6388 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003918/1.286, allocations: 0.7714 MB / 0.9177 GB, free: 3.359 MB / 0.6388 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/1.303, allocations: 9.252 MB / 0.9267 GB, free: 10.06 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003968/1.307, allocations: 3.213 MB / 0.9298 GB, free: 6.816 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.002463/1.309, allocations: 0.5332 MB / 0.9304 GB, free: 6.277 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004128/1.31, allocations: 139.4 kB / 0.9305 GB, free: 6.141 MB / 0.6544 GB Notification: Performance of SimCode: time 1.513e-06/1.31, allocations: 0 / 0.9305 GB, free: 6.141 MB / 0.6544 GB Notification: Performance of Templates: time 0.07723/1.387, allocations: 39.77 MB / 0.9693 GB, free: 15.08 MB / 0.7013 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1)