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.001488/0.001488, allocations: 92.7 kB / 16.02 MB, free: 80 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.001565/0.001565, allocations: 183.8 kB / 16.92 MB, free: 6.922 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.37/1.37, allocations: 223.3 MB / 241 MB, free: 5.336 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.621/2.621, allocations: 437.8 MB / 0.7128 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003931/0.0003935, allocations: 11.98 kB / 0.8735 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7802/0.7806, allocations: 153.8 MB / 1.024 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.008151/0.7888, allocations: 6.997 MB / 1.031 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1687/0.9575, allocations: 148 MB / 1.175 GB, free: 4.355 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001467/0.9591, allocations: 19.88 kB / 1.175 GB, free: 4.336 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0008645/0.9599, allocations: 262.3 kB / 1.175 GB, free: 4.078 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.002535/0.9625, allocations: 0.7117 MB / 1.176 GB, free: 3.367 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002469/0.965, allocations: 0.9054 MB / 1.177 GB, free: 2.473 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002347/0.9673, allocations: 1.939 MB / 1.179 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001621/0.969, allocations: 1.131 MB / 1.18 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007603/0.9697, allocations: 489.7 kB / 1.18 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008732/0.9706, allocations: 0.6026 MB / 1.181 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001136/0.9707, allocations: 40 kB / 1.181 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001176/0.9719, allocations: 0.5811 MB / 1.182 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0003207/0.9723, allocations: 310.7 kB / 1.182 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0005923/0.9729, allocations: 0.6229 MB / 1.182 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001668/0.9745, allocations: 1.555 MB / 1.184 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.9746, allocations: 0 / 1.184 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.316e-06/0.9746, allocations: 4 kB / 1.184 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.561e-05/0.9746, allocations: 0 / 1.184 GB, free: 11.12 MB / 0.9356 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.002753/0.9773, allocations: 1.511 MB / 1.185 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.9774, allocations: 12.03 kB / 1.185 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001281/0.9787, allocations: 278.8 kB / 1.186 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00137/0.9801, allocations: 0.9529 MB / 1.187 GB, free: 8.277 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.168e-05/0.9802, allocations: 78.09 kB / 1.187 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001701/0.9803, allocations: 104 kB / 1.187 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002102/0.9824, allocations: 1.243 MB / 1.188 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.555e-05/0.9825, allocations: 7.922 kB / 1.188 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.9826, allocations: 44 kB / 1.188 GB, free: 6.723 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.23e-05/0.9827, allocations: 58 kB / 1.188 GB, free: 6.664 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002217/0.9849, allocations: 1.35 MB / 1.189 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006572/0.9915, allocations: 4.708 MB / 1.194 GB, free: 344 kB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001825/0.9933, allocations: 0.8947 MB / 1.195 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007214/0.9941, allocations: 375.7 kB / 1.195 GB, free: 15.06 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 7.507e-05/0.9942, allocations: 28.95 kB / 1.195 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009313/0.9951, allocations: 0.5499 MB / 1.196 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=89): time 2.755e-06/0.9951, allocations: 0 / 1.196 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of matching and sorting (n=89): time 0.0026/0.9977, allocations: 1.22 MB / 1.197 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/0.9979, allocations: 299.7 kB / 1.197 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001288/0.9992, allocations: 0.9533 MB / 1.198 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 8.118e-05/0.9993, allocations: 45.7 kB / 1.198 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004797/0.9998, allocations: 0.5466 MB / 1.199 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002493/1, allocations: 299.8 kB / 1.199 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/1, allocations: 77.67 kB / 1.199 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001561/1, allocations: 341.9 kB / 1.2 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005946/1.001, allocations: 305.8 kB / 1.2 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007461/1.002, allocations: 472.5 kB / 1.2 GB, free: 9.738 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/1.003, allocations: 0.7441 MB / 1.201 GB, free: 8.961 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/1.003, allocations: 7.938 kB / 1.201 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.001861/1.005, allocations: 0.9618 MB / 1.202 GB, free: 7.977 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.00012/1.005, allocations: 174.5 kB / 1.202 GB, free: 7.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/1.005, allocations: 0 / 1.202 GB, free: 7.77 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002106/1.005, allocations: 28.84 kB / 1.202 GB, free: 7.738 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008024/1.006, allocations: 203.7 kB / 1.202 GB, free: 7.539 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/1.007, allocations: 1.29 MB / 1.204 GB, free: 6.113 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009453/1.008, allocations: 127.9 kB / 1.204 GB, free: 5.988 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.744e-05/1.008, allocations: 47.97 kB / 1.204 GB, free: 5.941 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.202e-06/1.008, allocations: 0 / 1.204 GB, free: 5.941 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001512/1.01, allocations: 0.8277 MB / 1.205 GB, free: 5.117 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/1.01, allocations: 7.984 kB / 1.205 GB, free: 5.109 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.968e-06/1.01, allocations: 8 kB / 1.205 GB, free: 5.102 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007597/1.011, allocations: 203.6 kB / 1.205 GB, free: 4.902 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/1.011, allocations: 8 kB / 1.205 GB, free: 4.895 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008259/1.012, allocations: 130.1 kB / 1.205 GB, free: 4.77 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.941e-05/1.012, allocations: 39.98 kB / 1.205 GB, free: 4.73 MB / 0.9512 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.0006852/1.012, allocations: 438.5 kB / 1.205 GB, free: 4.293 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/1.013, allocations: 110.7 kB / 1.205 GB, free: 4.184 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002113/1.015, allocations: 1.072 MB / 1.207 GB, free: 3.09 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/1.015, allocations: 8 kB / 1.207 GB, free: 3.082 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/1.015, allocations: 4 kB / 1.207 GB, free: 3.078 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/1.015, allocations: 7.922 kB / 1.207 GB, free: 3.07 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003591/1.018, allocations: 2.391 MB / 1.209 GB, free: 0.5977 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/1.018, allocations: 3.984 kB / 1.209 GB, free: 0.5938 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006365/1.019, allocations: 163.7 kB / 1.209 GB, free: 444 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001192/1.019, allocations: 28.84 kB / 1.209 GB, free: 412 kB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.617e-05/1.019, allocations: 23.98 kB / 1.209 GB, free: 388 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/1.02, allocations: 1.28 MB / 1.21 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/1.02, allocations: 4.031 kB / 1.21 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/1.022, allocations: 1.058 MB / 1.211 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004982/1.023, allocations: 331.3 kB / 1.212 GB, free: 13.53 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/1.023, allocations: 23.98 kB / 1.212 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007791/1.023, allocations: 83.94 kB / 1.212 GB, free: 13.42 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/1.024, allocations: 76.83 kB / 1.212 GB, free: 13.35 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.115e-05/1.024, allocations: 39.97 kB / 1.212 GB, free: 13.31 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0009758/1.025, allocations: 0.669 MB / 1.213 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.9e-07/1.025, allocations: 4 kB / 1.213 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001562/1.026, allocations: 0.6036 MB / 1.213 GB, free: 12.02 MB / 0.9669 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.001547/1.028, allocations: 0.6545 MB / 1.214 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002623/1.03, allocations: 1.353 MB / 1.215 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.03, allocations: 0 / 1.215 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0008319/1.031, allocations: 0.5282 MB / 1.216 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001763/1.033, allocations: 331.2 kB / 1.216 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/1.038, allocations: 2.821 MB / 1.219 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000854/1.038, allocations: 1.162 MB / 1.22 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004322/1.039, allocations: 139.4 kB / 1.22 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of SimCode: time 8.22e-07/1.039, allocations: 0 / 1.22 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of Templates: time 0.03564/1.075, allocations: 22.93 MB / 1.242 GB, free: 14.29 MB / 0.9981 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/jenkins1/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