Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0009884/0.0009883, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.000905/0.0009051, allocations: 172.7 kB / 15.95 MB, free: 208 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.457/1.457, allocations: 223.2 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.674/2.674, allocations: 437.7 MB / 0.7117 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000432/0.0004321, allocations: 8 kB / 0.8722 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8006/0.801, allocations: 153.8 MB / 1.022 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.008196/0.8093, allocations: 6.624 MB / 1.029 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1704/0.9797, allocations: 138 MB / 1.164 GB, free: 15.04 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001407/0.9812, allocations: 23.88 kB / 1.164 GB, free: 15.02 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0008908/0.9821, allocations: 258.3 kB / 1.164 GB, free: 14.76 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.00224/0.9843, allocations: 0.6571 MB / 1.165 GB, free: 14.11 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.00256/0.9869, allocations: 0.7883 MB / 1.165 GB, free: 13.32 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002334/0.9892, allocations: 1.712 MB / 1.167 GB, free: 11.61 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001491/0.9907, allocations: 0.8646 MB / 1.168 GB, free: 10.7 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008817/0.9916, allocations: 481.9 kB / 1.168 GB, free: 10.23 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009989/0.9926, allocations: 0.5811 MB / 1.169 GB, free: 9.645 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001429/0.9928, allocations: 40 kB / 1.169 GB, free: 9.605 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001263/0.9941, allocations: 411.5 kB / 1.169 GB, free: 9.203 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0003499/0.9944, allocations: 302.8 kB / 1.17 GB, free: 8.906 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002981/0.9947, allocations: 265 kB / 1.17 GB, free: 8.641 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.001686/0.9964, allocations: 1.543 MB / 1.171 GB, free: 7.094 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.9965, allocations: 0 / 1.171 GB, free: 7.094 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.434e-06/0.9965, allocations: 0 / 1.171 GB, free: 7.094 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.394e-05/0.9965, allocations: 0 / 1.171 GB, free: 7.094 MB / 0.92 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.002848/0.9993, allocations: 1.542 MB / 1.173 GB, free: 5.496 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.9994, allocations: 8.031 kB / 1.173 GB, free: 5.488 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0012/1.001, allocations: 285.9 kB / 1.173 GB, free: 5.207 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001382/1.002, allocations: 0.9062 MB / 1.174 GB, free: 4.258 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.402e-05/1.002, allocations: 86.02 kB / 1.174 GB, free: 4.172 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/1.002, allocations: 100 kB / 1.174 GB, free: 4.074 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/1.004, allocations: 1.23 MB / 1.175 GB, free: 2.762 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.694e-05/1.004, allocations: 3.938 kB / 1.175 GB, free: 2.758 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/1.005, allocations: 44 kB / 1.175 GB, free: 2.715 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.591e-05/1.005, allocations: 61.98 kB / 1.175 GB, free: 2.652 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002135/1.007, allocations: 1.346 MB / 1.177 GB, free: 1.297 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00646/1.013, allocations: 4.699 MB / 1.181 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/1.015, allocations: 0.8908 MB / 1.182 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006506/1.016, allocations: 375.6 kB / 1.183 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 8.236e-05/1.016, allocations: 32.94 kB / 1.183 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008764/1.016, allocations: 0.5305 MB / 1.183 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=89): time 3.967e-06/1.017, allocations: 4 kB / 1.183 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of matching and sorting (n=89): time 0.002335/1.019, allocations: 1.216 MB / 1.184 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/1.019, allocations: 295.7 kB / 1.185 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/1.02, allocations: 0.9494 MB / 1.186 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.64e-05/1.02, allocations: 41.7 kB / 1.186 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004519/1.021, allocations: 0.5505 MB / 1.186 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002741/1.021, allocations: 295.8 kB / 1.186 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/1.021, allocations: 23.94 kB / 1.186 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001393/1.021, allocations: 341.9 kB / 1.187 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005417/1.022, allocations: 305.8 kB / 1.187 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006814/1.022, allocations: 468.5 kB / 1.188 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006183/1.023, allocations: 366.8 kB / 1.188 GB, free: 5.473 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/1.023, allocations: 0 / 1.188 GB, free: 5.473 MB / 0.9356 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.001613/1.025, allocations: 0.9539 MB / 1.189 GB, free: 4.508 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001279/1.025, allocations: 170.6 kB / 1.189 GB, free: 4.301 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/1.025, allocations: 0 / 1.189 GB, free: 4.301 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002245/1.025, allocations: 40.78 kB / 1.189 GB, free: 4.258 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007425/1.026, allocations: 199.7 kB / 1.189 GB, free: 4.062 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/1.027, allocations: 1.292 MB / 1.19 GB, free: 2.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008018/1.028, allocations: 131.7 kB / 1.191 GB, free: 2.512 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.612e-05/1.028, allocations: 43.97 kB / 1.191 GB, free: 2.469 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.035e-06/1.028, allocations: 6.188 kB / 1.191 GB, free: 2.465 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001411/1.029, allocations: 0.812 MB / 1.191 GB, free: 1.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/1.029, allocations: 4 kB / 1.191 GB, free: 1.648 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.126e-06/1.029, allocations: 8 kB / 1.191 GB, free: 1.641 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007247/1.03, allocations: 203.7 kB / 1.192 GB, free: 1.441 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/1.03, allocations: 7.938 kB / 1.192 GB, free: 1.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006633/1.031, allocations: 128.2 kB / 1.192 GB, free: 1.309 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.874e-05/1.031, allocations: 39.98 kB / 1.192 GB, free: 1.27 MB / 0.9356 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 ($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,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * 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 (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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006343/1.032, allocations: 426.6 kB / 1.192 GB, free: 0.8438 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/1.032, allocations: 114.6 kB / 1.192 GB, free: 0.7305 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/1.034, allocations: 1.068 MB / 1.193 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/1.034, allocations: 15.98 kB / 1.193 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/1.034, allocations: 0 / 1.193 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/1.034, allocations: 3.984 kB / 1.193 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003186/1.037, allocations: 2.387 MB / 1.196 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/1.037, allocations: 4 kB / 1.196 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005901/1.038, allocations: 159.8 kB / 1.196 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001136/1.038, allocations: 32.84 kB / 1.196 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.585e-05/1.038, allocations: 27.94 kB / 1.196 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008783/1.039, allocations: 1.276 MB / 1.197 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/1.039, allocations: 0 / 1.197 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/1.04, allocations: 1.058 MB / 1.198 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004086/1.041, allocations: 335.2 kB / 1.199 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/1.041, allocations: 27.98 kB / 1.199 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000648/1.041, allocations: 82.75 kB / 1.199 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/1.042, allocations: 80.83 kB / 1.199 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.05e-05/1.042, allocations: 35.97 kB / 1.199 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0008562/1.042, allocations: 0.6574 MB / 1.199 GB, free: 9.203 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/1.042, allocations: 4 kB / 1.199 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001609/1.044, allocations: 0.6114 MB / 1.2 GB, free: 8.586 MB / 0.9512 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 (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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001521/1.046, allocations: 0.6477 MB / 1.201 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002392/1.048, allocations: 1.337 MB / 1.202 GB, free: 6.785 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/1.048, allocations: 4 kB / 1.202 GB, free: 6.781 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007876/1.049, allocations: 0.5324 MB / 1.202 GB, free: 6.238 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/1.05, allocations: 322.3 kB / 1.203 GB, free: 5.93 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004197/1.054, allocations: 2.648 MB / 1.205 GB, free: 3.242 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007886/1.055, allocations: 1.162 MB / 1.206 GB, free: 2.051 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001309/1.057, allocations: 412.4 kB / 1.207 GB, free: 1.645 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/1.057, allocations: 127.4 kB / 1.207 GB, free: 1.52 MB / 0.9512 GB Notification: Performance of SimCode: time 6.81e-07/1.057, allocations: 0 / 1.207 GB, free: 1.52 MB / 0.9512 GB Notification: Performance of Templates: time 0.02963/1.086, allocations: 16.06 MB / 1.223 GB, free: 1.645 MB / 0.9669 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Sources.Examples.WindTurbine.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & ./Buildings_10_Buildings.Electrical.DC.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Sources_Examples_WindTurbine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches