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 10.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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V.1.|sen.V.2.|sen.V.3.|sen.S.1|1.|sen.S.1|2.|sen.S.2|1.|sen.S.2|2.|sen.S.3|1.|sen.S.3|2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V.1.|sen.V.2.|sen.V.3.|sen.S.1|1.|sen.S.1|2.|sen.S.2|1.|sen.S.2|2.|sen.S.3|1.|sen.S.3|2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.37/2.37, allocations: 390.5 MB / 398 MB, free: 10.97 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 179.4 kB / 491.2 MB, free: 1.594 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.584/1.584, allocations: 221.5 MB / 0.7868 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000913/0.0009127, allocations: 99.48 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.863e-05/1.857e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3017, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.039/5.34, allocations: 1.79 GB / 3.002 GB, free: 73.66 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/5.341, allocations: 108.6 kB / 3.002 GB, free: 73.56 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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 10.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 1.141/6.482, allocations: 164.5 MB / 3.163 GB, free: 362.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.693e-06/6.482, allocations: 0 / 3.163 GB, free: 362.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002734/6.482, allocations: 86.53 kB / 3.163 GB, free: 362.9 MB / 1.151 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.008294/6.49, allocations: 3.104 MB / 3.166 GB, free: 360.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.094e-05/6.49, allocations: 10.09 kB / 3.166 GB, free: 360.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005491/6.496, allocations: 0.8362 MB / 3.167 GB, free: 360.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00742/6.503, allocations: 2.275 MB / 3.169 GB, free: 359 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002396/6.504, allocations: 99.66 kB / 3.169 GB, free: 359 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001518/6.505, allocations: 187 kB / 3.169 GB, free: 358.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008635/6.514, allocations: 3.523 MB / 3.173 GB, free: 357.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.011/6.525, allocations: 3.917 MB / 3.176 GB, free: 354.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001254/6.525, allocations: 7.938 kB / 3.176 GB, free: 354.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007749/6.526, allocations: 4 kB / 3.176 GB, free: 354.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001794/6.526, allocations: 178 kB / 3.177 GB, free: 354.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02162/6.548, allocations: 19.15 MB / 3.195 GB, free: 333.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002124/6.55, allocations: 1.743 MB / 3.197 GB, free: 331.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/6.551, allocations: 1.114 MB / 3.198 GB, free: 330.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002172/6.552, allocations: 137.8 kB / 3.198 GB, free: 330.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/6.553, allocations: 1.044 MB / 3.199 GB, free: 329.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=150): time 3.998e-06/6.553, allocations: 3.984 kB / 3.199 GB, free: 329.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=187): time 0.01874/6.571, allocations: 9.895 MB / 3.209 GB, free: 319.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/6.572, allocations: 0.5023 MB / 3.209 GB, free: 319 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002482/6.574, allocations: 1.874 MB / 3.211 GB, free: 317 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003451/6.574, allocations: 25.7 kB / 3.211 GB, free: 317 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001298/6.576, allocations: 1.519 MB / 3.213 GB, free: 315.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005077/6.576, allocations: 0.6043 MB / 3.213 GB, free: 314.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/6.576, allocations: 0 / 3.213 GB, free: 314.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001077/6.577, allocations: 385.8 kB / 3.214 GB, free: 314.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/6.578, allocations: 1.062 MB / 3.215 GB, free: 313.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/6.579, allocations: 1.57 MB / 3.216 GB, free: 311.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001796/6.581, allocations: 1.38 MB / 3.218 GB, free: 310.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/6.581, allocations: 4 kB / 3.218 GB, free: 310.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.008624/6.59, allocations: 4.2 MB / 3.222 GB, free: 306 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007591/6.591, allocations: 4.632 MB / 3.226 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/6.591, allocations: 15.95 kB / 3.226 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005152/6.596, allocations: 1.351 MB / 3.228 GB, free: 299.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002021/6.598, allocations: 483.2 kB / 3.228 GB, free: 299.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00874/6.607, allocations: 9.064 MB / 3.237 GB, free: 289.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002772/6.609, allocations: 163.7 kB / 3.237 GB, free: 289.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000378/6.61, allocations: 87.97 kB / 3.237 GB, free: 289.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/6.61, allocations: 9.625 kB / 3.237 GB, free: 289.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003722/6.613, allocations: 2.175 MB / 3.239 GB, free: 287.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/6.614, allocations: 12 kB / 3.239 GB, free: 287.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/6.614, allocations: 24 kB / 3.239 GB, free: 287.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001877/6.615, allocations: 0.5031 MB / 3.24 GB, free: 286.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.551e-05/6.615, allocations: 27.94 kB / 3.24 GB, free: 286.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/6.618, allocations: 107.9 kB / 3.24 GB, free: 286.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002313/6.618, allocations: 87.97 kB / 3.24 GB, free: 286.5 MB / 1.151 GB Warning: Assuming fixed start value for the following 2 variables: line.commercialCable.RCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "Characteristic resistance of the cable" type: Real line.commercialCable.XCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "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 () * 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.0007207/6.619, allocations: 166.2 kB / 3.24 GB, free: 286.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009193/6.619, allocations: 229.3 kB / 3.24 GB, free: 286.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009903/6.629, allocations: 4.229 MB / 3.245 GB, free: 281.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.865e-05/6.629, allocations: 20 kB / 3.245 GB, free: 281.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/6.629, allocations: 8 kB / 3.245 GB, free: 281.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.421e-05/6.629, allocations: 11.97 kB / 3.245 GB, free: 281.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01597/6.645, allocations: 8.743 MB / 3.253 GB, free: 273 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/6.645, allocations: 4 kB / 3.253 GB, free: 273 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/6.647, allocations: 367.4 kB / 3.253 GB, free: 272.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006197/6.653, allocations: 1.792 MB / 3.255 GB, free: 270.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003081/6.654, allocations: 31.91 kB / 3.255 GB, free: 270.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0124/6.666, allocations: 12.52 MB / 3.267 GB, free: 257.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/6.666, allocations: 4 kB / 3.267 GB, free: 257.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009464/6.675, allocations: 4.595 MB / 3.272 GB, free: 252.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001753/6.677, allocations: 0.6776 MB / 3.273 GB, free: 252 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001011/6.678, allocations: 15.98 kB / 3.273 GB, free: 252 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002671/6.681, allocations: 227.6 kB / 3.273 GB, free: 251.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000494/6.681, allocations: 149.7 kB / 3.273 GB, free: 251.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002083/6.682, allocations: 71.97 kB / 3.273 GB, free: 251.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002556/6.684, allocations: 1.421 MB / 3.274 GB, free: 250.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 3e-07/6.684, allocations: 0 / 3.274 GB, free: 250.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005715/6.69, allocations: 1.179 MB / 3.276 GB, free: 248.9 MB / 1.151 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) * 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.002045/6.692, allocations: 0.7556 MB / 3.276 GB, free: 248.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.007129/6.699, allocations: 4.402 MB / 3.281 GB, free: 243.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/6.699, allocations: 0 / 3.281 GB, free: 243.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003476/6.703, allocations: 2.233 MB / 3.283 GB, free: 241.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00342/6.706, allocations: 0.539 MB / 3.283 GB, free: 241.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01091/6.717, allocations: 5.24 MB / 3.288 GB, free: 235.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003026/6.72, allocations: 2.53 MB / 3.291 GB, free: 233.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.00445/6.725, allocations: 1.375 MB / 3.292 GB, free: 231.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005118/6.725, allocations: 159.4 kB / 3.292 GB, free: 231.7 MB / 1.151 GB Notification: Performance of SimCode: time 7.41e-07/6.725, allocations: 7.938 kB / 3.292 GB, free: 231.7 MB / 1.151 GB Notification: Performance of Templates: time 0.06946/6.795, allocations: 43.76 MB / 3.335 GB, free: 188.2 MB / 1.151 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 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches