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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009925/0.0009927, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 223.2 MB / 239.9 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.579/2.579, allocations: 436.5 MB / 0.7104 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003767, allocations: 12 kB / 0.8708 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7705/0.7709, allocations: 153.6 MB / 1.021 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.007767/0.7787, allocations: 5.978 MB / 1.027 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1742/0.953, allocations: 128.7 MB / 1.152 GB, free: 10.1 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001523/0.9545, allocations: 23.88 kB / 1.152 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.9556, allocations: 182.9 kB / 1.153 GB, free: 9.895 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.003747/0.9594, allocations: 0.691 MB / 1.153 GB, free: 9.207 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003823/0.9632, allocations: 0.8324 MB / 1.154 GB, free: 8.383 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.003303/0.9666, allocations: 1.064 MB / 1.155 GB, free: 7.316 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001589/0.9682, allocations: 0.8994 MB / 1.156 GB, free: 6.367 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008701/0.969, allocations: 462.1 kB / 1.156 GB, free: 5.914 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007538/0.9698, allocations: 0.4921 MB / 1.157 GB, free: 5.422 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.9699, allocations: 40 kB / 1.157 GB, free: 5.383 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.9711, allocations: 371.4 kB / 1.157 GB, free: 5.02 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002976/0.9714, allocations: 287 kB / 1.158 GB, free: 4.738 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000269/0.9717, allocations: 264.9 kB / 1.158 GB, free: 4.473 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001605/0.9733, allocations: 1.527 MB / 1.159 GB, free: 2.941 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.9733, allocations: 4 kB / 1.159 GB, free: 2.938 MB / 0.9044 GB Notification: Performance of FrontEnd: time 3.256e-06/0.9733, allocations: 0 / 1.159 GB, free: 2.938 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.385e-05/0.9734, allocations: 0 / 1.159 GB, free: 2.938 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 273 * Number of variables: 273 Notification: Performance of Generate backend data structure: time 0.003161/0.9765, allocations: 1.518 MB / 1.161 GB, free: 1.367 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 6.474e-05/0.9766, allocations: 11.98 kB / 1.161 GB, free: 1.355 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001427/0.978, allocations: 289.9 kB / 1.161 GB, free: 1.07 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.9798, allocations: 0.914 MB / 1.162 GB, free: 116 kB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.993e-05/0.9799, allocations: 82.08 kB / 1.162 GB, free: 32 kB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.9801, allocations: 104.1 kB / 1.162 GB, free: 15.93 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002181/0.9823, allocations: 1.222 MB / 1.163 GB, free: 14.62 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.9824, allocations: 4 kB / 1.163 GB, free: 14.62 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.9825, allocations: 48 kB / 1.163 GB, free: 14.57 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.506e-05/0.9825, allocations: 54 kB / 1.163 GB, free: 14.52 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002134/0.9847, allocations: 1.342 MB / 1.165 GB, free: 13.17 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006938/0.9916, allocations: 4.542 MB / 1.169 GB, free: 8.402 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001719/0.9934, allocations: 0.9026 MB / 1.17 GB, free: 7.492 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 8.798e-05/0.9935, allocations: 48.88 kB / 1.17 GB, free: 7.445 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008874/0.9944, allocations: 0.5227 MB / 1.171 GB, free: 6.895 MB / 0.92 GB Notification: Performance of pre-optimization done (n=89): time 3.135e-06/0.9944, allocations: 4 kB / 1.171 GB, free: 6.891 MB / 0.92 GB Notification: Performance of matching and sorting (n=89): time 0.002452/0.9969, allocations: 1.221 MB / 1.172 GB, free: 5.645 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/0.997, allocations: 299.7 kB / 1.172 GB, free: 5.285 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/0.9983, allocations: 0.9418 MB / 1.173 GB, free: 4.32 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 8.454e-05/0.9984, allocations: 45.7 kB / 1.173 GB, free: 4.27 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005031/0.9989, allocations: 0.5544 MB / 1.174 GB, free: 3.707 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002617/0.9992, allocations: 287.8 kB / 1.174 GB, free: 3.422 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.9992, allocations: 16 kB / 1.174 GB, free: 3.406 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.9994, allocations: 345.9 kB / 1.174 GB, free: 3.062 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005049/0.9999, allocations: 281.8 kB / 1.174 GB, free: 2.785 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006609/1.001, allocations: 463.9 kB / 1.175 GB, free: 2.27 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005957/1.001, allocations: 346.8 kB / 1.175 GB, free: 1.934 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/1.001, allocations: 4 kB / 1.175 GB, free: 1.93 MB / 0.92 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001608/1.003, allocations: 0.9071 MB / 1.176 GB, free: 1.012 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004448/1.003, allocations: 1.059 MB / 1.177 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/1.003, allocations: 0 / 1.177 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002251/1.004, allocations: 36.84 kB / 1.177 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007595/1.004, allocations: 187.7 kB / 1.177 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/1.005, allocations: 1.292 MB / 1.179 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000872/1.006, allocations: 123.3 kB / 1.179 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.019e-05/1.006, allocations: 35.98 kB / 1.179 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.878e-06/1.006, allocations: 5.875 kB / 1.179 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001343/1.008, allocations: 0.7651 MB / 1.18 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/1.008, allocations: 7.938 kB / 1.18 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.546e-06/1.008, allocations: 8 kB / 1.18 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007263/1.009, allocations: 195.7 kB / 1.18 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/1.009, allocations: 16.28 kB / 1.18 GB, free: 13.08 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007353/1.009, allocations: 115.2 kB / 1.18 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.458e-05/1.009, allocations: 35.97 kB / 1.18 GB, free: 12.93 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext) * Number of discrete states: 0 () * Number of clocked 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006841/1.01, allocations: 420.8 kB / 1.18 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/1.01, allocations: 114.6 kB / 1.18 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001961/1.012, allocations: 1.08 MB / 1.181 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/1.012, allocations: 12 kB / 1.181 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/1.012, allocations: 0 / 1.181 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/1.012, allocations: 11.97 kB / 1.181 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/1.014, allocations: 1.378 MB / 1.183 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/1.014, allocations: 3.938 kB / 1.183 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006381/1.015, allocations: 167.7 kB / 1.183 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001181/1.015, allocations: 24.91 kB / 1.183 GB, free: 9.641 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.599e-05/1.015, allocations: 31.98 kB / 1.183 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000904/1.016, allocations: 1.276 MB / 1.184 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/1.016, allocations: 3.953 kB / 1.184 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/1.017, allocations: 0.9904 MB / 1.185 GB, free: 7.16 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004973/1.018, allocations: 339.2 kB / 1.186 GB, free: 6.809 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/1.018, allocations: 20 kB / 1.186 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006578/1.019, allocations: 86.17 kB / 1.186 GB, free: 6.707 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/1.019, allocations: 76.89 kB / 1.186 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.447e-05/1.019, allocations: 31.98 kB / 1.186 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0008656/1.02, allocations: 0.6652 MB / 1.186 GB, free: 5.926 MB / 0.9356 GB Notification: Performance of sort global known variables: time 5.61e-07/1.02, allocations: 0 / 1.186 GB, free: 5.926 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001442/1.021, allocations: 0.5724 MB / 1.187 GB, free: 5.352 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001447/1.023, allocations: 0.6464 MB / 1.188 GB, free: 4.906 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002305/1.025, allocations: 1.29 MB / 1.189 GB, free: 3.609 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/1.025, allocations: 0 / 1.189 GB, free: 3.609 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0007662/1.026, allocations: 0.5286 MB / 1.189 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/1.027, allocations: 291.7 kB / 1.19 GB, free: 2.785 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/1.031, allocations: 2.612 MB / 1.192 GB, free: 148 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007388/1.032, allocations: 1.192 MB / 1.193 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001256/1.033, allocations: 412.4 kB / 1.194 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002788/1.033, allocations: 123.4 kB / 1.194 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of SimCode: time 8.21e-07/1.033, allocations: 0 / 1.194 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of Templates: time 0.03292/1.066, allocations: 15.61 MB / 1.209 GB, free: 14.94 MB / 0.9669 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