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.001185/0.001184, allocations: 110 kB / 16.41 MB, free: 6.5 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.001314/0.001314, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.438/1.438, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002258/0.002258, allocations: 285.4 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9944/0.9944, allocations: 169.3 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 91.84 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5021/0.504, allocations: 86.98 MB / 0.767 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004543/0.5086, allocations: 2.884 MB / 0.7698 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002575/0.5112, allocations: 1.648 MB / 0.7715 GB, free: 15.35 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.5114, allocations: 4 kB / 0.7715 GB, free: 15.34 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0007995/0.5122, allocations: 235 kB / 0.7717 GB, free: 15.11 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003844/0.5126, allocations: 187.2 kB / 0.7719 GB, free: 14.93 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005063/0.5131, allocations: 227.4 kB / 0.7721 GB, free: 14.71 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003637/0.5135, allocations: 311 kB / 0.7724 GB, free: 14.4 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003814/0.5139, allocations: 182 kB / 0.7725 GB, free: 14.22 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.5141, allocations: 119.6 kB / 0.7727 GB, free: 14.11 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003349/0.5144, allocations: 151.4 kB / 0.7728 GB, free: 13.96 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.855e-05/0.5145, allocations: 23.94 kB / 0.7728 GB, free: 13.93 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004327/0.5149, allocations: 251.5 kB / 0.7731 GB, free: 13.69 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.883e-05/0.515, allocations: 79.8 kB / 0.7731 GB, free: 13.61 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001477/0.5152, allocations: 119.5 kB / 0.7733 GB, free: 13.49 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004847/0.5156, allocations: 417.2 kB / 0.7737 GB, free: 13.09 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.5157, allocations: 0 / 0.7737 GB, free: 13.09 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.295e-06/0.5157, allocations: 4 kB / 0.7737 GB, free: 13.08 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.5157, allocations: 0 / 0.7737 GB, free: 13.08 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.00082/0.5165, allocations: 0.538 MB / 0.7742 GB, free: 12.49 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.5165, allocations: 8.031 kB / 0.7742 GB, free: 12.48 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006862/0.5172, allocations: 88.56 kB / 0.7743 GB, free: 12.4 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003111/0.5176, allocations: 274.1 kB / 0.7745 GB, free: 12.09 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.5176, allocations: 12.73 kB / 0.7745 GB, free: 12.08 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.473e-05/0.5176, allocations: 20.36 kB / 0.7746 GB, free: 12.06 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006058/0.5183, allocations: 382.6 kB / 0.7749 GB, free: 11.66 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.5183, allocations: 3.984 kB / 0.7749 GB, free: 11.65 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.5183, allocations: 8 kB / 0.7749 GB, free: 11.64 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.025e-05/0.5184, allocations: 20.31 kB / 0.775 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005747/0.5189, allocations: 324.6 kB / 0.7753 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.5208, allocations: 1.72 MB / 0.777 GB, free: 9.449 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007826/0.5216, allocations: 333.1 kB / 0.7773 GB, free: 9.105 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002568/0.5218, allocations: 149.6 kB / 0.7774 GB, free: 8.953 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001374/0.522, allocations: 89.03 kB / 0.7775 GB, free: 8.848 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.522, allocations: 38.56 kB / 0.7775 GB, free: 8.801 MB / 0.545 GB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.522, allocations: 0 / 0.7775 GB, free: 8.801 MB / 0.545 GB Notification: Performance of matching and sorting (n=21): time 0.001338/0.5234, allocations: 0.5984 MB / 0.7781 GB, free: 8.176 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.5234, allocations: 81.05 kB / 0.7782 GB, free: 8.078 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.5237, allocations: 196.5 kB / 0.7784 GB, free: 7.879 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.5237, allocations: 33.7 kB / 0.7784 GB, free: 7.84 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.5239, allocations: 164 kB / 0.7786 GB, free: 7.676 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.502e-05/0.5239, allocations: 78.89 kB / 0.7786 GB, free: 7.598 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.524, allocations: 61.88 kB / 0.7787 GB, free: 7.531 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.5242, allocations: 326.8 kB / 0.779 GB, free: 7.203 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.5244, allocations: 133.9 kB / 0.7791 GB, free: 7.07 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002937/0.5247, allocations: 215.3 kB / 0.7794 GB, free: 6.824 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005485/0.5253, allocations: 373.1 kB / 0.7797 GB, free: 6.426 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.5253, allocations: 4 kB / 0.7797 GB, free: 6.422 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007773/0.5261, allocations: 422.2 kB / 0.7801 GB, free: 6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.5261, allocations: 8 kB / 0.7801 GB, free: 5.992 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.5261, allocations: 4 kB / 0.7801 GB, free: 5.988 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002241/0.5263, allocations: 44.75 kB / 0.7802 GB, free: 5.941 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003035/0.5267, allocations: 67.88 kB / 0.7802 GB, free: 5.875 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/0.5281, allocations: 1.615 MB / 0.7818 GB, free: 4.113 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.5284, allocations: 27.91 kB / 0.7818 GB, free: 4.086 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.5284, allocations: 12 kB / 0.7818 GB, free: 4.074 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003273/0.5287, allocations: 240.7 kB / 0.7821 GB, free: 3.836 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002865/0.529, allocations: 199.9 kB / 0.7823 GB, free: 3.602 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005703/0.5296, allocations: 357.5 kB / 0.7826 GB, free: 3.215 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.028e-06/0.5296, allocations: 4 kB / 0.7826 GB, free: 3.211 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007157/0.5304, allocations: 405.8 kB / 0.783 GB, free: 2.805 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.5304, allocations: 4 kB / 0.783 GB, free: 2.801 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.835e-06/0.5304, allocations: 4 kB / 0.783 GB, free: 2.797 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001386/0.5305, allocations: 53.19 kB / 0.7831 GB, free: 2.742 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/0.5308, allocations: 63.89 kB / 0.7831 GB, free: 2.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.5322, allocations: 1.611 MB / 0.7847 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/0.5324, allocations: 27.83 kB / 0.7847 GB, free: 0.8945 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.5324, allocations: 11.98 kB / 0.7847 GB, free: 0.8828 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.0001381/0.5325, allocations: 192.2 kB / 0.7849 GB, free: 0.6875 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.158e-05/0.5326, allocations: 23.75 kB / 0.7849 GB, free: 0.6641 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006839/0.5333, allocations: 362.1 kB / 0.7853 GB, free: 308 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.5333, allocations: 4 kB / 0.7853 GB, free: 304 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.5333, allocations: 0 / 0.7853 GB, free: 304 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.5333, allocations: 3.984 kB / 0.7853 GB, free: 300 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.5348, allocations: 0.9559 MB / 0.7862 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.5348, allocations: 4 kB / 0.7862 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.5351, allocations: 51.83 kB / 0.7863 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001216/0.5352, allocations: 41.05 kB / 0.7863 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.5352, allocations: 8 kB / 0.7863 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.5365, allocations: 1.512 MB / 0.7878 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.5365, allocations: 4 kB / 0.7878 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000727/0.5372, allocations: 0.5413 MB / 0.7883 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.5373, allocations: 120.9 kB / 0.7884 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.896e-05/0.5374, allocations: 15.94 kB / 0.7885 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.5376, allocations: 23.97 kB / 0.7885 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.41e-05/0.5377, allocations: 19.92 kB / 0.7885 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.5377, allocations: 12 kB / 0.7885 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001464/0.5379, allocations: 155.7 kB / 0.7887 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5379, allocations: 0 / 0.7887 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005939/0.5385, allocations: 104 kB / 0.7888 GB, free: 12.45 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.0001782/0.5387, allocations: 126 kB / 0.7889 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001359/0.54, allocations: 0.7479 MB / 0.7896 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.54, allocations: 0 / 0.7896 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000409/0.5405, allocations: 266.4 kB / 0.7899 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004783/0.541, allocations: 32.67 kB / 0.7899 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.542, allocations: 0.5836 MB / 0.7905 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.5424, allocations: 0.7717 MB / 0.7912 GB, free: 9.816 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.588e-05/0.5425, allocations: 27.42 kB / 0.7912 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of SimCode: time 5.31e-07/0.5425, allocations: 0 / 0.7912 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of Templates: time 0.007031/0.5495, allocations: 4.213 MB / 0.7954 GB, free: 5.578 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)