Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001148/0.001148, allocations: 90.75 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.001286/0.001287, 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.455/1.455, allocations: 223.3 MB / 240 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.578/2.578, allocations: 390.9 MB / 0.666 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003838/0.0003839, allocations: 8 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8676/0.868, allocations: 142.4 MB / 0.9544 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.008638/0.8768, allocations: 6.157 MB / 0.9604 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.18/1.057, allocations: 138 MB / 1.095 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001692/1.059, allocations: 23.88 kB / 1.095 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001368/1.06, allocations: 250.4 kB / 1.095 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.003166/1.063, allocations: 0.611 MB / 1.096 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003137/1.066, allocations: 0.7926 MB / 1.097 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002857/1.069, allocations: 1.627 MB / 1.098 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001515/1.071, allocations: 0.8838 MB / 1.099 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007992/1.072, allocations: 481.9 kB / 1.1 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008636/1.072, allocations: 0.5677 MB / 1.1 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001084/1.073, allocations: 40 kB / 1.1 GB, free: 9.672 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001104/1.074, allocations: 415.5 kB / 1.101 GB, free: 9.266 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003055/1.074, allocations: 298.8 kB / 1.101 GB, free: 8.973 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002623/1.074, allocations: 256.9 kB / 1.101 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001668/1.076, allocations: 1.527 MB / 1.103 GB, free: 7.184 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/1.076, allocations: 4 kB / 1.103 GB, free: 7.18 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.663e-06/1.076, allocations: 0 / 1.103 GB, free: 7.18 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.781e-05/1.076, allocations: 4 kB / 1.103 GB, free: 7.176 MB / 0.8575 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.002908/1.079, allocations: 1.518 MB / 1.104 GB, free: 5.602 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/1.079, allocations: 8.031 kB / 1.104 GB, free: 5.594 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001302/1.08, allocations: 281.8 kB / 1.104 GB, free: 5.316 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/1.082, allocations: 0.9102 MB / 1.105 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.695e-05/1.082, allocations: 78.09 kB / 1.105 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/1.082, allocations: 107.9 kB / 1.106 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002005/1.084, allocations: 1.23 MB / 1.107 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/1.084, allocations: 3.938 kB / 1.107 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/1.084, allocations: 51.97 kB / 1.107 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-05/1.084, allocations: 58 kB / 1.107 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002141/1.086, allocations: 1.342 MB / 1.108 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006939/1.093, allocations: 4.52 MB / 1.113 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/1.095, allocations: 0.8947 MB / 1.113 GB, free: 11.76 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006864/1.096, allocations: 369.9 kB / 1.114 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 8.378e-05/1.096, allocations: 40.94 kB / 1.114 GB, free: 11.36 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008806/1.097, allocations: 0.5343 MB / 1.114 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=89): time 4.147e-06/1.097, allocations: 3.984 kB / 1.114 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of matching and sorting (n=89): time 0.002462/1.099, allocations: 1.22 MB / 1.116 GB, free: 9.543 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001557/1.099, allocations: 291.7 kB / 1.116 GB, free: 9.191 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00133/1.101, allocations: 0.9455 MB / 1.117 GB, free: 8.223 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 8.687e-05/1.101, allocations: 45.7 kB / 1.117 GB, free: 8.172 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004959/1.101, allocations: 0.5467 MB / 1.117 GB, free: 7.617 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002576/1.102, allocations: 291.8 kB / 1.118 GB, free: 7.328 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-05/1.102, allocations: 16 kB / 1.118 GB, free: 7.312 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001323/1.102, allocations: 349.9 kB / 1.118 GB, free: 6.965 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005491/1.102, allocations: 293.8 kB / 1.118 GB, free: 6.676 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007318/1.103, allocations: 476.5 kB / 1.119 GB, free: 6.16 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006408/1.104, allocations: 354.8 kB / 1.119 GB, free: 5.816 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/1.104, allocations: 0 / 1.119 GB, free: 5.816 MB / 0.8731 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.001689/1.105, allocations: 0.9618 MB / 1.12 GB, free: 4.844 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/1.106, allocations: 170.5 kB / 1.12 GB, free: 4.641 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/1.106, allocations: 0 / 1.12 GB, free: 4.641 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002058/1.106, allocations: 36.77 kB / 1.12 GB, free: 4.602 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007616/1.107, allocations: 199.7 kB / 1.12 GB, free: 4.406 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001166/1.108, allocations: 1.295 MB / 1.122 GB, free: 2.977 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008309/1.109, allocations: 137.1 kB / 1.122 GB, free: 2.844 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.317e-05/1.109, allocations: 39.98 kB / 1.122 GB, free: 2.805 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 7.274e-06/1.109, allocations: 4 kB / 1.122 GB, free: 2.801 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001477/1.11, allocations: 0.816 MB / 1.123 GB, free: 1.984 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/1.11, allocations: 4 kB / 1.123 GB, free: 1.98 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/1.11, allocations: 11.95 kB / 1.123 GB, free: 1.969 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007698/1.111, allocations: 195.7 kB / 1.123 GB, free: 1.777 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.742e-05/1.111, allocations: 11.98 kB / 1.123 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007446/1.112, allocations: 115.4 kB / 1.123 GB, free: 1.652 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.229e-05/1.112, allocations: 43.97 kB / 1.123 GB, free: 1.609 MB / 0.8731 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.0006778/1.112, allocations: 426.5 kB / 1.123 GB, free: 1.184 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001824/1.113, allocations: 110.7 kB / 1.123 GB, free: 1.074 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002187/1.115, allocations: 1.076 MB / 1.125 GB, free: 15.98 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/1.115, allocations: 12 kB / 1.125 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/1.115, allocations: 0 / 1.125 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/1.115, allocations: 3.984 kB / 1.125 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003596/1.119, allocations: 2.377 MB / 1.127 GB, free: 13.5 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/1.119, allocations: 0 / 1.127 GB, free: 13.5 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006477/1.119, allocations: 163.8 kB / 1.127 GB, free: 13.34 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001206/1.119, allocations: 24.83 kB / 1.127 GB, free: 13.32 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.41e-05/1.119, allocations: 35.98 kB / 1.127 GB, free: 13.28 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/1.12, allocations: 1.273 MB / 1.128 GB, free: 11.88 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.12, allocations: 0 / 1.128 GB, free: 11.88 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001809/1.122, allocations: 1.046 MB / 1.129 GB, free: 10.8 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005325/1.123, allocations: 335.2 kB / 1.13 GB, free: 10.45 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/1.123, allocations: 24 kB / 1.13 GB, free: 10.43 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00071/1.124, allocations: 87.92 kB / 1.13 GB, free: 10.34 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/1.124, allocations: 84.78 kB / 1.13 GB, free: 10.26 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.559e-05/1.124, allocations: 35.92 kB / 1.13 GB, free: 10.22 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001008/1.125, allocations: 0.6652 MB / 1.131 GB, free: 9.547 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.61e-07/1.125, allocations: 0 / 1.131 GB, free: 9.547 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.00183/1.127, allocations: 0.5763 MB / 1.131 GB, free: 8.969 MB / 0.8887 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.001641/1.129, allocations: 0.662 MB / 1.132 GB, free: 8.504 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002678/1.131, allocations: 1.345 MB / 1.133 GB, free: 7.145 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/1.131, allocations: 0 / 1.133 GB, free: 7.145 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0008565/1.132, allocations: 0.5237 MB / 1.134 GB, free: 6.613 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/1.134, allocations: 319.3 kB / 1.134 GB, free: 6.309 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004655/1.138, allocations: 2.634 MB / 1.136 GB, free: 3.633 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/1.139, allocations: 1.166 MB / 1.138 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001441/1.141, allocations: 416.4 kB / 1.138 GB, free: 2.027 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003113/1.141, allocations: 115.4 kB / 1.138 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of SimCode: time 1.012e-06/1.141, allocations: 0 / 1.138 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of Templates: time 0.02854/1.17, allocations: 15.63 MB / 1.153 GB, free: 2.449 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & ./Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_WindTurbine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches