Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_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.ACSimpleGrid_N,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") translateModel(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.00139/0.00139, allocations: 168.7 kB / 15.95 MB, free: 204 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.403/1.403, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001685/0.001685, allocations: 274 kB / 291.4 MB, free: 1.953 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.033/1.033, allocations: 169.5 MB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004525/0.0004526, allocations: 15 kB / 0.598 GB, free: 28.41 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.177, allocations: 88.55 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N): time 0.01165/0.1887, allocations: 10.79 MB / 0.695 GB, free: 4.629 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.008015/0.1967, allocations: 5.204 MB / 0.7001 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008998/0.1977, allocations: 31.88 kB / 0.7001 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008674/0.1986, allocations: 294.6 kB / 0.7004 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001263/0.1998, allocations: 0.5306 MB / 0.7009 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.2013, allocations: 490.9 kB / 0.7014 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003137/0.2044, allocations: 2.927 MB / 0.7043 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005358/0.2098, allocations: 3.865 MB / 0.708 GB, free: 7.25 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001377/0.2112, allocations: 0.7746 MB / 0.7088 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001452/0.2126, allocations: 1.09 MB / 0.7099 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000177/0.2128, allocations: 100 kB / 0.71 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008585/0.2137, allocations: 323.6 kB / 0.7103 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006849/0.2144, allocations: 0.7443 MB / 0.711 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000435/0.2148, allocations: 364.9 kB / 0.7113 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002768/0.2176, allocations: 3.277 MB / 0.7145 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2176, allocations: 3.938 kB / 0.7146 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2176, allocations: 0 / 0.7146 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.82e-05/0.2177, allocations: 0 / 0.7146 GB, free: 0.5664 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.003718/0.2214, allocations: 1.773 MB / 0.7163 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.2215, allocations: 8.031 kB / 0.7163 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00307/0.2246, allocations: 0.747 MB / 0.717 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00239/0.227, allocations: 1.235 MB / 0.7182 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.283e-05/0.2271, allocations: 119.2 kB / 0.7183 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002652/0.2274, allocations: 156 kB / 0.7185 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004953/0.2323, allocations: 2.944 MB / 0.7214 GB, free: 9.43 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.244e-05/0.2324, allocations: 12 kB / 0.7214 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001823/0.2326, allocations: 67.97 kB / 0.7214 GB, free: 9.352 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003988/0.233, allocations: 203 kB / 0.7216 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003852/0.2368, allocations: 2.499 MB / 0.7241 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01244/0.2493, allocations: 10.91 MB / 0.7347 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.2505, allocations: 0.9275 MB / 0.7356 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006609/0.2512, allocations: 0.5012 MB / 0.7361 GB, free: 9.359 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00012/0.2513, allocations: 93.48 kB / 0.7362 GB, free: 9.25 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.2514, allocations: 42.92 kB / 0.7363 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=46): time 2.084e-06/0.2514, allocations: 0 / 0.7363 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of matching and sorting (n=70): time 0.02534/0.2767, allocations: 8.973 MB / 0.745 GB, free: 156 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.353e-05/0.2768, allocations: 85.67 kB / 0.7451 GB, free: 52 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001342/0.2782, allocations: 0.9376 MB / 0.746 GB, free: 15.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.2783, allocations: 41.7 kB / 0.7461 GB, free: 15.05 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004872/0.2788, allocations: 0.7697 MB / 0.7468 GB, free: 14.27 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.279, allocations: 252.5 kB / 0.7471 GB, free: 14.02 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.532e-05/0.2791, allocations: 20 kB / 0.7471 GB, free: 14 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001774/0.2793, allocations: 394.8 kB / 0.7474 GB, free: 13.61 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.2805, allocations: 0.7989 MB / 0.7482 GB, free: 12.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.2819, allocations: 1.167 MB / 0.7494 GB, free: 11.48 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.2833, allocations: 0.9907 MB / 0.7503 GB, free: 10.48 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.2833, allocations: 4 kB / 0.7503 GB, free: 10.48 MB / 0.545 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.009227/0.2926, allocations: 3.784 MB / 0.754 GB, free: 6.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003728/0.293, allocations: 410.7 kB / 0.7544 GB, free: 6.129 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.293, allocations: 11.94 kB / 0.7544 GB, free: 6.117 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007962/0.3009, allocations: 2.169 MB / 0.7566 GB, free: 3.941 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009283/0.3019, allocations: 219.6 kB / 0.7568 GB, free: 3.727 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01524/0.3172, allocations: 10.27 MB / 0.7668 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/0.3186, allocations: 195.6 kB / 0.767 GB, free: 9.004 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.3187, allocations: 47.98 kB / 0.767 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.879e-06/0.3188, allocations: 4 kB / 0.767 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007506/0.3263, allocations: 3.072 MB / 0.77 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.084e-05/0.3264, allocations: 15.94 kB / 0.77 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005038/0.3314, allocations: 1.363 MB / 0.7714 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.3326, allocations: 283.6 kB / 0.7716 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3904/0.723, allocations: 6.15 MB / 0.7777 GB, free: 84.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.7243, allocations: 170.6 kB / 0.7778 GB, free: 84.31 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.707e-05/0.7245, allocations: 46.25 kB / 0.7779 GB, free: 84.31 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (97): * Single equations (assignments): 95 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.001599/0.7261, allocations: 0.9032 MB / 0.7787 GB, free: 84.12 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002045/0.7263, allocations: 86.22 kB / 0.7788 GB, free: 84.12 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009509/0.7358, allocations: 3.322 MB / 0.7821 GB, free: 83.98 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.809e-05/0.7359, allocations: 14.2 kB / 0.7821 GB, free: 83.98 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.7359, allocations: 5.844 kB / 0.7821 GB, free: 83.98 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.056e-05/0.7359, allocations: 3.375 kB / 0.7821 GB, free: 83.98 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01361/0.7495, allocations: 5.493 MB / 0.7875 GB, free: 82.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.7496, allocations: 1.438 kB / 0.7875 GB, free: 82.11 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004676/0.7501, allocations: 107.7 kB / 0.7876 GB, free: 82.11 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006808/0.7569, allocations: 1.977 MB / 0.7895 GB, free: 81.88 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001283/0.7571, allocations: 14.5 kB / 0.7895 GB, free: 81.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01271/0.7698, allocations: 9.659 MB / 0.7989 GB, free: 76.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/0.7699, allocations: 1.531 kB / 0.7989 GB, free: 76.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008757/0.7786, allocations: 3.202 MB / 0.8021 GB, free: 75.76 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008316/0.7795, allocations: 336.2 kB / 0.8024 GB, free: 75.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.7797, allocations: 17.38 kB / 0.8024 GB, free: 75.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008138/0.7805, allocations: 155.3 kB / 0.8026 GB, free: 75.55 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003418/0.7808, allocations: 62.33 kB / 0.8026 GB, free: 75.53 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-05/0.7809, allocations: 23.34 kB / 0.8026 GB, free: 75.52 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001141/0.7821, allocations: 0.6776 MB / 0.8033 GB, free: 75.13 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7821, allocations: 0 / 0.8033 GB, free: 75.13 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002809/0.7849, allocations: 0.7011 MB / 0.804 GB, free: 75.08 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002731/0.7852, allocations: 131 kB / 0.8041 GB, free: 74.97 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007118/0.7923, allocations: 3.916 MB / 0.8079 GB, free: 72.79 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-05/0.7923, allocations: 1.375 kB / 0.8079 GB, free: 72.79 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002225/0.7946, allocations: 1.307 MB / 0.8092 GB, free: 71.96 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/0.7961, allocations: 255.1 kB / 0.8094 GB, free: 71.85 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005636/0.8017, allocations: 4.081 MB / 0.8134 GB, free: 69.36 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001178/0.8029, allocations: 1.724 MB / 0.8151 GB, free: 68.14 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00126/0.8042, allocations: 0.5211 MB / 0.8156 GB, free: 67.93 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.8044, allocations: 57.06 kB / 0.8157 GB, free: 67.93 MB / 0.5606 GB Notification: Performance of SimCode: time 5.31e-07/0.8044, allocations: 0.875 kB / 0.8157 GB, free: 67.93 MB / 0.5606 GB Notification: Performance of Templates: time 0.03653/0.8409, allocations: 29.63 MB / 0.8446 GB, free: 41.5 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1)