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.0008696/0.0008699, allocations: 98.56 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.001124/0.001124, allocations: 184 kB / 16.92 MB, free: 6.918 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.424/1.424, allocations: 223.3 MB / 241 MB, free: 5.344 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.407/2.407, allocations: 390.9 MB / 0.667 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004055/0.0004055, allocations: 12 kB / 0.8166 GB, free: 13.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7541/0.7545, allocations: 142.4 MB / 0.9557 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.007844/0.7624, allocations: 6.49 MB / 0.962 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1781/0.9405, allocations: 147.9 MB / 1.106 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001465/0.942, allocations: 23.88 kB / 1.107 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008793/0.9429, allocations: 258.4 kB / 1.107 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002425/0.9454, allocations: 0.6633 MB / 1.107 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002539/0.9479, allocations: 0.9037 MB / 1.108 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002558/0.9505, allocations: 1.858 MB / 1.11 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002184/0.9527, allocations: 1.162 MB / 1.111 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001015/0.9537, allocations: 481.7 kB / 1.112 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001241/0.955, allocations: 0.587 MB / 1.112 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0003134/0.9553, allocations: 44 kB / 1.112 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001619/0.9569, allocations: 0.5734 MB / 1.113 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0005354/0.9575, allocations: 310.7 kB / 1.113 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001091/0.9586, allocations: 0.6072 MB / 1.114 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002273/0.9609, allocations: 1.531 MB / 1.115 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.9609, allocations: 0 / 1.115 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.946e-06/0.9609, allocations: 0 / 1.115 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.064e-05/0.961, allocations: 0 / 1.115 GB, free: 11.37 MB / 0.8731 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.00364/0.9646, allocations: 1.518 MB / 1.117 GB, free: 9.793 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.9647, allocations: 8.031 kB / 1.117 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001616/0.9663, allocations: 286.7 kB / 1.117 GB, free: 9.504 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001771/0.9681, allocations: 0.9452 MB / 1.118 GB, free: 8.516 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.716e-05/0.9682, allocations: 78.09 kB / 1.118 GB, free: 8.438 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.9684, allocations: 104 kB / 1.118 GB, free: 8.336 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00216/0.9705, allocations: 1.237 MB / 1.119 GB, free: 7.016 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.9706, allocations: 0 / 1.119 GB, free: 7.016 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/0.9707, allocations: 44 kB / 1.119 GB, free: 6.973 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.899e-05/0.9708, allocations: 61.98 kB / 1.119 GB, free: 6.91 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002114/0.9729, allocations: 1.354 MB / 1.121 GB, free: 5.547 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007146/0.98, allocations: 4.543 MB / 1.125 GB, free: 0.7812 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001859/0.9819, allocations: 0.8887 MB / 1.126 GB, free: 15.89 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007457/0.9827, allocations: 373.2 kB / 1.126 GB, free: 15.52 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 9.111e-05/0.9828, allocations: 36.94 kB / 1.126 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000985/0.9838, allocations: 0.5344 MB / 1.127 GB, free: 14.92 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=89): time 3.426e-06/0.9838, allocations: 0 / 1.127 GB, free: 14.92 MB / 0.8887 GB Notification: Performance of matching and sorting (n=89): time 0.002686/0.9865, allocations: 1.227 MB / 1.128 GB, free: 13.67 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001739/0.9867, allocations: 299.7 kB / 1.128 GB, free: 13.31 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001653/0.9884, allocations: 0.9572 MB / 1.129 GB, free: 12.33 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.9885, allocations: 45.7 kB / 1.129 GB, free: 12.28 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005604/0.9891, allocations: 0.5466 MB / 1.13 GB, free: 11.72 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002841/0.9894, allocations: 291.8 kB / 1.13 GB, free: 11.43 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.9895, allocations: 81.61 kB / 1.13 GB, free: 11.35 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.9897, allocations: 341.9 kB / 1.131 GB, free: 11.01 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006018/0.9903, allocations: 301.8 kB / 1.131 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007559/0.991, allocations: 492.4 kB / 1.131 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.9923, allocations: 0.7404 MB / 1.132 GB, free: 9.406 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.259e-06/0.9923, allocations: 0 / 1.132 GB, free: 9.406 MB / 0.8887 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.001979/0.9943, allocations: 0.9617 MB / 1.133 GB, free: 8.434 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/0.9945, allocations: 170.6 kB / 1.133 GB, free: 8.23 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.9945, allocations: 4 kB / 1.133 GB, free: 8.227 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002272/0.9947, allocations: 32.83 kB / 1.133 GB, free: 8.191 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007848/0.9955, allocations: 203.7 kB / 1.133 GB, free: 7.992 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.9968, allocations: 1.288 MB / 1.135 GB, free: 6.566 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.9979, allocations: 136.8 kB / 1.135 GB, free: 6.434 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.998, allocations: 39.98 kB / 1.135 GB, free: 6.395 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 8.436e-06/0.998, allocations: 4 kB / 1.135 GB, free: 6.391 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001547/0.9996, allocations: 0.8236 MB / 1.136 GB, free: 5.566 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.9996, allocations: 0 / 1.136 GB, free: 5.566 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.9996, allocations: 8 kB / 1.136 GB, free: 5.559 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000755/1, allocations: 200 kB / 1.136 GB, free: 5.363 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.061e-05/1, allocations: 15.94 kB / 1.136 GB, free: 5.348 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009447/1.001, allocations: 115.2 kB / 1.136 GB, free: 5.234 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.985e-05/1.001, allocations: 43.97 kB / 1.136 GB, free: 5.191 MB / 0.8887 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.0007415/1.002, allocations: 426.5 kB / 1.136 GB, free: 4.766 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003135/1.003, allocations: 114.6 kB / 1.137 GB, free: 4.652 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/1.005, allocations: 1.069 MB / 1.138 GB, free: 3.566 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/1.005, allocations: 12.09 kB / 1.138 GB, free: 3.555 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.005, allocations: 3.938 kB / 1.138 GB, free: 3.551 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/1.005, allocations: 11.92 kB / 1.138 GB, free: 3.539 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003857/1.009, allocations: 2.385 MB / 1.14 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/1.009, allocations: 0 / 1.14 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006509/1.009, allocations: 163.7 kB / 1.14 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001345/1.01, allocations: 28.84 kB / 1.14 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.997e-05/1.01, allocations: 27.97 kB / 1.14 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009483/1.011, allocations: 1.272 MB / 1.141 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/1.011, allocations: 8.125 kB / 1.141 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/1.012, allocations: 1.062 MB / 1.142 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006174/1.013, allocations: 331.3 kB / 1.143 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/1.013, allocations: 20 kB / 1.143 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008408/1.014, allocations: 88.86 kB / 1.143 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/1.014, allocations: 80.77 kB / 1.143 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.702e-05/1.014, allocations: 35.98 kB / 1.143 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001078/1.016, allocations: 0.6691 MB / 1.144 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/1.016, allocations: 0 / 1.144 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001831/1.017, allocations: 0.5802 MB / 1.144 GB, free: 12.52 MB / 0.9044 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.001651/1.019, allocations: 0.654 MB / 1.145 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002743/1.022, allocations: 1.349 MB / 1.146 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/1.022, allocations: 0 / 1.146 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0008796/1.023, allocations: 0.5404 MB / 1.147 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/1.025, allocations: 332 kB / 1.147 GB, free: 9.848 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004725/1.029, allocations: 2.794 MB / 1.15 GB, free: 7.004 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00094/1.03, allocations: 1.162 MB / 1.151 GB, free: 5.809 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004765/1.031, allocations: 139.4 kB / 1.151 GB, free: 5.672 MB / 0.9044 GB Notification: Performance of SimCode: time 1.203e-06/1.031, allocations: 0 / 1.151 GB, free: 5.672 MB / 0.9044 GB Notification: Performance of Templates: time 0.03591/1.067, allocations: 22.78 MB / 1.173 GB, free: 14.95 MB / 0.9356 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/jenkins1/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