Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.531/2.531, allocations: 390.3 MB / 402.8 MB, free: 6.707 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.001055/0.001056, allocations: 184 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.651/1.651, allocations: 221.3 MB / 0.7915 GB, free: 5.434 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.0009245/0.0009245, allocations: 95.19 kB / 0.9317 GB, free: 5.746 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.386e-05/4.388e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3484, allocations: 143 MB / 1.219 GB, free: 13.53 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.471/4.82, allocations: 1.767 GB / 2.985 GB, free: 11.09 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/4.82, allocations: 107.9 kB / 2.986 GB, free: 10.98 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.9913/5.811, allocations: 68.71 MB / 3.053 GB, free: 398.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.064e-06/5.811, allocations: 0 / 3.053 GB, free: 398.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001342/5.811, allocations: 35.62 kB / 3.053 GB, free: 398.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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.002836/5.814, allocations: 1.414 MB / 3.054 GB, free: 397.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/5.814, allocations: 9.312 kB / 3.054 GB, free: 397.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00168/5.816, allocations: 300.7 kB / 3.054 GB, free: 397.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/5.818, allocations: 0.8441 MB / 3.055 GB, free: 397 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.706e-05/5.818, allocations: 79.27 kB / 3.055 GB, free: 396.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/5.818, allocations: 110.8 kB / 3.055 GB, free: 396.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/5.82, allocations: 1.274 MB / 3.057 GB, free: 396.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/5.82, allocations: 0 / 3.057 GB, free: 396.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/5.82, allocations: 43.34 kB / 3.057 GB, free: 396 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.8e-05/5.82, allocations: 60.62 kB / 3.057 GB, free: 396 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001853/5.822, allocations: 1.414 MB / 3.058 GB, free: 395.4 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005672/5.827, allocations: 4.746 MB / 3.063 GB, free: 391.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/5.829, allocations: 0.9825 MB / 3.064 GB, free: 390.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004744/5.829, allocations: 407.7 kB / 3.064 GB, free: 390.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001903/5.83, allocations: 122.4 kB / 3.064 GB, free: 390.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000699/5.83, allocations: 0.5474 MB / 3.065 GB, free: 390.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 2.855e-06/5.83, allocations: 3.938 kB / 3.065 GB, free: 390.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.00256/5.833, allocations: 1.434 MB / 3.066 GB, free: 389.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.429e-05/5.833, allocations: 310.3 kB / 3.066 GB, free: 389.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/5.834, allocations: 0.8716 MB / 3.067 GB, free: 388.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.794e-05/5.834, allocations: 49.48 kB / 3.067 GB, free: 388.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003708/5.835, allocations: 0.5408 MB / 3.068 GB, free: 388.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/5.835, allocations: 321.5 kB / 3.068 GB, free: 387.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.554e-05/5.835, allocations: 19.91 kB / 3.068 GB, free: 387.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.33e-05/5.835, allocations: 341.8 kB / 3.069 GB, free: 387.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004487/5.835, allocations: 329.2 kB / 3.069 GB, free: 387.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005424/5.836, allocations: 0.5123 MB / 3.069 GB, free: 387 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005493/5.837, allocations: 412.1 kB / 3.07 GB, free: 386.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/5.837, allocations: 3.938 kB / 3.07 GB, free: 386.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002067/5.839, allocations: 1.126 MB / 3.071 GB, free: 386.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002472/5.839, allocations: 1.146 MB / 3.072 GB, free: 385 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/5.839, allocations: 7.938 kB / 3.072 GB, free: 385 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008412/5.84, allocations: 211.4 kB / 3.072 GB, free: 384.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000875/5.841, allocations: 208.2 kB / 3.072 GB, free: 384.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004901/5.841, allocations: 0.6402 MB / 3.073 GB, free: 384.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009893/5.842, allocations: 113.9 kB / 3.073 GB, free: 384.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.803e-05/5.842, allocations: 38.77 kB / 3.073 GB, free: 384.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/5.842, allocations: 3.969 kB / 3.073 GB, free: 384.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001208/5.843, allocations: 0.8333 MB / 3.074 GB, free: 383.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/5.843, allocations: 3.906 kB / 3.074 GB, free: 383.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.647e-06/5.843, allocations: 7.875 kB / 3.074 GB, free: 383.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007619/5.844, allocations: 211.7 kB / 3.074 GB, free: 383.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/5.844, allocations: 7.688 kB / 3.074 GB, free: 383.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008758/5.845, allocations: 102.9 kB / 3.074 GB, free: 383.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.918e-05/5.845, allocations: 38.89 kB / 3.074 GB, free: 383.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (107): * Single equations (assignments): 106 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002356/5.845, allocations: 170.2 kB / 3.074 GB, free: 383.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/5.846, allocations: 113.4 kB / 3.075 GB, free: 383.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00253/5.848, allocations: 1.348 MB / 3.076 GB, free: 382.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.737e-06/5.848, allocations: 7.75 kB / 3.076 GB, free: 382.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/5.848, allocations: 7.844 kB / 3.076 GB, free: 382.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/5.848, allocations: 3.984 kB / 3.076 GB, free: 382.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003863/5.852, allocations: 2.692 MB / 3.079 GB, free: 381 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/5.852, allocations: 0 / 3.079 GB, free: 381 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007797/5.853, allocations: 194.6 kB / 3.079 GB, free: 380.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007561/5.854, allocations: 208.8 kB / 3.079 GB, free: 380.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.383e-05/5.854, allocations: 27.98 kB / 3.079 GB, free: 380.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00165/5.855, allocations: 1.823 MB / 3.081 GB, free: 378.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/5.855, allocations: 7.938 kB / 3.081 GB, free: 378.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002091/5.858, allocations: 1.441 MB / 3.082 GB, free: 377.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006008/5.858, allocations: 367.3 kB / 3.083 GB, free: 376.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/5.858, allocations: 31.88 kB / 3.083 GB, free: 376.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007783/5.859, allocations: 91.91 kB / 3.083 GB, free: 376.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/5.859, allocations: 76.89 kB / 3.083 GB, free: 376.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.7e-05/5.859, allocations: 35.98 kB / 3.083 GB, free: 376.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.000892/5.86, allocations: 0.7002 MB / 3.083 GB, free: 375.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 7.21e-07/5.86, allocations: 0 / 3.083 GB, free: 375.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001717/5.862, allocations: 0.531 MB / 3.084 GB, free: 375.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (105): * Single equations (assignments): 102 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001383/5.863, allocations: 0.6353 MB / 3.085 GB, free: 374.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002285/5.866, allocations: 1.389 MB / 3.086 GB, free: 373.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/5.866, allocations: 4 kB / 3.086 GB, free: 373.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009211/5.867, allocations: 0.6211 MB / 3.087 GB, free: 372.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001532/5.868, allocations: 305.8 kB / 3.087 GB, free: 372.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004097/5.872, allocations: 1.819 MB / 3.089 GB, free: 370.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008943/5.873, allocations: 1.212 MB / 3.09 GB, free: 369.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002411/5.876, allocations: 0.6015 MB / 3.09 GB, free: 368.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002823/5.876, allocations: 91.41 kB / 3.09 GB, free: 368.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.252e-06/5.876, allocations: 0 / 3.09 GB, free: 368.6 MB / 1.151 GB Notification: Performance of Templates: time 0.02907/5.905, allocations: 18.73 MB / 3.109 GB, free: 350 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches