Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.311/2.311, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001261/0.001261, allocations: 172.9 kB / 487.4 MB, free: 5.023 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.61/1.61, allocations: 221.5 MB / 0.7824 GB, free: 0.9453 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 87.91 kB / 0.9219 GB, free: 2.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.428e-05/1.431e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.286, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.652/4.938, allocations: 1.789 GB / 2.995 GB, free: 93.38 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003398/4.938, allocations: 104.8 kB / 2.995 GB, free: 93.28 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.1.1-maint.9.1.x/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.146/6.085, allocations: 164.5 MB / 3.156 GB, free: 367.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.154e-06/6.085, allocations: 4 kB / 3.156 GB, free: 367.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003867/6.085, allocations: 88.09 kB / 3.156 GB, free: 367.8 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.009974/6.095, allocations: 3.106 MB / 3.159 GB, free: 366.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/6.095, allocations: 7.531 kB / 3.159 GB, free: 366.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005486/6.101, allocations: 0.8296 MB / 3.16 GB, free: 365.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006505/6.107, allocations: 2.285 MB / 3.162 GB, free: 364.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001827/6.107, allocations: 102.4 kB / 3.162 GB, free: 364.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00139/6.109, allocations: 179.3 kB / 3.162 GB, free: 364.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008867/6.118, allocations: 3.53 MB / 3.166 GB, free: 363.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01099/6.129, allocations: 3.919 MB / 3.169 GB, free: 361.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001372/6.129, allocations: 3.781 kB / 3.169 GB, free: 361.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000848/6.13, allocations: 7.5 kB / 3.169 GB, free: 361.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001898/6.13, allocations: 175.8 kB / 3.17 GB, free: 361.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02503/6.155, allocations: 19.14 MB / 3.188 GB, free: 347.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002684/6.158, allocations: 1.746 MB / 3.19 GB, free: 346.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001644/6.159, allocations: 1.117 MB / 3.191 GB, free: 346.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002465/6.16, allocations: 128.1 kB / 3.191 GB, free: 346.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001358/6.161, allocations: 1.057 MB / 3.192 GB, free: 345.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=150): time 4.348e-06/6.161, allocations: 0 / 3.192 GB, free: 345.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=187): time 0.01843/6.179, allocations: 9.874 MB / 3.202 GB, free: 339.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/6.18, allocations: 0.5122 MB / 3.202 GB, free: 338.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002552/6.182, allocations: 1.866 MB / 3.204 GB, free: 337.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003432/6.182, allocations: 36.86 kB / 3.204 GB, free: 337.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.00123/6.184, allocations: 1.532 MB / 3.206 GB, free: 336.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004609/6.184, allocations: 0.6042 MB / 3.206 GB, free: 335.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/6.184, allocations: 0 / 3.206 GB, free: 335.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.814e-05/6.184, allocations: 385.8 kB / 3.207 GB, free: 335.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/6.186, allocations: 1.058 MB / 3.208 GB, free: 334.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/6.187, allocations: 1.578 MB / 3.209 GB, free: 332.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00178/6.189, allocations: 1.372 MB / 3.211 GB, free: 331.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/6.189, allocations: 4 kB / 3.211 GB, free: 331.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.008553/6.197, allocations: 4.193 MB / 3.215 GB, free: 326.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009088/6.198, allocations: 4.639 MB / 3.219 GB, free: 321.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/6.198, allocations: 12 kB / 3.219 GB, free: 321.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005269/6.204, allocations: 1.359 MB / 3.22 GB, free: 320.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002194/6.206, allocations: 479.2 kB / 3.221 GB, free: 320 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008843/6.215, allocations: 9.058 MB / 3.23 GB, free: 310.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002528/6.217, allocations: 163.6 kB / 3.23 GB, free: 310.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004371/6.218, allocations: 91.95 kB / 3.23 GB, free: 310.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/6.218, allocations: 8.562 kB / 3.23 GB, free: 310.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003847/6.222, allocations: 2.175 MB / 3.232 GB, free: 308.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.345e-05/6.222, allocations: 12 kB / 3.232 GB, free: 308.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/6.222, allocations: 24 kB / 3.232 GB, free: 308 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001897/6.224, allocations: 0.5031 MB / 3.233 GB, free: 307.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.395e-05/6.224, allocations: 31.86 kB / 3.233 GB, free: 307.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/6.226, allocations: 103.8 kB / 3.233 GB, free: 307.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002417/6.226, allocations: 83.98 kB / 3.233 GB, free: 307.3 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.0007115/6.227, allocations: 184.4 kB / 3.233 GB, free: 307.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007308/6.227, allocations: 221.3 kB / 3.233 GB, free: 306.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009741/6.237, allocations: 4.236 MB / 3.237 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.318e-05/6.237, allocations: 24 kB / 3.237 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.389e-05/6.237, allocations: 4 kB / 3.237 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-05/6.237, allocations: 7.969 kB / 3.237 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01596/6.253, allocations: 8.74 MB / 3.246 GB, free: 293.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/6.253, allocations: 11.23 kB / 3.246 GB, free: 293.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001468/6.255, allocations: 359.5 kB / 3.246 GB, free: 293.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00617/6.261, allocations: 1.804 MB / 3.248 GB, free: 291.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003037/6.261, allocations: 19.98 kB / 3.248 GB, free: 291.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0125/6.274, allocations: 12.5 MB / 3.26 GB, free: 278.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/6.274, allocations: 15.89 kB / 3.26 GB, free: 278.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01/6.284, allocations: 4.592 MB / 3.265 GB, free: 273.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/6.286, allocations: 0.6892 MB / 3.266 GB, free: 272.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008348/6.287, allocations: 8 kB / 3.266 GB, free: 272.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002391/6.289, allocations: 231.6 kB / 3.266 GB, free: 272.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000433/6.289, allocations: 153.6 kB / 3.266 GB, free: 272.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001845/6.29, allocations: 67.98 kB / 3.266 GB, free: 272.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002483/6.292, allocations: 1.421 MB / 3.267 GB, free: 270.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/6.292, allocations: 0 / 3.267 GB, free: 270.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005408/6.298, allocations: 1.183 MB / 3.269 GB, free: 269.7 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.002033/6.3, allocations: 0.7443 MB / 3.269 GB, free: 269.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.006937/6.307, allocations: 4.407 MB / 3.274 GB, free: 264.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/6.307, allocations: 4 kB / 3.274 GB, free: 264.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003409/6.31, allocations: 2.232 MB / 3.276 GB, free: 262.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003378/6.313, allocations: 0.5373 MB / 3.276 GB, free: 261.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/6.325, allocations: 5.24 MB / 3.281 GB, free: 256.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002999/6.328, allocations: 2.534 MB / 3.284 GB, free: 254 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0047/6.333, allocations: 1.375 MB / 3.285 GB, free: 252.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005547/6.333, allocations: 155.3 kB / 3.285 GB, free: 252.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.212e-06/6.333, allocations: 4 kB / 3.285 GB, free: 252.5 MB / 1.151 GB Notification: Performance of Templates: time 0.06816/6.401, allocations: 43.76 MB / 3.328 GB, free: 209 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches