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.001213/0.001212, allocations: 99.86 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.00151/0.00151, 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.464/1.464, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.766/2.766, allocations: 436.5 MB / 0.7104 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005457/0.0005458, allocations: 11.98 kB / 0.8708 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8681/0.8687, allocations: 153.7 MB / 1.021 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.008611/0.8773, allocations: 6.282 MB / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1688/1.046, allocations: 129.1 MB / 1.153 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001418/1.048, allocations: 19.88 kB / 1.153 GB, free: 9.34 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.00115/1.049, allocations: 206.7 kB / 1.153 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.003548/1.052, allocations: 0.7233 MB / 1.154 GB, free: 8.414 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003302/1.056, allocations: 0.8818 MB / 1.155 GB, free: 7.543 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.002657/1.058, allocations: 1.107 MB / 1.156 GB, free: 6.434 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002589/1.061, allocations: 1.295 MB / 1.157 GB, free: 5.086 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008188/1.062, allocations: 478 kB / 1.158 GB, free: 4.617 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006996/1.062, allocations: 0.5172 MB / 1.158 GB, free: 4.098 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 9.906e-05/1.063, allocations: 40 kB / 1.158 GB, free: 4.059 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001105/1.064, allocations: 439.4 kB / 1.159 GB, free: 3.629 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002965/1.064, allocations: 314.9 kB / 1.159 GB, free: 3.32 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002509/1.064, allocations: 268.9 kB / 1.159 GB, free: 3.051 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001602/1.066, allocations: 1.675 MB / 1.161 GB, free: 1.371 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/1.066, allocations: 0 / 1.161 GB, free: 1.371 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.533e-06/1.066, allocations: 4 kB / 1.161 GB, free: 1.367 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.334e-05/1.066, allocations: 0 / 1.161 GB, free: 1.367 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.002906/1.069, allocations: 1.591 MB / 1.162 GB, free: 15.72 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/1.069, allocations: 15.98 kB / 1.162 GB, free: 15.71 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001401/1.07, allocations: 305.8 kB / 1.163 GB, free: 15.41 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/1.072, allocations: 0.9608 MB / 1.164 GB, free: 14.4 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.687e-05/1.072, allocations: 82.23 kB / 1.164 GB, free: 14.32 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001392/1.072, allocations: 116 kB / 1.164 GB, free: 14.21 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002052/1.074, allocations: 1.371 MB / 1.165 GB, free: 12.75 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/1.074, allocations: 3.938 kB / 1.165 GB, free: 12.74 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/1.074, allocations: 48 kB / 1.165 GB, free: 12.7 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.888e-05/1.074, allocations: 70.05 kB / 1.165 GB, free: 12.62 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002234/1.077, allocations: 1.511 MB / 1.167 GB, free: 11.11 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006294/1.083, allocations: 4.889 MB / 1.171 GB, free: 5.965 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001813/1.085, allocations: 1.105 MB / 1.173 GB, free: 4.848 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001943/1.085, allocations: 118 kB / 1.173 GB, free: 4.715 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000992/1.086, allocations: 0.6584 MB / 1.173 GB, free: 4.035 MB / 0.92 GB Notification: Performance of pre-optimization done (n=103): time 2.705e-06/1.086, allocations: 0 / 1.173 GB, free: 4.035 MB / 0.92 GB Notification: Performance of matching and sorting (n=104): time 0.005045/1.091, allocations: 2.263 MB / 1.175 GB, free: 1.738 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/1.091, allocations: 252.5 kB / 1.176 GB, free: 1.438 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/1.092, allocations: 0.942 MB / 1.177 GB, free: 484 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 8.896e-05/1.092, allocations: 49.7 kB / 1.177 GB, free: 428 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004724/1.093, allocations: 0.5663 MB / 1.177 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002768/1.093, allocations: 343 kB / 1.178 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.988e-05/1.093, allocations: 20 kB / 1.178 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001371/1.093, allocations: 338 kB / 1.178 GB, free: 15.15 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000637/1.094, allocations: 393.7 kB / 1.178 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007962/1.095, allocations: 0.5663 MB / 1.179 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007473/1.096, allocations: 466.8 kB / 1.179 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.096, allocations: 4 kB / 1.179 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002512/1.098, allocations: 1.289 MB / 1.181 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004643/1.099, allocations: 1.229 MB / 1.182 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/1.099, allocations: 4 kB / 1.182 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/1.1, allocations: 268.5 kB / 1.182 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008931/1.101, allocations: 227.6 kB / 1.182 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002821/1.104, allocations: 2.048 MB / 1.184 GB, free: 8.387 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/1.105, allocations: 120.9 kB / 1.184 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.726e-05/1.105, allocations: 43.97 kB / 1.184 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/1.105, allocations: 6.031 kB / 1.184 GB, free: 8.223 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001596/1.106, allocations: 0.9683 MB / 1.185 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/1.106, allocations: 0 / 1.185 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.868e-06/1.106, allocations: 8 kB / 1.185 GB, free: 7.242 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008398/1.107, allocations: 231.6 kB / 1.186 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/1.107, allocations: 8 kB / 1.186 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008968/1.108, allocations: 123.3 kB / 1.186 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.921e-05/1.108, allocations: 39.98 kB / 1.186 GB, free: 6.848 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (120): * Single equations (assignments): 119 * 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 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0008076/1.109, allocations: 436.8 kB / 1.186 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/1.109, allocations: 118.6 kB / 1.186 GB, free: 6.293 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002824/1.112, allocations: 1.486 MB / 1.188 GB, free: 4.793 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/1.112, allocations: 19.94 kB / 1.188 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/1.112, allocations: 0 / 1.188 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/1.112, allocations: 3.984 kB / 1.188 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004376/1.116, allocations: 2.851 MB / 1.191 GB, free: 1.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/1.117, allocations: 7.938 kB / 1.191 GB, free: 1.832 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007622/1.117, allocations: 195.9 kB / 1.191 GB, free: 1.641 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007946/1.118, allocations: 212.6 kB / 1.191 GB, free: 1.43 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.038e-05/1.118, allocations: 35.97 kB / 1.191 GB, free: 1.395 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00209/1.12, allocations: 1.87 MB / 1.193 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/1.12, allocations: 3.953 kB / 1.193 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002777/1.123, allocations: 1.583 MB / 1.194 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006741/1.124, allocations: 367.1 kB / 1.195 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001514/1.124, allocations: 24 kB / 1.195 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008563/1.125, allocations: 107.9 kB / 1.195 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/1.125, allocations: 80.88 kB / 1.195 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.244e-05/1.125, allocations: 47.92 kB / 1.195 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0009928/1.126, allocations: 0.6733 MB / 1.196 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.71e-07/1.126, allocations: 0 / 1.196 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001742/1.128, allocations: 0.5038 MB / 1.196 GB, free: 11.9 MB / 0.9512 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 (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 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001533/1.129, allocations: 0.6577 MB / 1.197 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002963/1.132, allocations: 1.665 MB / 1.198 GB, free: 9.766 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/1.132, allocations: 9 kB / 1.198 GB, free: 9.758 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001094/1.133, allocations: 0.6993 MB / 1.199 GB, free: 9.047 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/1.135, allocations: 306 kB / 1.199 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004183/1.139, allocations: 2.944 MB / 1.202 GB, free: 5.762 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008481/1.14, allocations: 1.25 MB / 1.203 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001385/1.141, allocations: 468.9 kB / 1.204 GB, free: 4.023 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003131/1.142, allocations: 131.4 kB / 1.204 GB, free: 3.895 MB / 0.9512 GB Notification: Performance of SimCode: time 3.867e-06/1.142, allocations: 0 / 1.204 GB, free: 3.895 MB / 0.9512 GB Notification: Performance of Templates: time 0.02913/1.171, allocations: 18.08 MB / 1.222 GB, free: 1.977 MB / 0.9669 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","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches