Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008267/0.0008266, allocations: 98.72 kB / 16.02 MB, free: 76 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.0009783/0.0009782, allocations: 185 kB / 16.92 MB, free: 6.895 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.41/1.41, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.737/2.737, allocations: 462.7 MB / 0.7371 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003508, allocations: 8.812 kB / 0.9034 GB, free: 36.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.2999, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.01158/0.3115, allocations: 7.303 MB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1583/0.4699, allocations: 148.4 MB / 1.211 GB, free: 8.676 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00127/0.4712, allocations: 27.88 kB / 1.211 GB, free: 8.648 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.4723, allocations: 274.2 kB / 1.212 GB, free: 8.379 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002766/0.4751, allocations: 0.7843 MB / 1.212 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002705/0.4778, allocations: 0.9764 MB / 1.213 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002562/0.4804, allocations: 2.033 MB / 1.215 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002813/0.4832, allocations: 1.542 MB / 1.217 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009285/0.4841, allocations: 0.5094 MB / 1.217 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00115/0.4853, allocations: 0.6415 MB / 1.218 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001807/0.4855, allocations: 40 kB / 1.218 GB, free: 1.773 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001272/0.4868, allocations: 0.6592 MB / 1.219 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000327/0.4871, allocations: 342.6 kB / 1.219 GB, free: 0.7773 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0006559/0.4878, allocations: 0.6423 MB / 1.22 GB, free: 128 kB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001732/0.4895, allocations: 1.718 MB / 1.221 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.4895, allocations: 0 / 1.221 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4895, allocations: 0 / 1.221 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.92e-05/0.4896, allocations: 4 kB / 1.221 GB, free: 14.4 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.002834/0.4924, allocations: 1.577 MB / 1.223 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.4925, allocations: 11.97 kB / 1.223 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001413/0.4939, allocations: 298.8 kB / 1.223 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001452/0.4954, allocations: 0.9916 MB / 1.224 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.5e-05/0.4954, allocations: 78.23 kB / 1.224 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.4956, allocations: 119.9 kB / 1.224 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/0.4979, allocations: 1.39 MB / 1.226 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.4979, allocations: 4 kB / 1.226 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.498, allocations: 48 kB / 1.226 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.683e-05/0.4981, allocations: 66.05 kB / 1.226 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002372/0.5005, allocations: 1.526 MB / 1.227 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006407/0.5069, allocations: 5.046 MB / 1.232 GB, free: 2.766 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001978/0.5089, allocations: 1.107 MB / 1.233 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007548/0.5097, allocations: 472.4 kB / 1.234 GB, free: 1.18 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000212/0.5099, allocations: 122 kB / 1.234 GB, free: 1.039 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00107/0.511, allocations: 0.6585 MB / 1.234 GB, free: 368 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=103): time 2.655e-06/0.511, allocations: 4 kB / 1.234 GB, free: 364 kB / 0.9825 GB Notification: Performance of matching and sorting (n=104): time 0.00548/0.5165, allocations: 2.278 MB / 1.237 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.5167, allocations: 240.3 kB / 1.237 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/0.5179, allocations: 0.9612 MB / 1.238 GB, free: 12.77 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.518, allocations: 45.7 kB / 1.238 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004641/0.5185, allocations: 0.5585 MB / 1.238 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003324/0.5189, allocations: 347 kB / 1.239 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.519, allocations: 93.66 kB / 1.239 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.5191, allocations: 345.9 kB / 1.239 GB, free: 11.37 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007356/0.5199, allocations: 402.4 kB / 1.24 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008817/0.5208, allocations: 0.5941 MB / 1.24 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.5223, allocations: 0.98 MB / 1.241 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.5223, allocations: 0 / 1.241 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.002917/0.5253, allocations: 1.364 MB / 1.242 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.5254, allocations: 176.4 kB / 1.243 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.5254, allocations: 4.109 kB / 1.243 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.5267, allocations: 272.4 kB / 1.243 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009396/0.5276, allocations: 235.6 kB / 1.243 GB, free: 7.207 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002959/0.5306, allocations: 1.975 MB / 1.245 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.5318, allocations: 143.2 kB / 1.245 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.491e-05/0.5319, allocations: 48.16 kB / 1.245 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.838e-06/0.5319, allocations: 6.188 kB / 1.245 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001793/0.5337, allocations: 1.023 MB / 1.246 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.5337, allocations: 0 / 1.246 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.5337, allocations: 11.98 kB / 1.246 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009109/0.5347, allocations: 235.7 kB / 1.246 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/0.5347, allocations: 15.92 kB / 1.246 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009292/0.5356, allocations: 116.2 kB / 1.247 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.013e-05/0.5357, allocations: 47.98 kB / 1.247 GB, free: 3.457 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (128): * Single equations (assignments): 127 * 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 {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0007346/0.5364, allocations: 446.5 kB / 1.247 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002007/0.5367, allocations: 118.6 kB / 1.247 GB, free: 2.895 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003065/0.5397, allocations: 1.479 MB / 1.249 GB, free: 1.402 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.5398, allocations: 12 kB / 1.249 GB, free: 1.391 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.5398, allocations: 15.98 kB / 1.249 GB, free: 1.375 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.5398, allocations: 3.984 kB / 1.249 GB, free: 1.371 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.598/1.138, allocations: 2.843 MB / 1.251 GB, free: 188 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/1.138, allocations: 2.719 kB / 1.251 GB, free: 188 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000826/1.139, allocations: 198.4 kB / 1.252 GB, free: 188 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008828/1.14, allocations: 217.3 kB / 1.252 GB, free: 188 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-05/1.14, allocations: 30.2 kB / 1.252 GB, free: 188 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/1.142, allocations: 1.83 MB / 1.254 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/1.142, allocations: 6.75 kB / 1.254 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002722/1.144, allocations: 1.495 MB / 1.255 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000546/1.145, allocations: 372.2 kB / 1.255 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/1.145, allocations: 27.38 kB / 1.256 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000912/1.146, allocations: 114.9 kB / 1.256 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/1.146, allocations: 81.95 kB / 1.256 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.666e-05/1.146, allocations: 50.84 kB / 1.256 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008686/1.147, allocations: 0.6773 MB / 1.256 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.6e-07/1.147, allocations: 0 / 1.256 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001542/1.149, allocations: 0.5323 MB / 1.257 GB, free: 186.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 108 * 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 {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001423/1.15, allocations: 0.6607 MB / 1.258 GB, free: 186.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002856/1.153, allocations: 1.749 MB / 1.259 GB, free: 186 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/1.153, allocations: 0 / 1.259 GB, free: 186 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001099/1.154, allocations: 0.6971 MB / 1.26 GB, free: 185.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002056/1.156, allocations: 345.2 kB / 1.26 GB, free: 185.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004306/1.16, allocations: 3.139 MB / 1.263 GB, free: 184.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008431/1.161, allocations: 1.22 MB / 1.265 GB, free: 183.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005401/1.162, allocations: 140.9 kB / 1.265 GB, free: 183.6 MB / 0.9981 GB Notification: Performance of SimCode: time 6.21e-07/1.162, allocations: 0.5938 kB / 1.265 GB, free: 183.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.04056/1.202, allocations: 24.98 MB / 1.289 GB, free: 175 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches