Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008357/0.0008357, allocations: 86.25 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.0009349/0.000935, 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.453/1.453, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001628/0.001628, allocations: 273.8 kB / 291.4 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1/1, allocations: 169.5 MB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004542/0.0004542, allocations: 15.56 kB / 0.598 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.1893, allocations: 88.55 MB / 0.6845 GB, free: 15.42 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid): time 0.01232/0.2016, allocations: 10.69 MB / 0.6949 GB, free: 4.703 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.008056/0.2097, allocations: 4.994 MB / 0.6998 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009734/0.2107, allocations: 32.5 kB / 0.6998 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000907/0.2117, allocations: 300 kB / 0.7001 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001322/0.213, allocations: 0.5053 MB / 0.7006 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001372/0.2144, allocations: 466.9 kB / 0.7011 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003117/0.2175, allocations: 2.786 MB / 0.7038 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005323/0.2229, allocations: 3.625 MB / 0.7073 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001416/0.2243, allocations: 0.7279 MB / 0.708 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001822/0.2261, allocations: 1.008 MB / 0.709 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000218/0.2264, allocations: 99.98 kB / 0.7091 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001045/0.2274, allocations: 291.7 kB / 0.7094 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000824/0.2283, allocations: 0.7249 MB / 0.7101 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004627/0.2287, allocations: 348.9 kB / 0.7104 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00286/0.2316, allocations: 3.024 MB / 0.7134 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.2316, allocations: 7.938 kB / 0.7134 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.904e-06/0.2316, allocations: 0 / 0.7134 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.372e-05/0.2317, allocations: 0 / 0.7134 GB, free: 1.719 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: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.003376/0.2351, allocations: 1.64 MB / 0.715 GB, free: 24 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.2351, allocations: 8.031 kB / 0.715 GB, free: 16 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002283/0.2374, allocations: 481.7 kB / 0.7155 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/0.2394, allocations: 1.135 MB / 0.7166 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.2395, allocations: 115 kB / 0.7167 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002783/0.2398, allocations: 155.9 kB / 0.7168 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004611/0.2444, allocations: 2.742 MB / 0.7195 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.967e-05/0.2445, allocations: 8 kB / 0.7195 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001668/0.2447, allocations: 60 kB / 0.7196 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003232/0.245, allocations: 178.9 kB / 0.7198 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003805/0.2488, allocations: 2.284 MB / 0.722 GB, free: 8.758 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.013/0.2619, allocations: 10.54 MB / 0.7323 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009307/0.2628, allocations: 0.5804 MB / 0.7328 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005922/0.2634, allocations: 389 kB / 0.7332 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001298/0.2636, allocations: 93.09 kB / 0.7333 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.2636, allocations: 38.56 kB / 0.7333 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=36): time 2.304e-06/0.2636, allocations: 3.938 kB / 0.7333 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=52): time 0.0186/0.2822, allocations: 6.271 MB / 0.7395 GB, free: 5.867 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.895e-05/0.2823, allocations: 81.55 kB / 0.7395 GB, free: 5.77 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001266/0.2836, allocations: 0.8945 MB / 0.7404 GB, free: 4.863 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.2837, allocations: 33.7 kB / 0.7404 GB, free: 4.824 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004869/0.2842, allocations: 0.7538 MB / 0.7412 GB, free: 4.059 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/0.2844, allocations: 189.4 kB / 0.7414 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.014e-05/0.2845, allocations: 12 kB / 0.7414 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.2846, allocations: 390.8 kB / 0.7417 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009805/0.2856, allocations: 0.6382 MB / 0.7424 GB, free: 2.832 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/0.2869, allocations: 1.007 MB / 0.7434 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.2881, allocations: 0.8101 MB / 0.7441 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2881, allocations: 4 kB / 0.7441 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.008414/0.2965, allocations: 3.217 MB / 0.7473 GB, free: 13.61 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.00037/0.2969, allocations: 441.9 kB / 0.7477 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.297, allocations: 12 kB / 0.7477 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007152/0.3041, allocations: 1.856 MB / 0.7495 GB, free: 11.13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009001/0.305, allocations: 223.6 kB / 0.7497 GB, free: 10.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/0.3186, allocations: 10.22 MB / 0.7597 GB, free: 164 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/0.32, allocations: 183.5 kB / 0.7599 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.3201, allocations: 44 kB / 0.7599 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.606e-06/0.3201, allocations: 4 kB / 0.76 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006479/0.3266, allocations: 2.618 MB / 0.7625 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-05/0.3267, allocations: 12 kB / 0.7625 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00467/0.3313, allocations: 1.207 MB / 0.7637 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009626/0.3323, allocations: 251.6 kB / 0.7639 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007389/0.3397, allocations: 5.543 MB / 0.7694 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.3409, allocations: 139.8 kB / 0.7695 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-05/0.341, allocations: 44 kB / 0.7695 GB, free: 5.84 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (99): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.001204/0.3422, allocations: 0.8446 MB / 0.7704 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.3423, allocations: 79.06 kB / 0.7704 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007201/0.3495, allocations: 2.691 MB / 0.7731 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.3496, allocations: 8 kB / 0.7731 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.3496, allocations: 4.062 kB / 0.7731 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.3496, allocations: 0 / 0.7731 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3593/0.7089, allocations: 4.64 MB / 0.7776 GB, free: 85.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.709, allocations: 2.281 kB / 0.7776 GB, free: 85.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004287/0.7094, allocations: 98.64 kB / 0.7777 GB, free: 85.53 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006597/0.716, allocations: 1.708 MB / 0.7794 GB, free: 85.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.7162, allocations: 14.23 kB / 0.7794 GB, free: 85.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01243/0.7286, allocations: 9.758 MB / 0.7889 GB, free: 79.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.7286, allocations: 6.562 kB / 0.7889 GB, free: 79.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007095/0.7357, allocations: 2.642 MB / 0.7915 GB, free: 78.94 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005855/0.7364, allocations: 285.9 kB / 0.7918 GB, free: 78.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.7365, allocations: 14.75 kB / 0.7918 GB, free: 78.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007132/0.7372, allocations: 136.4 kB / 0.7919 GB, free: 78.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002743/0.7375, allocations: 50.69 kB / 0.792 GB, free: 78.76 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-05/0.7376, allocations: 16.12 kB / 0.792 GB, free: 78.75 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000836/0.7384, allocations: 0.635 MB / 0.7926 GB, free: 78.49 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7384, allocations: 3.312 kB / 0.7926 GB, free: 78.49 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002216/0.7406, allocations: 0.5951 MB / 0.7932 GB, free: 78.45 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): 38 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.000248/0.7409, allocations: 126.7 kB / 0.7933 GB, free: 78.36 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.004782/0.7457, allocations: 3.241 MB / 0.7965 GB, free: 76.86 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.7457, allocations: 1.281 kB / 0.7965 GB, free: 76.86 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001844/0.7476, allocations: 1.277 MB / 0.7977 GB, free: 76.18 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.7488, allocations: 223.5 kB / 0.7979 GB, free: 76.11 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005687/0.7545, allocations: 3.548 MB / 0.8014 GB, free: 74.29 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/0.756, allocations: 1.621 MB / 0.803 GB, free: 73.38 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001512/0.7575, allocations: 497.9 kB / 0.8034 GB, free: 73.34 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.7577, allocations: 57.34 kB / 0.8035 GB, free: 73.34 MB / 0.5606 GB Notification: Performance of SimCode: time 1.383e-06/0.7577, allocations: 2.953 kB / 0.8035 GB, free: 73.34 MB / 0.5606 GB Notification: Performance of Templates: time 0.03383/0.7916, allocations: 23.45 MB / 0.8264 GB, free: 59.37 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1)