Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.00153/0.00153, allocations: 101.4 kB / 16.27 MB, free: 6.414 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.001805/0.001805, allocations: 184.4 kB / 17.2 MB, free: 5.953 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.411/1.411, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7955/0.7955, allocations: 122.9 MB / 413.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001306, allocations: 59.91 kB / 0.4911 GB, free: 7.422 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5016/0.5029, allocations: 77.92 MB / 0.5672 GB, free: 32.55 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004633/0.5076, allocations: 2.873 MB / 0.57 GB, free: 30.61 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003001/0.5106, allocations: 1.81 MB / 0.5718 GB, free: 29.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.5108, allocations: 3.25 kB / 0.5718 GB, free: 29.38 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008823/0.5117, allocations: 231 kB / 0.572 GB, free: 29.25 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006433/0.5124, allocations: 206.4 kB / 0.5722 GB, free: 29.14 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008272/0.5132, allocations: 227.1 kB / 0.5724 GB, free: 29.03 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006642/0.5139, allocations: 314.1 kB / 0.5727 GB, free: 28.89 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006097/0.5145, allocations: 175.8 kB / 0.5729 GB, free: 28.82 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000233/0.5147, allocations: 122.7 kB / 0.573 GB, free: 28.77 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003318/0.5151, allocations: 150.7 kB / 0.5731 GB, free: 28.71 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.524e-05/0.5151, allocations: 21.41 kB / 0.5732 GB, free: 28.71 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007071/0.5159, allocations: 282.6 kB / 0.5734 GB, free: 28.61 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.516, allocations: 88.83 kB / 0.5735 GB, free: 28.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.5162, allocations: 112.4 kB / 0.5736 GB, free: 28.51 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009092/0.5171, allocations: 435 kB / 0.574 GB, free: 28.36 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.071e-05/0.5171, allocations: 2.297 kB / 0.574 GB, free: 28.36 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5171, allocations: 0 / 0.574 GB, free: 28.36 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.5172, allocations: 0.5 kB / 0.574 GB, free: 28.36 MB / 446.1 MB 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.001273/0.5184, allocations: 0.5434 MB / 0.5746 GB, free: 27.89 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.5185, allocations: 13.62 kB / 0.5746 GB, free: 27.89 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001089/0.5196, allocations: 113 kB / 0.5747 GB, free: 27.87 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003797/0.52, allocations: 268.6 kB / 0.5749 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.52, allocations: 12.5 kB / 0.575 GB, free: 27.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.041e-05/0.5201, allocations: 15.34 kB / 0.575 GB, free: 27.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008545/0.5209, allocations: 399.4 kB / 0.5753 GB, free: 27.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.521, allocations: 1.094 kB / 0.5753 GB, free: 27.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.521, allocations: 11.55 kB / 0.5754 GB, free: 27.39 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.625e-05/0.5211, allocations: 27 kB / 0.5754 GB, free: 27.39 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007707/0.5219, allocations: 338.7 kB / 0.5757 GB, free: 27.29 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002205/0.5241, allocations: 1.735 MB / 0.5774 GB, free: 25.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007431/0.5248, allocations: 335.7 kB / 0.5777 GB, free: 25.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/0.5251, allocations: 149.3 kB / 0.5779 GB, free: 25.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001473/0.5253, allocations: 87.7 kB / 0.578 GB, free: 25.55 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.5253, allocations: 37.84 kB / 0.578 GB, free: 25.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 2.254e-06/0.5253, allocations: 0.9062 kB / 0.578 GB, free: 25.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=21): time 0.001521/0.5268, allocations: 0.595 MB / 0.5786 GB, free: 25.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.5269, allocations: 80.48 kB / 0.5786 GB, free: 25.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.5272, allocations: 214.9 kB / 0.5789 GB, free: 24.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.5272, allocations: 32.11 kB / 0.5789 GB, free: 24.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.037e-05/0.5273, allocations: 162 kB / 0.579 GB, free: 24.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.531e-05/0.5273, allocations: 74.72 kB / 0.5791 GB, free: 24.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.5275, allocations: 63.22 kB / 0.5792 GB, free: 24.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.03e-05/0.5275, allocations: 330.7 kB / 0.5795 GB, free: 24.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003294/0.5279, allocations: 143 kB / 0.5796 GB, free: 24.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003607/0.5282, allocations: 220 kB / 0.5798 GB, free: 24.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006705/0.5289, allocations: 376.6 kB / 0.5802 GB, free: 23.97 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5289, allocations: 1.281 kB / 0.5802 GB, free: 23.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001008/0.53, allocations: 436.2 kB / 0.5806 GB, free: 23.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.53, allocations: 6.312 kB / 0.5806 GB, free: 23.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.53, allocations: 2.625 kB / 0.5806 GB, free: 23.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000292/0.5303, allocations: 42.59 kB / 0.5807 GB, free: 23.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003988/0.5307, allocations: 74.41 kB / 0.5807 GB, free: 23.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/0.5321, allocations: 1.614 MB / 0.5823 GB, free: 22.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.5324, allocations: 33.88 kB / 0.5823 GB, free: 22.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.5325, allocations: 12.39 kB / 0.5823 GB, free: 22.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003874/0.5329, allocations: 244.7 kB / 0.5826 GB, free: 22.09 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003145/0.5332, allocations: 212.1 kB / 0.5828 GB, free: 21.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005433/0.5338, allocations: 358.7 kB / 0.5831 GB, free: 21.67 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.604e-06/0.5338, allocations: 2.25 kB / 0.5831 GB, free: 21.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008456/0.5346, allocations: 421.8 kB / 0.5835 GB, free: 21.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.5346, allocations: 5.438 kB / 0.5835 GB, free: 21.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.5347, allocations: 4.281 kB / 0.5835 GB, free: 21.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001439/0.5348, allocations: 54.11 kB / 0.5836 GB, free: 21.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.5351, allocations: 64.77 kB / 0.5837 GB, free: 21.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.5361, allocations: 1.615 MB / 0.5852 GB, free: 19.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003069/0.5365, allocations: 37.97 kB / 0.5853 GB, free: 19.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.5365, allocations: 14.41 kB / 0.5853 GB, free: 19.79 MB / 446.1 MB 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.0001361/0.5366, allocations: 193.4 kB / 0.5855 GB, free: 19.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.389e-05/0.5367, allocations: 21.5 kB / 0.5855 GB, free: 19.58 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006789/0.5374, allocations: 355.7 kB / 0.5858 GB, free: 19.37 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.5374, allocations: 10.5 kB / 0.5858 GB, free: 19.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5374, allocations: 1 kB / 0.5858 GB, free: 19.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.5374, allocations: 4.797 kB / 0.5858 GB, free: 19.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001399/0.5388, allocations: 0.9645 MB / 0.5868 GB, free: 18.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.5389, allocations: 1.219 kB / 0.5868 GB, free: 18.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000286/0.5392, allocations: 59.98 kB / 0.5868 GB, free: 18.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001288/0.5393, allocations: 39.14 kB / 0.5869 GB, free: 18.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.5393, allocations: 8.219 kB / 0.5869 GB, free: 18.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000877/0.5402, allocations: 1.508 MB / 0.5884 GB, free: 17.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5402, allocations: 3.094 kB / 0.5884 GB, free: 17.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006463/0.5409, allocations: 0.5312 MB / 0.5889 GB, free: 16.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.541, allocations: 126.7 kB / 0.589 GB, free: 16.49 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.858e-05/0.541, allocations: 10.8 kB / 0.589 GB, free: 16.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002623/0.5413, allocations: 28.41 kB / 0.589 GB, free: 16.47 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.96e-05/0.5414, allocations: 21.42 kB / 0.5891 GB, free: 16.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.5414, allocations: 5.969 kB / 0.5891 GB, free: 16.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000172/0.5416, allocations: 167.5 kB / 0.5892 GB, free: 16.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5416, allocations: 0 / 0.5892 GB, free: 16.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006926/0.5423, allocations: 107.5 kB / 0.5893 GB, free: 16.32 MB / 446.1 MB 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.0001673/0.5425, allocations: 119.8 kB / 0.5894 GB, free: 16.22 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.5439, allocations: 0.7691 MB / 0.5902 GB, free: 15.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5439, allocations: 1.438 kB / 0.5902 GB, free: 15.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003677/0.5443, allocations: 264.4 kB / 0.5904 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004779/0.5447, allocations: 37.14 kB / 0.5905 GB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009379/0.5457, allocations: 0.5575 MB / 0.591 GB, free: 15.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.5459, allocations: 0.7686 MB / 0.5918 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002893/0.5462, allocations: 99.97 kB / 0.5919 GB, free: 14.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.765e-05/0.5463, allocations: 29.11 kB / 0.5919 GB, free: 14.32 MB / 446.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5463, allocations: 0 / 0.5919 GB, free: 14.32 MB / 446.1 MB Notification: Performance of Templates: time 0.007325/0.5536, allocations: 3.398 MB / 0.5952 GB, free: 12.66 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)