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.001034/0.001034, allocations: 92.78 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 181.8 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 223.3 MB / 241 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.794/2.794, allocations: 462.7 MB / 0.7371 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005376/0.0005377, allocations: 7.656 kB / 0.9034 GB, free: 36.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3375, allocations: 159.6 MB / 1.059 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.009397/0.347, allocations: 6.979 MB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1681/0.5151, allocations: 148 MB / 1.211 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00151/0.5166, allocations: 23.88 kB / 1.211 GB, free: 9.371 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001201/0.5179, allocations: 270.3 kB / 1.211 GB, free: 9.105 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002967/0.5208, allocations: 0.7028 MB / 1.212 GB, free: 8.402 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002804/0.5237, allocations: 0.9238 MB / 1.213 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002805/0.5265, allocations: 1.92 MB / 1.214 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002155/0.5287, allocations: 1.12 MB / 1.215 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00109/0.5298, allocations: 497.7 kB / 1.216 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001277/0.5311, allocations: 0.6065 MB / 1.217 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002991/0.5314, allocations: 40 kB / 1.217 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001619/0.533, allocations: 0.5812 MB / 1.217 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0005055/0.5335, allocations: 310.6 kB / 1.217 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001022/0.5345, allocations: 0.619 MB / 1.218 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002632/0.5372, allocations: 1.547 MB / 1.22 GB, free: 168 kB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.5372, allocations: 0 / 1.22 GB, free: 168 kB / 0.9669 GB Notification: Performance of FrontEnd: time 3.507e-06/0.5372, allocations: 0 / 1.22 GB, free: 168 kB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001108/0.5374, allocations: 0 / 1.22 GB, free: 168 kB / 0.9669 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.005113/0.5425, allocations: 1.522 MB / 1.221 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.5425, allocations: 8.031 kB / 1.221 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001845/0.5444, allocations: 282.8 kB / 1.221 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002104/0.5465, allocations: 0.9413 MB / 1.222 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.927e-05/0.5466, allocations: 86.06 kB / 1.222 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002571/0.5469, allocations: 100 kB / 1.222 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002753/0.5497, allocations: 1.245 MB / 1.224 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.5497, allocations: 0 / 1.224 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001327/0.5499, allocations: 48 kB / 1.224 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.598e-05/0.5499, allocations: 57.88 kB / 1.224 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/0.5524, allocations: 1.354 MB / 1.225 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006709/0.5591, allocations: 4.706 MB / 1.23 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00173/0.5609, allocations: 0.9061 MB / 1.231 GB, free: 4.461 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00069/0.5616, allocations: 375.6 kB / 1.231 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 8.05e-05/0.5617, allocations: 32.95 kB / 1.231 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008765/0.5626, allocations: 0.5421 MB / 1.231 GB, free: 3.488 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=89): time 3.386e-06/0.5626, allocations: 0 / 1.231 GB, free: 3.488 MB / 0.9825 GB Notification: Performance of matching and sorting (n=89): time 0.00248/0.5651, allocations: 1.223 MB / 1.233 GB, free: 2.238 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.5653, allocations: 295.7 kB / 1.233 GB, free: 1.883 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001303/0.5666, allocations: 0.9572 MB / 1.234 GB, free: 0.9023 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 8.625e-05/0.5667, allocations: 41.77 kB / 1.234 GB, free: 0.8555 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004451/0.5671, allocations: 0.5506 MB / 1.234 GB, free: 304 kB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002352/0.5674, allocations: 295.8 kB / 1.235 GB, free: 4 kB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.5675, allocations: 77.67 kB / 1.235 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.5676, allocations: 341.9 kB / 1.235 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005852/0.5682, allocations: 305.8 kB / 1.235 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007081/0.5689, allocations: 476.5 kB / 1.236 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.5702, allocations: 0.7441 MB / 1.237 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.5702, allocations: 0 / 1.237 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.001784/0.572, allocations: 0.9695 MB / 1.238 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.00011/0.5721, allocations: 174.6 kB / 1.238 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.5721, allocations: 4 kB / 1.238 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002099/0.5724, allocations: 36.84 kB / 1.238 GB, free: 12.76 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007813/0.5731, allocations: 199.7 kB / 1.238 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001193/0.5744, allocations: 1.289 MB / 1.239 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009895/0.5754, allocations: 132 kB / 1.239 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.713e-05/0.5754, allocations: 43.97 kB / 1.239 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.5755, allocations: 4 kB / 1.239 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001515/0.577, allocations: 0.8315 MB / 1.24 GB, free: 10.13 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.577, allocations: 7.938 kB / 1.24 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.348e-06/0.577, allocations: 8 kB / 1.24 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007642/0.5778, allocations: 199.7 kB / 1.24 GB, free: 9.918 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.5778, allocations: 8.281 kB / 1.24 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008607/0.5787, allocations: 123.9 kB / 1.241 GB, free: 9.789 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.777e-05/0.5787, allocations: 39.98 kB / 1.241 GB, free: 9.75 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0007255/0.5795, allocations: 426.5 kB / 1.241 GB, free: 9.324 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001823/0.5797, allocations: 114.7 kB / 1.241 GB, free: 9.211 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002111/0.5818, allocations: 1.076 MB / 1.242 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.5818, allocations: 8 kB / 1.242 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.5818, allocations: 0 / 1.242 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.5818, allocations: 7.984 kB / 1.242 GB, free: 8.105 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003321/0.5852, allocations: 2.377 MB / 1.244 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.5852, allocations: 0 / 1.244 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000607/0.5858, allocations: 171.7 kB / 1.245 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001146/0.5859, allocations: 28.84 kB / 1.245 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.267e-05/0.586, allocations: 23.98 kB / 1.245 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008821/0.5869, allocations: 1.28 MB / 1.246 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5869, allocations: 0 / 1.246 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/0.5885, allocations: 1.062 MB / 1.247 GB, free: 2.914 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004282/0.589, allocations: 327.3 kB / 1.247 GB, free: 2.574 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.5891, allocations: 27.98 kB / 1.247 GB, free: 2.547 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007379/0.5899, allocations: 93.66 kB / 1.247 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.59, allocations: 76.83 kB / 1.247 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.955e-05/0.5901, allocations: 39.97 kB / 1.247 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008531/0.5909, allocations: 0.6691 MB / 1.248 GB, free: 1.664 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5909, allocations: 0 / 1.248 GB, free: 1.664 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001425/0.5924, allocations: 0.5997 MB / 1.249 GB, free: 1.062 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.conTimMin.tNext,weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.locTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001511/0.5939, allocations: 0.6587 MB / 1.249 GB, free: 0.6055 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.6061/1.2, allocations: 1.346 MB / 1.251 GB, free: 188.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/1.2, allocations: 1.062 kB / 1.251 GB, free: 188.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001126/1.201, allocations: 0.5309 MB / 1.251 GB, free: 188.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0021/1.203, allocations: 329.4 kB / 1.252 GB, free: 188.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00462/1.208, allocations: 2.828 MB / 1.254 GB, free: 187.2 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006001/1.209, allocations: 1.161 MB / 1.255 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004122/1.209, allocations: 137.1 kB / 1.256 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of SimCode: time 9.42e-07/1.209, allocations: 0 / 1.256 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of Templates: time 0.04186/1.251, allocations: 22.93 MB / 1.278 GB, free: 180 MB / 0.9981 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches