Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.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.DC.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I|tur.vWin|tur.vIn",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.DC.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I|tur.vWin|tur.vIn",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.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 10.0.0-master/package.mo): time 1.71/1.71, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009005/0.0009005, allocations: 181.2 kB / 490.8 MB, free: 1.953 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.056/1.056, allocations: 221.3 MB / 0.7863 GB, free: 13.7 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.0008101/0.0008101, allocations: 95.52 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.891e-06/5.922e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1639, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.276/2.44, allocations: 1.761 GB / 2.972 GB, free: 117.9 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/2.44, allocations: 102.2 kB / 2.972 GB, free: 117.8 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd: time 0.1077/2.548, allocations: 56.93 MB / 3.028 GB, free: 60.57 MB / 1.151 GB Notification: Performance of Transformations before backend: time 6.321e-05/2.548, allocations: 36 kB / 3.028 GB, free: 60.54 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: 260 * Number of variables: 260 Notification: Performance of Generate backend data structure: time 0.001615/2.549, allocations: 1.36 MB / 3.029 GB, free: 59.12 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 2.798e-05/2.549, allocations: 8.031 kB / 3.029 GB, free: 59.11 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0012/2.551, allocations: 297.9 kB / 3.03 GB, free: 58.82 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/2.552, allocations: 0.8028 MB / 3.03 GB, free: 57.98 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.027e-05/2.552, allocations: 32 kB / 3.03 GB, free: 57.95 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.918e-05/2.552, allocations: 56 kB / 3.031 GB, free: 57.89 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001326/2.553, allocations: 1.198 MB / 3.032 GB, free: 56.69 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/2.554, allocations: 0.9824 MB / 3.033 GB, free: 55.64 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/2.554, allocations: 3.938 kB / 3.033 GB, free: 55.63 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.254e-05/2.554, allocations: 7.906 kB / 3.033 GB, free: 55.62 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.231e-05/2.554, allocations: 49.98 kB / 3.033 GB, free: 55.57 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004138/2.559, allocations: 4.22 MB / 3.037 GB, free: 51.15 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008074/2.559, allocations: 0.708 MB / 3.038 GB, free: 50.43 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003758/2.56, allocations: 295.2 kB / 3.038 GB, free: 50.14 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 5.803e-05/2.56, allocations: 40.61 kB / 3.038 GB, free: 50.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004056/2.56, allocations: 412.7 kB / 3.038 GB, free: 49.67 MB / 1.151 GB Notification: Performance of pre-optimization done (n=80): time 1.081e-05/2.56, allocations: 0 / 3.038 GB, free: 49.67 MB / 1.151 GB Notification: Performance of matching and sorting (n=80): time 0.0009157/2.561, allocations: 0.6479 MB / 3.039 GB, free: 49.01 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/2.561, allocations: 350.8 kB / 3.039 GB, free: 48.59 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007102/2.562, allocations: 0.778 MB / 3.04 GB, free: 47.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.564e-05/2.562, allocations: 25.7 kB / 3.04 GB, free: 47.77 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/2.562, allocations: 403.5 kB / 3.04 GB, free: 47.37 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/2.562, allocations: 272 kB / 3.041 GB, free: 47.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.908e-05/2.562, allocations: 0 / 3.041 GB, free: 47.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.273e-05/2.562, allocations: 334 kB / 3.041 GB, free: 46.77 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/2.563, allocations: 209.5 kB / 3.041 GB, free: 46.56 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003387/2.563, allocations: 397.5 kB / 3.042 GB, free: 46.11 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003442/2.563, allocations: 289.7 kB / 3.042 GB, free: 45.83 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/2.563, allocations: 0 / 3.042 GB, free: 45.83 MB / 1.151 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0009167/2.564, allocations: 0.717 MB / 3.043 GB, free: 45.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/2.564, allocations: 0.9631 MB / 3.043 GB, free: 44.06 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/2.564, allocations: 4 kB / 3.043 GB, free: 44.05 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001315/2.565, allocations: 28.78 kB / 3.043 GB, free: 44.02 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006108/2.565, allocations: 171.8 kB / 3.044 GB, free: 43.86 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002166/2.565, allocations: 0.5484 MB / 3.044 GB, free: 43.28 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/2.566, allocations: 87.33 kB / 3.044 GB, free: 43.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.096e-05/2.566, allocations: 31.98 kB / 3.044 GB, free: 43.16 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.171e-06/2.566, allocations: 6.969 kB / 3.044 GB, free: 43.16 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007401/2.567, allocations: 0.5789 MB / 3.045 GB, free: 42.58 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.026e-06/2.567, allocations: 0 / 3.045 GB, free: 42.58 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.432e-06/2.567, allocations: 8 kB / 3.045 GB, free: 42.57 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000598/2.567, allocations: 180 kB / 3.045 GB, free: 42.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/2.567, allocations: 4 kB / 3.045 GB, free: 42.39 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/2.568, allocations: 79.39 kB / 3.045 GB, free: 42.32 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.785e-05/2.568, allocations: 31.98 kB / 3.045 GB, free: 42.29 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (94): * Single equations (assignments): 93 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001232/2.568, allocations: 128.7 kB / 3.045 GB, free: 42.15 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/2.568, allocations: 102.8 kB / 3.045 GB, free: 42.05 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001337/2.57, allocations: 0.8887 MB / 3.046 GB, free: 41.15 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/2.57, allocations: 8 kB / 3.046 GB, free: 41.14 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/2.57, allocations: 3.984 kB / 3.046 GB, free: 41.14 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/2.57, allocations: 7.984 kB / 3.046 GB, free: 41.13 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/2.572, allocations: 2.097 MB / 3.048 GB, free: 38.96 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/2.572, allocations: 0 / 3.048 GB, free: 38.96 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005416/2.572, allocations: 163.7 kB / 3.048 GB, free: 38.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.013e-05/2.572, allocations: 40.84 kB / 3.049 GB, free: 38.75 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.99e-05/2.572, allocations: 15.98 kB / 3.049 GB, free: 38.74 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004994/2.573, allocations: 1.213 MB / 3.05 GB, free: 37.41 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/2.573, allocations: 0 / 3.05 GB, free: 37.41 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008635/2.574, allocations: 0.8997 MB / 3.051 GB, free: 36.45 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003094/2.574, allocations: 323.4 kB / 3.051 GB, free: 36.12 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/2.574, allocations: 4 kB / 3.051 GB, free: 36.11 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005697/2.575, allocations: 63.94 kB / 3.051 GB, free: 36.05 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.304e-05/2.575, allocations: 52.7 kB / 3.051 GB, free: 36 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.796e-05/2.575, allocations: 35.98 kB / 3.051 GB, free: 35.96 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0004949/2.575, allocations: 0.6006 MB / 3.052 GB, free: 35.37 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0009774/2.576, allocations: 0.5408 MB / 3.052 GB, free: 34.83 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 89 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008327/2.577, allocations: 0.5537 MB / 3.053 GB, free: 34.39 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001076/2.578, allocations: 0.9696 MB / 3.054 GB, free: 33.41 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/2.578, allocations: 0 / 3.054 GB, free: 33.41 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000418/2.579, allocations: 448.6 kB / 3.054 GB, free: 32.97 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009144/2.58, allocations: 261.9 kB / 3.054 GB, free: 32.72 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/2.582, allocations: 1.584 MB / 3.056 GB, free: 31.09 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006635/2.583, allocations: 1.287 MB / 3.057 GB, free: 29.77 MB / 1.151 GB Notification: Performance of SimCode: time 2.2e-07/2.583, allocations: 0 / 3.057 GB, free: 29.77 MB / 1.151 GB Notification: Performance of Templates: time 0.02255/2.605, allocations: 19.78 MB / 3.076 GB, free: 10.13 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_WindTurbine.csv","../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches