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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001049/0.001049, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.008829/0.008829, allocations: 174 kB / 16.27 MB, free: 6.613 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.397/1.397, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.854/2.854, allocations: 462.7 MB / 0.7364 GB, free: 256 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.000418/0.0004184, allocations: 8.75 kB / 0.9028 GB, free: 36.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3314, allocations: 159.6 MB / 1.059 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.009479/0.3409, allocations: 6.999 MB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1909/0.5319, allocations: 148 MB / 1.21 GB, free: 9.922 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001964/0.5339, allocations: 27.81 kB / 1.21 GB, free: 9.895 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001701/0.5357, allocations: 266.3 kB / 1.21 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.005303/0.541, allocations: 0.7073 MB / 1.211 GB, free: 8.926 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004317/0.5453, allocations: 0.9155 MB / 1.212 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003632/0.549, allocations: 1.92 MB / 1.214 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002673/0.5517, allocations: 1.125 MB / 1.215 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001288/0.553, allocations: 497.7 kB / 1.215 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.5547, allocations: 0.6104 MB / 1.216 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0003415/0.555, allocations: 40 kB / 1.216 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001661/0.5567, allocations: 0.5733 MB / 1.216 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000603/0.5573, allocations: 314.7 kB / 1.217 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001363/0.5587, allocations: 0.619 MB / 1.217 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.003317/0.562, allocations: 1.974 MB / 1.219 GB, free: 272 kB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.562, allocations: 4 kB / 1.219 GB, free: 268 kB / 0.9669 GB Notification: Performance of FrontEnd: time 2.304e-06/0.562, allocations: 4 kB / 1.219 GB, free: 264 kB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.744e-05/0.5621, allocations: 0 / 1.219 GB, free: 264 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.003609/0.5658, allocations: 1.518 MB / 1.221 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.5658, allocations: 16.03 kB / 1.221 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001583/0.5674, allocations: 282.8 kB / 1.221 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001953/0.5694, allocations: 0.9452 MB / 1.222 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.752e-05/0.5695, allocations: 78.09 kB / 1.222 GB, free: 13.33 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002165/0.5697, allocations: 100 kB / 1.222 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002521/0.5722, allocations: 1.241 MB / 1.223 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/0.5723, allocations: 0 / 1.223 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/0.5724, allocations: 44 kB / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.881e-05/0.5725, allocations: 65.98 kB / 1.224 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002504/0.575, allocations: 1.35 MB / 1.225 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008605/0.5836, allocations: 4.698 MB / 1.229 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001887/0.5855, allocations: 0.8965 MB / 1.23 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008678/0.5864, allocations: 371.6 kB / 1.231 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.297e-05/0.5866, allocations: 36.94 kB / 1.231 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001093/0.5877, allocations: 0.542 MB / 1.231 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=89): time 5.029e-06/0.5877, allocations: 0 / 1.231 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of matching and sorting (n=89): time 0.002933/0.5906, allocations: 1.231 MB / 1.232 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001687/0.5908, allocations: 299.7 kB / 1.233 GB, free: 1.984 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001663/0.5925, allocations: 0.9494 MB / 1.234 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.5926, allocations: 53.69 kB / 1.234 GB, free: 0.9531 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005337/0.5931, allocations: 0.5428 MB / 1.234 GB, free: 412 kB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004376/0.5936, allocations: 295.8 kB / 1.234 GB, free: 112 kB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.5937, allocations: 81.67 kB / 1.235 GB, free: 24 kB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001672/0.5939, allocations: 341.9 kB / 1.235 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00066/0.5946, allocations: 301.8 kB / 1.235 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008142/0.5954, allocations: 484.5 kB / 1.236 GB, free: 14.87 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.5968, allocations: 0.7363 MB / 1.236 GB, free: 14.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.5968, allocations: 0 / 1.236 GB, free: 14.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00203/0.5988, allocations: 0.9654 MB / 1.237 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001396/0.599, allocations: 178.7 kB / 1.237 GB, free: 12.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.599, allocations: 0 / 1.237 GB, free: 12.91 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000225/0.5992, allocations: 32.84 kB / 1.238 GB, free: 12.87 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008248/0.6, allocations: 195.7 kB / 1.238 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/0.6017, allocations: 1.299 MB / 1.239 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.6028, allocations: 135 kB / 1.239 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.6029, allocations: 43.97 kB / 1.239 GB, free: 11.07 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.6029, allocations: 8 kB / 1.239 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001707/0.6047, allocations: 0.8201 MB / 1.24 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.6047, allocations: 4 kB / 1.24 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.6047, allocations: 8 kB / 1.24 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008399/0.6056, allocations: 203.6 kB / 1.24 GB, free: 10.03 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-05/0.6056, allocations: 7.984 kB / 1.24 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.6067, allocations: 125.3 kB / 1.24 GB, free: 9.902 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-05/0.6068, allocations: 43.97 kB / 1.24 GB, free: 9.859 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.0008995/0.6077, allocations: 422.5 kB / 1.241 GB, free: 9.438 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003299/0.608, allocations: 106.7 kB / 1.241 GB, free: 9.332 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002531/0.6106, allocations: 1.076 MB / 1.242 GB, free: 8.242 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.6106, allocations: 11.98 kB / 1.242 GB, free: 8.23 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/0.6106, allocations: 4 kB / 1.242 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.6106, allocations: 7.969 kB / 1.242 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004975/0.6156, allocations: 2.381 MB / 1.244 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.6156, allocations: 4 kB / 1.244 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006521/0.6163, allocations: 175.8 kB / 1.244 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001362/0.6164, allocations: 24.84 kB / 1.244 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.385e-05/0.6165, allocations: 23.98 kB / 1.244 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.6176, allocations: 1.28 MB / 1.246 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.6176, allocations: 4.031 kB / 1.246 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/0.6196, allocations: 1.054 MB / 1.247 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008301/0.6205, allocations: 327.3 kB / 1.247 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002622/0.6208, allocations: 28 kB / 1.247 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009327/0.6217, allocations: 91.83 kB / 1.247 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002016/0.6219, allocations: 80.83 kB / 1.247 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.32e-05/0.622, allocations: 31.98 kB / 1.247 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0014/0.6234, allocations: 0.6652 MB / 1.248 GB, free: 1.781 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6234, allocations: 0 / 1.248 GB, free: 1.781 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001964/0.6254, allocations: 0.6037 MB / 1.248 GB, free: 1.176 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.001811/0.6272, allocations: 0.662 MB / 1.249 GB, free: 0.7148 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.5338/1.161, allocations: 1.354 MB / 1.25 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.198e-05/1.161, allocations: 1.625 kB / 1.25 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001138/1.162, allocations: 0.531 MB / 1.251 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002058/1.164, allocations: 329.5 kB / 1.251 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004399/1.169, allocations: 2.767 MB / 1.254 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005716/1.169, allocations: 1.164 MB / 1.255 GB, free: 187.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001345/1.171, allocations: 416.9 kB / 1.256 GB, free: 187.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002732/1.171, allocations: 117.6 kB / 1.256 GB, free: 187.2 MB / 0.9981 GB Notification: Performance of SimCode: time 1.863e-06/1.171, allocations: 0 / 1.256 GB, free: 187.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.0349/1.206, allocations: 16.56 MB / 1.272 GB, free: 184.2 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/jenkins/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