Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001131/0.001131, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009926/0.009926, allocations: 169.2 kB / 16.26 MB, free: 6.66 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.65/1.65, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.958/2.958, allocations: 470.6 MB / 0.7441 GB, free: 8.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000389/0.000389, allocations: 6.875 kB / 0.9123 GB, free: 34.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3826/0.383, allocations: 161.4 MB / 1.07 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.01081/0.3938, allocations: 6.989 MB / 1.077 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.2359/0.6298, allocations: 148 MB / 1.221 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00168/0.6315, allocations: 23.88 kB / 1.221 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.6328, allocations: 270.1 kB / 1.221 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.003092/0.636, allocations: 0.708 MB / 1.222 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003037/0.639, allocations: 0.9193 MB / 1.223 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.003184/0.6422, allocations: 1.928 MB / 1.225 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00236/0.6446, allocations: 1.112 MB / 1.226 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.6457, allocations: 493.7 kB / 1.227 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001389/0.6471, allocations: 0.6142 MB / 1.227 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0003115/0.6474, allocations: 40 kB / 1.227 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001687/0.6491, allocations: 0.5733 MB / 1.228 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0005307/0.6497, allocations: 314.7 kB / 1.228 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001025/0.6507, allocations: 0.6151 MB / 1.229 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003274/0.654, allocations: 1.978 MB / 1.231 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.654, allocations: 4 kB / 1.231 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.003e-06/0.654, allocations: 0 / 1.231 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.156e-05/0.6541, allocations: 0 / 1.231 GB, free: 6.238 MB / 0.9825 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.003743/0.6578, allocations: 1.526 MB / 1.232 GB, free: 4.66 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.6579, allocations: 15.97 kB / 1.232 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.6595, allocations: 278.8 kB / 1.232 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/0.6613, allocations: 0.9413 MB / 1.233 GB, free: 3.387 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.747e-05/0.6614, allocations: 86.06 kB / 1.233 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/0.6616, allocations: 100 kB / 1.233 GB, free: 3.203 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002581/0.6642, allocations: 1.245 MB / 1.235 GB, free: 1.875 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.02e-05/0.6642, allocations: 3.938 kB / 1.235 GB, free: 1.871 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001594/0.6644, allocations: 44 kB / 1.235 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000113/0.6645, allocations: 58 kB / 1.235 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003307/0.6678, allocations: 1.354 MB / 1.236 GB, free: 416 kB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008241/0.6761, allocations: 4.698 MB / 1.241 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.6779, allocations: 0.9027 MB / 1.242 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007499/0.6787, allocations: 375.7 kB / 1.242 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.388e-05/0.6788, allocations: 28.95 kB / 1.242 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009653/0.6798, allocations: 0.5422 MB / 1.242 GB, free: 9.574 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=89): time 2.665e-06/0.6798, allocations: 4 kB / 1.242 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=89): time 0.002662/0.6825, allocations: 1.224 MB / 1.244 GB, free: 8.32 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002315/0.6827, allocations: 299.7 kB / 1.244 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.6842, allocations: 0.9571 MB / 1.245 GB, free: 6.98 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.777e-05/0.6843, allocations: 45.7 kB / 1.245 GB, free: 6.93 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005758/0.6849, allocations: 0.5428 MB / 1.245 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003019/0.6852, allocations: 299.7 kB / 1.246 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.6853, allocations: 81.67 kB / 1.246 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001959/0.6855, allocations: 345.9 kB / 1.246 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006182/0.6861, allocations: 305.8 kB / 1.246 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007935/0.6869, allocations: 476.5 kB / 1.247 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/0.6884, allocations: 0.7402 MB / 1.248 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.6884, allocations: 4 kB / 1.248 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00202/0.6904, allocations: 0.9654 MB / 1.249 GB, free: 3.082 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001842/0.6906, allocations: 174.8 kB / 1.249 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.6906, allocations: 4 kB / 1.249 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002515/0.6909, allocations: 24.84 kB / 1.249 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008479/0.6917, allocations: 199.7 kB / 1.249 GB, free: 2.648 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/0.6933, allocations: 1.297 MB / 1.25 GB, free: 1.219 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009967/0.6943, allocations: 135 kB / 1.25 GB, free: 1.086 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-05/0.6944, allocations: 43.97 kB / 1.25 GB, free: 1.043 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.006e-06/0.6944, allocations: 4 kB / 1.25 GB, free: 1.039 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001626/0.696, allocations: 0.8238 MB / 1.251 GB, free: 220 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.696, allocations: 0 / 1.251 GB, free: 220 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/0.696, allocations: 11.94 kB / 1.251 GB, free: 208 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007955/0.6968, allocations: 199.7 kB / 1.251 GB, free: 8 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.6969, allocations: 8 kB / 1.251 GB, free: 0 / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.6744/1.371, allocations: 112.6 kB / 1.251 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/1.371, allocations: 45.81 kB / 1.252 GB, free: 182.5 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.0008273/1.372, allocations: 423.2 kB / 1.252 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002637/1.373, allocations: 114.7 kB / 1.252 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002582/1.375, allocations: 1.076 MB / 1.253 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/1.375, allocations: 10.06 kB / 1.253 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/1.375, allocations: 5.234 kB / 1.253 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/1.375, allocations: 6.031 kB / 1.253 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004215/1.379, allocations: 2.382 MB / 1.255 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.844e-06/1.379, allocations: 1.312 kB / 1.255 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006821/1.38, allocations: 160.4 kB / 1.256 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001314/1.38, allocations: 29.92 kB / 1.256 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.888e-05/1.38, allocations: 25.14 kB / 1.256 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007342/1.381, allocations: 1.282 MB / 1.257 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/1.381, allocations: 1.75 kB / 1.257 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/1.383, allocations: 1.06 MB / 1.258 GB, free: 180.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006075/1.384, allocations: 331 kB / 1.258 GB, free: 180.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001442/1.384, allocations: 21.72 kB / 1.258 GB, free: 180.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008685/1.385, allocations: 94.28 kB / 1.258 GB, free: 180.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/1.385, allocations: 77.47 kB / 1.258 GB, free: 180.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-05/1.385, allocations: 41.34 kB / 1.258 GB, free: 180.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0009904/1.386, allocations: 0.6645 MB / 1.259 GB, free: 180 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.31e-07/1.386, allocations: 0 / 1.259 GB, free: 180 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001612/1.388, allocations: 0.6079 MB / 1.26 GB, free: 179.9 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.002453/1.39, allocations: 0.6537 MB / 1.26 GB, free: 179.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002909/1.393, allocations: 1.359 MB / 1.262 GB, free: 179.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/1.393, allocations: 0 / 1.262 GB, free: 179.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008126/1.394, allocations: 0.5317 MB / 1.262 GB, free: 179.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/1.396, allocations: 332 kB / 1.263 GB, free: 179.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004171/1.4, allocations: 2.76 MB / 1.265 GB, free: 178 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007871/1.401, allocations: 1.17 MB / 1.266 GB, free: 177.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001611/1.403, allocations: 419.5 kB / 1.267 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003009/1.403, allocations: 118.3 kB / 1.267 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of SimCode: time 9.42e-07/1.403, allocations: 3.938 kB / 1.267 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.0418/1.445, allocations: 16.54 MB / 1.283 GB, free: 173.3 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Sources.Examples.WindTurbine.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & ./Buildings_11_Buildings.Electrical.DC.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Sources_Examples_WindTurbine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches