Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.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.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium") translateModel(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007816/0.0007816, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004772/0.004772, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.335/1.335, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00175/0.00175, allocations: 282.4 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9636/0.9636, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004221/0.0004222, allocations: 15.94 kB / 0.5987 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1538, allocations: 88.54 MB / 0.6851 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium): time 0.005636/0.1595, allocations: 4.797 MB / 0.6898 GB, free: 10.23 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005168/0.1647, allocations: 3.703 MB / 0.6934 GB, free: 6.531 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002841/0.165, allocations: 15.88 kB / 0.6934 GB, free: 6.516 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007396/0.1658, allocations: 232.4 kB / 0.6937 GB, free: 6.293 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001021/0.1668, allocations: 414.8 kB / 0.6941 GB, free: 5.891 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006017/0.1674, allocations: 241.8 kB / 0.6943 GB, free: 5.656 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.1685, allocations: 0.9053 MB / 0.6952 GB, free: 4.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.1698, allocations: 0.8398 MB / 0.696 GB, free: 3.883 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004207/0.1702, allocations: 299 kB / 0.6963 GB, free: 3.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004166/0.1707, allocations: 278.9 kB / 0.6965 GB, free: 3.316 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.494e-05/0.1707, allocations: 16 kB / 0.6966 GB, free: 3.301 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005354/0.1713, allocations: 323.4 kB / 0.6969 GB, free: 2.984 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001412/0.1714, allocations: 135.6 kB / 0.697 GB, free: 2.852 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002283/0.1717, allocations: 232.6 kB / 0.6972 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008023/0.1725, allocations: 0.8137 MB / 0.698 GB, free: 1.801 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1725, allocations: 8 kB / 0.698 GB, free: 1.793 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1725, allocations: 0 / 0.698 GB, free: 1.793 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.1725, allocations: 0 / 0.698 GB, free: 1.793 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.00126/0.1738, allocations: 0.7247 MB / 0.6987 GB, free: 1.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.1738, allocations: 12.03 kB / 0.6987 GB, free: 1.008 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002904/0.1767, allocations: 0.6827 MB / 0.6994 GB, free: 332 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000736/0.1775, allocations: 464.5 kB / 0.6999 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.1775, allocations: 21.03 kB / 0.6999 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-05/0.1776, allocations: 36.12 kB / 0.6999 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/0.1793, allocations: 0.8278 MB / 0.7007 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.1793, allocations: 4 kB / 0.7007 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.737e-05/0.1794, allocations: 15.98 kB / 0.7007 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001932/0.1796, allocations: 60.58 kB / 0.7008 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002146/0.1817, allocations: 0.939 MB / 0.7017 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003949/0.1857, allocations: 2.863 MB / 0.7045 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.1875, allocations: 0.5566 MB / 0.7051 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007735/0.1883, allocations: 312.6 kB / 0.7053 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001166/0.1884, allocations: 89.09 kB / 0.7054 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.1885, allocations: 34.56 kB / 0.7055 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=22): time 3.957e-06/0.1885, allocations: 0 / 0.7055 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of matching and sorting (n=36): time 0.01431/0.2028, allocations: 3.923 MB / 0.7093 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.2029, allocations: 67.33 kB / 0.7094 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004955/0.2034, allocations: 433.5 kB / 0.7098 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.279e-05/0.2034, allocations: 33.7 kB / 0.7098 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.2036, allocations: 236.2 kB / 0.71 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.2037, allocations: 122.2 kB / 0.7102 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.935e-05/0.2038, allocations: 37.7 kB / 0.7102 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.2039, allocations: 350.8 kB / 0.7105 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/0.205, allocations: 436.5 kB / 0.7109 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/0.206, allocations: 0.497 MB / 0.7114 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/0.2081, allocations: 0.9344 MB / 0.7123 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.2081, allocations: 4 kB / 0.7123 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005996/0.2141, allocations: 1.873 MB / 0.7142 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.2142, allocations: 145.9 kB / 0.7143 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.2143, allocations: 0 / 0.7143 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004665/0.2189, allocations: 1.02 MB / 0.7153 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006619/0.2196, allocations: 135.8 kB / 0.7154 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00999/0.2296, allocations: 6.187 MB / 0.7215 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008634/0.2305, allocations: 115.9 kB / 0.7216 GB, free: 8.84 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.505e-05/0.2306, allocations: 19.98 kB / 0.7216 GB, free: 8.82 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.838e-06/0.2306, allocations: 4 kB / 0.7216 GB, free: 8.816 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005094/0.2357, allocations: 1.574 MB / 0.7231 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2357, allocations: 4 kB / 0.7231 GB, free: 7.23 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003264/0.239, allocations: 0.7394 MB / 0.7239 GB, free: 6.484 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006584/0.2397, allocations: 143.8 kB / 0.724 GB, free: 6.344 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007738/0.2474, allocations: 5.417 MB / 0.7293 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008293/0.2483, allocations: 107.9 kB / 0.7294 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.856e-05/0.2484, allocations: 19.98 kB / 0.7294 GB, free: 0.5352 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004089/0.2488, allocations: 332.9 kB / 0.7297 GB, free: 204 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.642e-05/0.2489, allocations: 43.52 kB / 0.7298 GB, free: 160 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005568/0.2545, allocations: 1.774 MB / 0.7315 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.2545, allocations: 4 kB / 0.7315 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.2545, allocations: 4 kB / 0.7315 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.2545, allocations: 3.984 kB / 0.7315 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006377/0.2609, allocations: 2.473 MB / 0.7339 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.2609, allocations: 3.984 kB / 0.7339 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004114/0.2614, allocations: 84 kB / 0.734 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004176/0.2655, allocations: 0.9458 MB / 0.7349 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.915e-05/0.2656, allocations: 4 kB / 0.7349 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008831/0.2745, allocations: 5.86 MB / 0.7407 GB, free: 4.633 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.2745, allocations: 3.984 kB / 0.7407 GB, free: 4.629 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005366/0.2799, allocations: 1.727 MB / 0.7424 GB, free: 2.867 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002852/0.2802, allocations: 192.6 kB / 0.7425 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.228e-05/0.2803, allocations: 15.88 kB / 0.7426 GB, free: 2.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006527/0.2809, allocations: 103.7 kB / 0.7427 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.2811, allocations: 31.95 kB / 0.7427 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.563e-05/0.2811, allocations: 12 kB / 0.7427 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003687/0.2815, allocations: 315.1 kB / 0.743 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.422e-06/0.2815, allocations: 0 / 0.743 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0009812/0.2825, allocations: 267.9 kB / 0.7433 GB, free: 1.938 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001848/0.2827, allocations: 111.9 kB / 0.7434 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006526/0.2892, allocations: 2.489 MB / 0.7458 GB, free: 15.27 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.2892, allocations: 0 / 0.7458 GB, free: 15.27 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002563/0.2918, allocations: 0.9733 MB / 0.7467 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007705/0.2926, allocations: 120.9 kB / 0.7469 GB, free: 14.16 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002166/0.2948, allocations: 1.448 MB / 0.7483 GB, free: 12.68 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005405/0.2953, allocations: 0.9529 MB / 0.7492 GB, free: 11.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005147/0.2959, allocations: 147.2 kB / 0.7493 GB, free: 11.55 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.296, allocations: 35.36 kB / 0.7494 GB, free: 11.52 MB / 0.545 GB Notification: Performance of SimCode: time 6.51e-07/0.296, allocations: 0 / 0.7494 GB, free: 11.52 MB / 0.545 GB Notification: Performance of Templates: time 0.02299/0.319, allocations: 15.4 MB / 0.7644 GB, free: 12.28 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe 2>&1)