Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.352/1.352, allocations: 249.4 MB / 256.7 MB, free: 7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001165/0.001165, allocations: 176.6 kB / 316 MB, free: 3.551 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.18/1.18, allocations: 205.1 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009665/0.0009665, allocations: 94.3 kB / 0.671 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.563e-06/6.593e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1522, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.077/4.229, allocations: 2.225 GB / 3.11 GB, free: 178.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003283/4.229, allocations: 106.9 kB / 3.11 GB, free: 178 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.1382/4.367, allocations: 62.76 MB / 3.171 GB, free: 114.9 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.995e-05/4.368, allocations: 32 kB / 3.171 GB, free: 114.9 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.002592/4.37, allocations: 1.392 MB / 3.172 GB, free: 113.4 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.044e-05/4.37, allocations: 15.97 kB / 3.172 GB, free: 113.4 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001653/4.372, allocations: 309.8 kB / 3.173 GB, free: 113.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/4.373, allocations: 0.834 MB / 3.174 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.678e-05/4.373, allocations: 32 kB / 3.174 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001689/4.374, allocations: 63.91 kB / 3.174 GB, free: 112.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001846/4.375, allocations: 1.3 MB / 3.175 GB, free: 110.8 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/4.377, allocations: 1.131 MB / 3.176 GB, free: 109.6 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.063e-05/4.377, allocations: 0 / 3.176 GB, free: 109.6 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.089e-05/4.377, allocations: 4 kB / 3.176 GB, free: 109.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.954e-05/4.377, allocations: 57.97 kB / 3.176 GB, free: 109.5 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005572/4.383, allocations: 4.554 MB / 3.181 GB, free: 104.7 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/4.384, allocations: 0.8988 MB / 3.181 GB, free: 103.8 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004703/4.384, allocations: 392 kB / 3.182 GB, free: 103.4 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002632/4.385, allocations: 121.8 kB / 3.182 GB, free: 103.3 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006459/4.385, allocations: 0.5169 MB / 3.182 GB, free: 102.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=94): time 4.087e-06/4.385, allocations: 112 / 3.182 GB, free: 102.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95): time 0.002725/4.388, allocations: 1.359 MB / 3.184 GB, free: 101.4 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.977e-05/4.388, allocations: 291.5 kB / 3.184 GB, free: 101 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009679/4.389, allocations: 0.7936 MB / 3.185 GB, free: 100.2 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.363e-05/4.389, allocations: 25.7 kB / 3.185 GB, free: 100.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003026/4.39, allocations: 407.8 kB / 3.185 GB, free: 99.8 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002171/4.39, allocations: 307.4 kB / 3.185 GB, free: 99.49 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/4.39, allocations: 0 / 3.185 GB, free: 99.49 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.084e-05/4.39, allocations: 346 kB / 3.186 GB, free: 99.15 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004052/4.39, allocations: 314.4 kB / 3.186 GB, free: 98.84 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/4.391, allocations: 0.5001 MB / 3.187 GB, free: 98.27 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006877/4.392, allocations: 433.6 kB / 3.187 GB, free: 97.85 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/4.392, allocations: 0 / 3.187 GB, free: 97.85 MB / 0.8698 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001911/4.394, allocations: 1.06 MB / 3.188 GB, free: 96.78 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002905/4.394, allocations: 1.137 MB / 3.189 GB, free: 95.56 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/4.394, allocations: 4 kB / 3.189 GB, free: 95.55 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006815/4.395, allocations: 100.8 kB / 3.189 GB, free: 95.45 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008413/4.395, allocations: 207.7 kB / 3.189 GB, free: 95.25 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000576/4.396, allocations: 0.6577 MB / 3.19 GB, free: 94.57 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008503/4.397, allocations: 79.55 kB / 3.19 GB, free: 94.49 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.79e-05/4.397, allocations: 43.97 kB / 3.19 GB, free: 94.45 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.248e-06/4.397, allocations: 4 kB / 3.19 GB, free: 94.44 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001287/4.398, allocations: 0.7975 MB / 3.191 GB, free: 93.64 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/4.398, allocations: 4 kB / 3.191 GB, free: 93.64 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.037e-06/4.398, allocations: 8 kB / 3.191 GB, free: 93.63 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007993/4.399, allocations: 212.1 kB / 3.191 GB, free: 93.42 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/4.399, allocations: 12.03 kB / 3.191 GB, free: 93.41 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007171/4.4, allocations: 79.33 kB / 3.191 GB, free: 93.33 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.639e-05/4.4, allocations: 39.98 kB / 3.191 GB, free: 93.29 MB / 0.8698 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.000221/4.4, allocations: 124.7 kB / 3.191 GB, free: 93.16 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/4.4, allocations: 110.7 kB / 3.192 GB, free: 93.05 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002732/4.403, allocations: 1.327 MB / 3.193 GB, free: 91.72 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/4.403, allocations: 12 kB / 3.193 GB, free: 91.71 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/4.403, allocations: 0 / 3.193 GB, free: 91.71 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/4.403, allocations: 3.984 kB / 3.193 GB, free: 91.7 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003839/4.407, allocations: 2.494 MB / 3.195 GB, free: 89.14 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/4.407, allocations: 0 / 3.195 GB, free: 89.14 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007804/4.408, allocations: 192 kB / 3.195 GB, free: 88.96 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008268/4.409, allocations: 192.6 kB / 3.196 GB, free: 88.77 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.214e-05/4.409, allocations: 23.89 kB / 3.196 GB, free: 88.74 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/4.41, allocations: 1.678 MB / 3.197 GB, free: 86.95 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/4.41, allocations: 64 / 3.197 GB, free: 86.95 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00288/4.413, allocations: 1.39 MB / 3.199 GB, free: 85.47 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005822/4.414, allocations: 355.3 kB / 3.199 GB, free: 85.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/4.414, allocations: 12 kB / 3.199 GB, free: 85.09 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008547/4.415, allocations: 71.92 kB / 3.199 GB, free: 85.02 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/4.415, allocations: 64.89 kB / 3.199 GB, free: 84.96 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.475e-05/4.415, allocations: 39.98 kB / 3.199 GB, free: 84.92 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0007786/4.416, allocations: 0.6163 MB / 3.2 GB, free: 84.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001669/4.418, allocations: 455.7 kB / 3.2 GB, free: 83.86 MB / 0.8698 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.001153/4.419, allocations: 495.6 kB / 3.201 GB, free: 83.45 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002253/4.421, allocations: 1.342 MB / 3.202 GB, free: 82.11 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/4.421, allocations: 128 / 3.202 GB, free: 82.11 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009181/4.422, allocations: 0.6027 MB / 3.203 GB, free: 81.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/4.423, allocations: 270.4 kB / 3.203 GB, free: 81.24 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/4.427, allocations: 1.808 MB / 3.205 GB, free: 79.37 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009195/4.428, allocations: 1.339 MB / 3.206 GB, free: 78.01 MB / 0.8698 GB Notification: Performance of SimCode: time 1.022e-06/4.428, allocations: 0 / 3.206 GB, free: 78.01 MB / 0.8698 GB Notification: Performance of Templates: time 0.0337/4.462, allocations: 22.47 MB / 3.228 GB, free: 55.62 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches