Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 104.8 kB / 16.4 MB, free: 6.465 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.001734/0.001734, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002166/0.002166, allocations: 281.4 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9738/0.9738, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 92.28 kB / 0.6821 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4946/0.4966, allocations: 86.98 MB / 0.767 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003815/0.5004, allocations: 2.888 MB / 0.7698 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002601/0.503, allocations: 1.64 MB / 0.7714 GB, free: 15.39 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.5032, allocations: 11.94 kB / 0.7715 GB, free: 15.38 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0007505/0.5039, allocations: 231 kB / 0.7717 GB, free: 15.16 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003712/0.5043, allocations: 183.2 kB / 0.7719 GB, free: 14.98 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004667/0.5048, allocations: 230.4 kB / 0.7721 GB, free: 14.75 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003451/0.5051, allocations: 311 kB / 0.7724 GB, free: 14.45 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003096/0.5055, allocations: 189.9 kB / 0.7726 GB, free: 14.26 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.5057, allocations: 119.6 kB / 0.7727 GB, free: 14.14 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002639/0.5059, allocations: 151.4 kB / 0.7728 GB, free: 14 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.253e-05/0.506, allocations: 20 kB / 0.7728 GB, free: 13.98 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003603/0.5063, allocations: 251.5 kB / 0.7731 GB, free: 13.73 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 9.306e-05/0.5064, allocations: 83.78 kB / 0.7732 GB, free: 13.65 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.5066, allocations: 111.5 kB / 0.7733 GB, free: 13.54 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004571/0.507, allocations: 417.3 kB / 0.7737 GB, free: 13.13 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.507, allocations: 0 / 0.7737 GB, free: 13.13 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.302e-06/0.5071, allocations: 4 kB / 0.7737 GB, free: 13.13 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.5071, allocations: 0 / 0.7737 GB, free: 13.13 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008009/0.5079, allocations: 0.5341 MB / 0.7742 GB, free: 12.54 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.5079, allocations: 12.03 kB / 0.7742 GB, free: 12.53 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006966/0.5086, allocations: 92.55 kB / 0.7743 GB, free: 12.44 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.5089, allocations: 278.2 kB / 0.7745 GB, free: 12.13 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.509, allocations: 12.75 kB / 0.7746 GB, free: 12.12 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.575e-05/0.509, allocations: 20.31 kB / 0.7746 GB, free: 12.1 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006059/0.5096, allocations: 374.6 kB / 0.7749 GB, free: 11.7 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.5097, allocations: 0 / 0.7749 GB, free: 11.7 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.578e-05/0.5097, allocations: 19.97 kB / 0.775 GB, free: 11.68 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.383e-05/0.5098, allocations: 20.31 kB / 0.775 GB, free: 11.66 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005844/0.5103, allocations: 320.7 kB / 0.7753 GB, free: 11.35 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001697/0.5121, allocations: 1.724 MB / 0.777 GB, free: 9.488 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006913/0.5128, allocations: 329 kB / 0.7773 GB, free: 9.148 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002803/0.513, allocations: 149.6 kB / 0.7774 GB, free: 8.996 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001341/0.5132, allocations: 89.09 kB / 0.7775 GB, free: 8.891 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.5132, allocations: 42.44 kB / 0.7775 GB, free: 8.84 MB / 0.545 GB Notification: Performance of pre-optimization done (n=20): time 1.743e-06/0.5132, allocations: 0 / 0.7775 GB, free: 8.84 MB / 0.545 GB Notification: Performance of matching and sorting (n=21): time 0.001311/0.5145, allocations: 0.5906 MB / 0.7781 GB, free: 8.223 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/0.5146, allocations: 89.09 kB / 0.7782 GB, free: 8.117 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.5148, allocations: 196.5 kB / 0.7784 GB, free: 7.918 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/0.5148, allocations: 29.7 kB / 0.7784 GB, free: 7.883 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.324e-05/0.5149, allocations: 163.8 kB / 0.7786 GB, free: 7.719 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.506e-05/0.515, allocations: 78.88 kB / 0.7787 GB, free: 7.641 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.442e-05/0.5151, allocations: 61.89 kB / 0.7787 GB, free: 7.574 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.5152, allocations: 330.8 kB / 0.779 GB, free: 7.242 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002575/0.5155, allocations: 133.8 kB / 0.7792 GB, free: 7.109 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002944/0.5158, allocations: 215.3 kB / 0.7794 GB, free: 6.863 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00057/0.5164, allocations: 369.3 kB / 0.7797 GB, free: 6.469 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.5164, allocations: 0 / 0.7797 GB, free: 6.469 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007928/0.5172, allocations: 421.8 kB / 0.7801 GB, free: 6.047 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.5172, allocations: 4 kB / 0.7801 GB, free: 6.043 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.5172, allocations: 4.344 kB / 0.7801 GB, free: 6.039 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000219/0.5174, allocations: 44.83 kB / 0.7802 GB, free: 5.992 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.5177, allocations: 71.88 kB / 0.7802 GB, free: 5.922 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/0.5191, allocations: 1.615 MB / 0.7818 GB, free: 4.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.5193, allocations: 27.91 kB / 0.7818 GB, free: 4.133 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.5194, allocations: 16 kB / 0.7819 GB, free: 4.117 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003177/0.5197, allocations: 232.6 kB / 0.7821 GB, free: 3.887 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002748/0.52, allocations: 207.9 kB / 0.7823 GB, free: 3.645 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005198/0.5205, allocations: 356.8 kB / 0.7826 GB, free: 3.258 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.563e-06/0.5205, allocations: 0 / 0.7826 GB, free: 3.258 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007415/0.5213, allocations: 405.9 kB / 0.783 GB, free: 2.852 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.5213, allocations: 8 kB / 0.783 GB, free: 2.844 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.5213, allocations: 4 kB / 0.783 GB, free: 2.84 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001381/0.5215, allocations: 44.81 kB / 0.7831 GB, free: 2.793 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002754/0.5217, allocations: 63.89 kB / 0.7831 GB, free: 2.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.523, allocations: 1.607 MB / 0.7847 GB, free: 0.9766 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.5232, allocations: 35.88 kB / 0.7847 GB, free: 0.9414 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.5232, allocations: 8 kB / 0.7847 GB, free: 0.9336 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001496/0.5234, allocations: 196.2 kB / 0.7849 GB, free: 0.7344 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.884e-05/0.5235, allocations: 19.75 kB / 0.7849 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006855/0.5242, allocations: 362.2 kB / 0.7853 GB, free: 360 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.5242, allocations: 7.984 kB / 0.7853 GB, free: 352 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.5242, allocations: 0 / 0.7853 GB, free: 352 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5242, allocations: 7.984 kB / 0.7853 GB, free: 344 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.5257, allocations: 0.9559 MB / 0.7862 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.5257, allocations: 4.062 kB / 0.7862 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.5259, allocations: 63.77 kB / 0.7863 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001218/0.526, allocations: 32.83 kB / 0.7863 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.5261, allocations: 12.22 kB / 0.7863 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.5272, allocations: 1.504 MB / 0.7878 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.5272, allocations: 4.031 kB / 0.7878 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00069/0.5279, allocations: 0.5493 MB / 0.7883 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.528, allocations: 116.9 kB / 0.7885 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.739e-05/0.528, allocations: 11.94 kB / 0.7885 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.5283, allocations: 15.97 kB / 0.7885 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.784e-05/0.5284, allocations: 27.92 kB / 0.7885 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.5284, allocations: 7.984 kB / 0.7885 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001334/0.5285, allocations: 155.7 kB / 0.7887 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5285, allocations: 0 / 0.7887 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006141/0.5291, allocations: 108 kB / 0.7888 GB, free: 12.5 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001472/0.5293, allocations: 119.9 kB / 0.7889 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001299/0.5306, allocations: 0.7417 MB / 0.7896 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.5306, allocations: 256 / 0.7896 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003915/0.531, allocations: 270.5 kB / 0.7899 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.5315, allocations: 31.97 kB / 0.7899 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001/0.5325, allocations: 0.5887 MB / 0.7905 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/0.5329, allocations: 0.7678 MB / 0.7912 GB, free: 9.867 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.373e-05/0.533, allocations: 27.42 kB / 0.7912 GB, free: 9.84 MB / 0.5606 GB Notification: Performance of SimCode: time 3.81e-07/0.5331, allocations: 0 / 0.7912 GB, free: 9.84 MB / 0.5606 GB Notification: Performance of Templates: time 0.006245/0.5393, allocations: 4.221 MB / 0.7954 GB, free: 5.621 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)