Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.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_9_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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.763/1.763, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.0009127/0.0009127, allocations: 176.3 kB / 487 MB, free: 5.383 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.145/1.145, allocations: 221.3 MB / 0.7819 GB, free: 1.375 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.0008966/0.0008965, allocations: 90.52 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.192e-06/6.212e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1858, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.506/2.692, allocations: 1.765 GB / 2.97 GB, free: 69.94 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/2.692, allocations: 106.1 kB / 2.971 GB, free: 69.89 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.1364/2.828, allocations: 69.18 MB / 3.038 GB, free: 3.223 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.64e-05/2.829, allocations: 32 kB / 3.038 GB, free: 3.191 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.001874/2.83, allocations: 1.449 MB / 3.04 GB, free: 1.688 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 2.941e-05/2.83, allocations: 8.031 kB / 3.04 GB, free: 1.68 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00135/2.832, allocations: 309.8 kB / 3.04 GB, free: 1.375 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/2.833, allocations: 0.8456 MB / 3.041 GB, free: 496 kB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.077e-05/2.833, allocations: 32 kB / 3.041 GB, free: 464 kB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/2.833, allocations: 67.91 kB / 3.041 GB, free: 396 kB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2653/3.098, allocations: 1.304 MB / 3.042 GB, free: 0.5164 GB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/3.1, allocations: 1.136 MB / 3.043 GB, free: 0.5162 GB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.861e-05/3.1, allocations: 3.562 kB / 3.043 GB, free: 0.5162 GB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.806e-05/3.1, allocations: 0 / 3.043 GB, free: 0.5162 GB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.703e-05/3.1, allocations: 58.98 kB / 3.043 GB, free: 0.5162 GB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004408/3.104, allocations: 4.549 MB / 3.048 GB, free: 0.5141 GB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/3.105, allocations: 0.9159 MB / 3.049 GB, free: 0.5141 GB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004103/3.106, allocations: 401.8 kB / 3.049 GB, free: 0.5141 GB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001615/3.106, allocations: 118.7 kB / 3.049 GB, free: 0.514 GB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005445/3.107, allocations: 0.5249 MB / 3.05 GB, free: 0.5139 GB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 2.034e-06/3.107, allocations: 3.188 kB / 3.05 GB, free: 0.5139 GB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002046/3.109, allocations: 1.351 MB / 3.051 GB, free: 0.5135 GB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/3.109, allocations: 293.5 kB / 3.051 GB, free: 0.5132 GB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007437/3.109, allocations: 0.7918 MB / 3.052 GB, free: 0.5131 GB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.698e-05/3.109, allocations: 25.7 kB / 3.052 GB, free: 0.5131 GB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000158/3.11, allocations: 416.9 kB / 3.052 GB, free: 0.5129 GB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/3.11, allocations: 308.6 kB / 3.053 GB, free: 0.5127 GB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.125e-05/3.11, allocations: 0 / 3.053 GB, free: 0.5127 GB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.174e-05/3.11, allocations: 338.2 kB / 3.053 GB, free: 0.5124 GB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003746/3.11, allocations: 323.8 kB / 3.053 GB, free: 0.5124 GB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004578/3.111, allocations: 0.5036 MB / 3.054 GB, free: 0.5122 GB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005965/3.111, allocations: 430.9 kB / 3.054 GB, free: 0.5122 GB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/3.111, allocations: 6.125 kB / 3.054 GB, free: 0.5122 GB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001686/3.113, allocations: 1.052 MB / 3.055 GB, free: 0.5121 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000169/3.113, allocations: 1.136 MB / 3.056 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/3.113, allocations: 10.02 kB / 3.056 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005986/3.114, allocations: 106.3 kB / 3.056 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007595/3.115, allocations: 202.3 kB / 3.057 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004649/3.115, allocations: 0.6538 MB / 3.057 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006605/3.116, allocations: 84.64 kB / 3.057 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.777e-05/3.116, allocations: 41.38 kB / 3.057 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 4.638e-06/3.116, allocations: 3.812 kB / 3.057 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001125/3.117, allocations: 0.7992 MB / 3.058 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/3.117, allocations: 3.781 kB / 3.058 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.043e-06/3.117, allocations: 7.531 kB / 3.058 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007456/3.118, allocations: 200.6 kB / 3.058 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/3.118, allocations: 13.02 kB / 3.058 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005775/3.118, allocations: 85.2 kB / 3.059 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-05/3.118, allocations: 33.06 kB / 3.059 GB, free: 0.5104 GB / 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.0001524/3.119, allocations: 129.6 kB / 3.059 GB, free: 0.5103 GB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/3.119, allocations: 106.9 kB / 3.059 GB, free: 0.5103 GB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00241/3.121, allocations: 1.332 MB / 3.06 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/3.121, allocations: 16.31 kB / 3.06 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/3.121, allocations: 3.062 kB / 3.06 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/3.121, allocations: 7.172 kB / 3.06 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003052/3.124, allocations: 2.492 MB / 3.063 GB, free: 0.5097 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/3.124, allocations: 0 / 3.063 GB, free: 0.5097 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006973/3.125, allocations: 197 kB / 3.063 GB, free: 0.5097 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007134/3.126, allocations: 189.5 kB / 3.063 GB, free: 0.5097 GB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.542e-05/3.126, allocations: 19.92 kB / 3.063 GB, free: 0.5097 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001381/3.127, allocations: 1.678 MB / 3.065 GB, free: 0.5086 GB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/3.127, allocations: 3.188 kB / 3.065 GB, free: 0.5086 GB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001769/3.129, allocations: 1.397 MB / 3.066 GB, free: 0.5081 GB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000382/3.129, allocations: 353.7 kB / 3.066 GB, free: 0.508 GB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001567/3.129, allocations: 7.531 kB / 3.066 GB, free: 0.508 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007327/3.13, allocations: 80.94 kB / 3.066 GB, free: 0.508 GB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/3.13, allocations: 63.47 kB / 3.066 GB, free: 0.508 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-05/3.13, allocations: 36.7 kB / 3.066 GB, free: 0.508 GB / 1.151 GB Notification: Performance of sort global known variables: time 0.000564/3.131, allocations: 0.6241 MB / 3.067 GB, free: 0.5079 GB / 1.151 GB Notification: Performance of remove unused functions: time 0.001198/3.132, allocations: 480.5 kB / 3.068 GB, free: 0.5079 GB / 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.0009327/3.133, allocations: 0.5416 MB / 3.068 GB, free: 0.5078 GB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001604/3.135, allocations: 1.34 MB / 3.069 GB, free: 0.5077 GB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/3.135, allocations: 7.219 kB / 3.069 GB, free: 0.5077 GB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007036/3.135, allocations: 0.6048 MB / 3.07 GB, free: 0.5076 GB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/3.137, allocations: 271.7 kB / 3.07 GB, free: 0.5076 GB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002685/3.139, allocations: 1.814 MB / 3.072 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008025/3.14, allocations: 1.348 MB / 3.073 GB, free: 0.5065 GB / 1.151 GB Notification: Performance of SimCode: time 2.51e-07/3.14, allocations: 0 / 3.073 GB, free: 0.5065 GB / 1.151 GB Notification: Performance of Templates: time 0.02836/3.168, allocations: 22.86 MB / 3.096 GB, free: 0.5052 GB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches