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.001402/0.001402, allocations: 106.5 kB / 16.41 MB, free: 6.508 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.002415/0.002416, allocations: 192.3 kB / 17.35 MB, free: 5.738 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.46/1.46, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002513/0.002513, allocations: 286.9 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9721/0.9721, allocations: 169.2 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 92.27 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.523/0.5247, allocations: 86.98 MB / 0.767 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.006042/0.5308, allocations: 2.888 MB / 0.7699 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003283/0.5341, allocations: 1.648 MB / 0.7715 GB, free: 15.38 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002314/0.5344, allocations: 7.938 kB / 0.7715 GB, free: 15.37 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.5355, allocations: 231.1 kB / 0.7717 GB, free: 15.14 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005963/0.5361, allocations: 179.2 kB / 0.7719 GB, free: 14.97 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006742/0.5368, allocations: 231.4 kB / 0.7721 GB, free: 14.74 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005015/0.5373, allocations: 311 kB / 0.7724 GB, free: 14.44 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003899/0.5377, allocations: 185.9 kB / 0.7726 GB, free: 14.25 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002962/0.538, allocations: 123.6 kB / 0.7727 GB, free: 14.13 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004017/0.5384, allocations: 151.4 kB / 0.7728 GB, free: 13.98 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.583e-05/0.5385, allocations: 20 kB / 0.7728 GB, free: 13.96 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005129/0.539, allocations: 251.5 kB / 0.7731 GB, free: 13.72 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.5392, allocations: 83.78 kB / 0.7732 GB, free: 13.64 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.5393, allocations: 119.3 kB / 0.7733 GB, free: 13.52 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006393/0.54, allocations: 409.3 kB / 0.7737 GB, free: 13.12 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.54, allocations: 4 kB / 0.7737 GB, free: 13.12 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.953e-06/0.54, allocations: 0 / 0.7737 GB, free: 13.12 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.418e-05/0.54, allocations: 0 / 0.7737 GB, free: 13.12 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.001056/0.5411, allocations: 0.5457 MB / 0.7742 GB, free: 12.52 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.5412, allocations: 8.031 kB / 0.7742 GB, free: 12.51 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008943/0.5421, allocations: 88.56 kB / 0.7743 GB, free: 12.43 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000417/0.5425, allocations: 271.8 kB / 0.7746 GB, free: 12.12 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.5425, allocations: 12.75 kB / 0.7746 GB, free: 12.11 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.369e-05/0.5426, allocations: 16.38 kB / 0.7746 GB, free: 12.09 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007237/0.5434, allocations: 382.5 kB / 0.7749 GB, free: 11.69 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.5434, allocations: 4 kB / 0.7749 GB, free: 11.68 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.047e-05/0.5435, allocations: 11.98 kB / 0.775 GB, free: 11.67 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.888e-05/0.5435, allocations: 24.31 kB / 0.775 GB, free: 11.64 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006729/0.5442, allocations: 324.6 kB / 0.7753 GB, free: 11.33 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002071/0.5463, allocations: 1.72 MB / 0.777 GB, free: 9.473 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008342/0.5471, allocations: 321.1 kB / 0.7773 GB, free: 9.141 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.5474, allocations: 153.6 kB / 0.7774 GB, free: 8.984 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/0.5476, allocations: 89.09 kB / 0.7775 GB, free: 8.879 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.5476, allocations: 38.56 kB / 0.7775 GB, free: 8.832 MB / 0.545 GB Notification: Performance of pre-optimization done (n=20): time 2.044e-06/0.5476, allocations: 0 / 0.7775 GB, free: 8.832 MB / 0.545 GB Notification: Performance of matching and sorting (n=21): time 0.001543/0.5492, allocations: 0.5941 MB / 0.7781 GB, free: 8.211 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.5493, allocations: 81.11 kB / 0.7782 GB, free: 8.113 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.5495, allocations: 200.5 kB / 0.7784 GB, free: 7.91 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.5495, allocations: 29.7 kB / 0.7784 GB, free: 7.875 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.5496, allocations: 163.8 kB / 0.7786 GB, free: 7.711 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.727e-05/0.5497, allocations: 74.88 kB / 0.7787 GB, free: 7.637 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.5498, allocations: 65.89 kB / 0.7787 GB, free: 7.566 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.55, allocations: 330.8 kB / 0.779 GB, free: 7.234 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/0.5503, allocations: 133.9 kB / 0.7792 GB, free: 7.102 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003681/0.5506, allocations: 211.3 kB / 0.7794 GB, free: 6.859 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006713/0.5513, allocations: 368.5 kB / 0.7797 GB, free: 6.465 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.5513, allocations: 4 kB / 0.7797 GB, free: 6.461 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008628/0.5522, allocations: 417.8 kB / 0.7801 GB, free: 6.043 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.5522, allocations: 8.344 kB / 0.7801 GB, free: 6.035 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.5523, allocations: 4 kB / 0.7801 GB, free: 6.031 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000274/0.5525, allocations: 52.8 kB / 0.7802 GB, free: 5.977 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003686/0.5529, allocations: 67.88 kB / 0.7802 GB, free: 5.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001664/0.5546, allocations: 1.603 MB / 0.7818 GB, free: 4.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002633/0.5549, allocations: 35.91 kB / 0.7818 GB, free: 4.125 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.5549, allocations: 16 kB / 0.7819 GB, free: 4.109 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003326/0.5553, allocations: 228.6 kB / 0.7821 GB, free: 3.883 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003271/0.5556, allocations: 215.9 kB / 0.7823 GB, free: 3.633 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006182/0.5562, allocations: 354.8 kB / 0.7826 GB, free: 3.246 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.384e-06/0.5562, allocations: 0 / 0.7826 GB, free: 3.246 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009016/0.5572, allocations: 403.9 kB / 0.783 GB, free: 2.844 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.5572, allocations: 8 kB / 0.783 GB, free: 2.836 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.5572, allocations: 4 kB / 0.783 GB, free: 2.832 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001529/0.5573, allocations: 40.81 kB / 0.7831 GB, free: 2.789 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003302/0.5577, allocations: 72.23 kB / 0.7831 GB, free: 2.719 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/0.5593, allocations: 1.611 MB / 0.7847 GB, free: 0.9609 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/0.5595, allocations: 31.81 kB / 0.7847 GB, free: 0.9297 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.5596, allocations: 12 kB / 0.7847 GB, free: 0.918 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.0001504/0.5597, allocations: 194.5 kB / 0.7849 GB, free: 0.7227 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-05/0.5598, allocations: 15.81 kB / 0.7849 GB, free: 0.707 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007842/0.5606, allocations: 368 kB / 0.7853 GB, free: 344 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.5606, allocations: 3.984 kB / 0.7853 GB, free: 340 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.5606, allocations: 0 / 0.7853 GB, free: 340 kB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001988/0.5608, allocations: 120.8 kB / 0.7854 GB, free: 200 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.5609, allocations: 3.938 kB / 0.7854 GB, free: 196 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/0.5612, allocations: 31.95 kB / 0.7854 GB, free: 164 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.242e-05/0.5613, allocations: 19.92 kB / 0.7855 GB, free: 144 kB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009801/0.5623, allocations: 0.4986 MB / 0.7859 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001028/0.5633, allocations: 0.6992 MB / 0.7866 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000269/0.5636, allocations: 130.4 kB / 0.7868 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001585/0.5638, allocations: 159.7 kB / 0.7869 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of Backend: time 7.21e-07/0.5638, allocations: 0 / 0.7869 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002109/0.5659, allocations: 0.8359 MB / 0.7877 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of SimCode: time 0.001098/0.567, allocations: 0.8899 MB / 0.7886 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of Templates: time 0.01212/0.5791, allocations: 5.692 MB / 0.7942 GB, free: 7.152 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)