Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.582/1.582, allocations: 297.8 MB / 313.8 MB, free: 32 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 182.1 kB / 384.6 MB, free: 10.77 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 223.3 MB / 0.6626 GB, free: 4.262 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007904/0.0007904, allocations: 95.61 kB / 0.7808 GB, free: 50.2 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003765, allocations: 12 kB / 0.9088 GB, free: 2.828 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6608/0.6612, allocations: 120.3 MB / 1.026 GB, free: 55.65 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.53/4.191, allocations: 1.782 GB / 2.808 GB, free: 56.41 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/4.191, allocations: 113 kB / 2.808 GB, free: 56.3 MB / 0.9792 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:30:3-37:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.RCha to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:30:3-37:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.XCha to false. Notification: Performance of FrontEnd - DAE generated: time 0.8509/5.042, allocations: 164.8 MB / 2.969 GB, free: 246.8 MB / 0.9792 GB Notification: Performance of FrontEnd: time 2.916e-06/5.042, allocations: 4 kB / 2.969 GB, free: 246.8 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.0004605/5.043, allocations: 86.44 kB / 2.969 GB, free: 246.8 MB / 0.9792 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01194/5.055, allocations: 3.426 MB / 2.972 GB, free: 244.8 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/5.055, allocations: 9 kB / 2.972 GB, free: 244.8 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005421/5.06, allocations: 0.8411 MB / 2.973 GB, free: 244.6 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007612/5.068, allocations: 2.362 MB / 2.976 GB, free: 243.4 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003747/5.068, allocations: 231.5 kB / 2.976 GB, free: 243.3 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001742/5.07, allocations: 301.4 kB / 2.976 GB, free: 243.2 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0128/5.083, allocations: 4.467 MB / 2.98 GB, free: 241.2 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001687/5.083, allocations: 11.38 kB / 2.98 GB, free: 241.2 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001005/5.084, allocations: 135.5 kB / 2.981 GB, free: 241.1 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002446/5.084, allocations: 173.3 kB / 2.981 GB, free: 241.1 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008513/5.093, allocations: 4.032 MB / 2.985 GB, free: 239.7 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0272/5.12, allocations: 19.91 MB / 3.004 GB, free: 225.1 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003247/5.123, allocations: 1.853 MB / 3.006 GB, free: 224.4 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/5.125, allocations: 0.9649 MB / 3.007 GB, free: 224.1 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002563/5.125, allocations: 135.4 kB / 3.007 GB, free: 224 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001747/5.127, allocations: 1.117 MB / 3.008 GB, free: 223.5 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=150): time 6.512e-06/5.127, allocations: 0 / 3.008 GB, free: 223.5 MB / 0.9792 GB Notification: Performance of matching and sorting (n=187): time 0.03754/5.165, allocations: 14.13 MB / 3.022 GB, free: 215.9 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001482/5.165, allocations: 0.5092 MB / 3.022 GB, free: 215.3 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004296/5.169, allocations: 2.3 MB / 3.025 GB, free: 214 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0004745/5.17, allocations: 61.39 kB / 3.025 GB, free: 214 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.0015/5.171, allocations: 1.518 MB / 3.026 GB, free: 212.7 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007842/5.172, allocations: 0.6295 MB / 3.027 GB, free: 212.1 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002486/5.172, allocations: 39.91 kB / 3.027 GB, free: 212.1 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001494/5.172, allocations: 385.4 kB / 3.027 GB, free: 211.7 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001802/5.174, allocations: 1.126 MB / 3.028 GB, free: 211.1 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002143/5.176, allocations: 1.673 MB / 3.03 GB, free: 209.9 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0498/5.226, allocations: 14.52 MB / 3.044 GB, free: 202.6 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-05/5.226, allocations: 3.906 kB / 3.044 GB, free: 202.6 MB / 0.9792 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.01308/5.239, allocations: 5.071 MB / 3.049 GB, free: 199.9 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002334/5.239, allocations: 443.5 kB / 3.05 GB, free: 199.4 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.619e-05/5.24, allocations: 11.88 kB / 3.05 GB, free: 199.4 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00912/5.249, allocations: 2.412 MB / 3.052 GB, free: 198.2 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00232/5.251, allocations: 471.3 kB / 3.052 GB, free: 198.1 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01632/5.267, allocations: 14.03 MB / 3.066 GB, free: 183.4 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00276/5.27, allocations: 211.8 kB / 3.066 GB, free: 183.2 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005075/5.271, allocations: 87.97 kB / 3.066 GB, free: 183.1 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 8.135e-06/5.271, allocations: 7.938 kB / 3.066 GB, free: 183.1 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009863/5.281, allocations: 4.12 MB / 3.07 GB, free: 178.9 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.924e-05/5.281, allocations: 19.92 kB / 3.07 GB, free: 178.9 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005806/5.286, allocations: 1.594 MB / 3.072 GB, free: 177.3 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001911/5.288, allocations: 491.2 kB / 3.072 GB, free: 176.8 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009272/5.298, allocations: 7.963 MB / 3.08 GB, free: 168.5 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002587/5.3, allocations: 191.7 kB / 3.08 GB, free: 168.3 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000473/5.301, allocations: 87.97 kB / 3.08 GB, free: 168.2 MB / 0.9792 GB Warning: Assuming fixed start value for the following 2 variables: line.commercialCable.RCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = true ) "Characteristic resistance of the cable" type: Real line.commercialCable.XCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = true ) "Characteristic reactance of the cable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (236): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.003133/5.304, allocations: 1.262 MB / 3.082 GB, free: 166.9 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008651/5.305, allocations: 237.2 kB / 3.082 GB, free: 166.7 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/5.317, allocations: 4.749 MB / 3.087 GB, free: 161.9 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.247e-05/5.317, allocations: 20 kB / 3.087 GB, free: 161.9 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.16e-05/5.317, allocations: 7.938 kB / 3.087 GB, free: 161.9 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-05/5.317, allocations: 15.95 kB / 3.087 GB, free: 161.9 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02095/5.338, allocations: 9.846 MB / 3.096 GB, free: 151.9 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.709e-05/5.338, allocations: 4 kB / 3.096 GB, free: 151.9 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/5.339, allocations: 360 kB / 3.097 GB, free: 151.6 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007735/5.347, allocations: 2.217 MB / 3.099 GB, free: 149.3 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003545/5.347, allocations: 51.97 kB / 3.099 GB, free: 149.3 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01386/5.361, allocations: 13.6 MB / 3.112 GB, free: 134.9 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/5.361, allocations: 4 kB / 3.112 GB, free: 134.9 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01149/5.373, allocations: 4.768 MB / 3.117 GB, free: 130 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001852/5.375, allocations: 0.6892 MB / 3.117 GB, free: 129.3 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009128/5.376, allocations: 47.98 kB / 3.117 GB, free: 129.3 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002131/5.378, allocations: 211.7 kB / 3.118 GB, free: 129 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005026/5.378, allocations: 145.9 kB / 3.118 GB, free: 128.9 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001935/5.378, allocations: 79.97 kB / 3.118 GB, free: 128.8 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.00299/5.381, allocations: 1.607 MB / 3.119 GB, free: 127.2 MB / 0.9792 GB Notification: Performance of sort global known variables: time 1.5e-07/5.381, allocations: 0 / 3.119 GB, free: 127.2 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.005903/5.387, allocations: 1.349 MB / 3.121 GB, free: 125.9 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002131/5.39, allocations: 0.8814 MB / 3.122 GB, free: 125.3 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.01008/5.4, allocations: 5.898 MB / 3.127 GB, free: 119.3 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/5.4, allocations: 4.062 kB / 3.127 GB, free: 119.2 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.004093/5.404, allocations: 2.425 MB / 3.13 GB, free: 116.8 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005191/5.409, allocations: 0.6129 MB / 3.13 GB, free: 116.1 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/5.422, allocations: 7.914 MB / 3.138 GB, free: 108.1 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002979/5.425, allocations: 2.476 MB / 3.14 GB, free: 105.6 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.003775/5.428, allocations: 1.01 MB / 3.141 GB, free: 104.6 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008947/5.429, allocations: 207.4 kB / 3.142 GB, free: 104.4 MB / 0.9792 GB Notification: Performance of SimCode: time 6.51e-07/5.429, allocations: 0 / 3.142 GB, free: 104.4 MB / 0.9792 GB Notification: Performance of Templates: time 0.07225/5.502, allocations: 50.31 MB / 3.191 GB, free: 54.43 MB / 0.9792 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe 2>&1)