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.001243/0.001243, allocations: 97.91 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.001353/0.001353, allocations: 177.3 kB / 15.95 MB, free: 216 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.439/1.439, allocations: 223.2 MB / 239.9 MB, free: 5.367 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.49/2.49, allocations: 390.3 MB / 0.6653 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.0003909, allocations: 12 kB / 0.8145 GB, free: 14.32 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8436/0.844, allocations: 142.3 MB / 0.9535 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.007675/0.8518, allocations: 5.975 MB / 0.9593 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.188/1.04, allocations: 128.7 MB / 1.085 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00219/1.042, allocations: 23.88 kB / 1.085 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001056/1.043, allocations: 194.8 kB / 1.085 GB, free: 9.066 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003922/1.047, allocations: 0.6846 MB / 1.086 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003469/1.051, allocations: 0.8331 MB / 1.087 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002618/1.053, allocations: 1.064 MB / 1.088 GB, free: 6.492 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001557/1.055, allocations: 0.9033 MB / 1.089 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008537/1.056, allocations: 462.1 kB / 1.089 GB, free: 5.09 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007827/1.056, allocations: 497.7 kB / 1.09 GB, free: 4.602 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001194/1.057, allocations: 40 kB / 1.09 GB, free: 4.562 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001096/1.058, allocations: 371.5 kB / 1.09 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003047/1.058, allocations: 287 kB / 1.09 GB, free: 3.918 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003144/1.058, allocations: 260.9 kB / 1.09 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001696/1.06, allocations: 1.531 MB / 1.092 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/1.06, allocations: 3.938 kB / 1.092 GB, free: 2.117 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.124e-06/1.06, allocations: 0 / 1.092 GB, free: 2.117 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.847e-05/1.06, allocations: 0 / 1.092 GB, free: 2.117 MB / 0.8419 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.002827/1.063, allocations: 1.53 MB / 1.093 GB, free: 0.5312 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/1.063, allocations: 8.031 kB / 1.093 GB, free: 0.5234 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001291/1.064, allocations: 289.9 kB / 1.094 GB, free: 244 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001674/1.066, allocations: 0.9063 MB / 1.095 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.359e-05/1.066, allocations: 82.08 kB / 1.095 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/1.066, allocations: 104 kB / 1.095 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002173/1.068, allocations: 1.226 MB / 1.096 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/1.068, allocations: 0 / 1.096 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/1.068, allocations: 48 kB / 1.096 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.503e-05/1.069, allocations: 53.98 kB / 1.096 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002171/1.071, allocations: 1.35 MB / 1.097 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007515/1.078, allocations: 4.532 MB / 1.102 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/1.08, allocations: 0.8909 MB / 1.103 GB, free: 6.68 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.133e-05/1.08, allocations: 36.94 kB / 1.103 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009328/1.081, allocations: 0.5343 MB / 1.103 GB, free: 6.078 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=89): time 3.146e-06/1.081, allocations: 0 / 1.103 GB, free: 6.078 MB / 0.8575 GB Notification: Performance of matching and sorting (n=89): time 0.002938/1.084, allocations: 1.221 MB / 1.104 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002766/1.084, allocations: 303.7 kB / 1.105 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/1.086, allocations: 0.9495 MB / 1.106 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.929e-05/1.086, allocations: 45.7 kB / 1.106 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005627/1.087, allocations: 0.5544 MB / 1.106 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002826/1.087, allocations: 291.8 kB / 1.107 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/1.087, allocations: 12 kB / 1.107 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001554/1.087, allocations: 345.9 kB / 1.107 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005629/1.088, allocations: 281.8 kB / 1.107 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007098/1.089, allocations: 465.1 kB / 1.108 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006204/1.089, allocations: 342.8 kB / 1.108 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/1.089, allocations: 4 kB / 1.108 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001774/1.091, allocations: 0.9068 MB / 1.109 GB, free: 200 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006966/1.092, allocations: 1.059 MB / 1.11 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/1.092, allocations: 96 / 1.11 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002958/1.092, allocations: 36.78 kB / 1.11 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008453/1.093, allocations: 195.7 kB / 1.11 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/1.095, allocations: 1.289 MB / 1.111 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/1.096, allocations: 128.8 kB / 1.111 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.409e-05/1.096, allocations: 35.98 kB / 1.111 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/1.096, allocations: 4 kB / 1.111 GB, free: 13.24 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001591/1.098, allocations: 0.773 MB / 1.112 GB, free: 12.47 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/1.098, allocations: 0 / 1.112 GB, free: 12.47 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/1.098, allocations: 11.95 kB / 1.112 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008041/1.098, allocations: 195.7 kB / 1.112 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/1.098, allocations: 8 kB / 1.112 GB, free: 12.26 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/1.1, allocations: 115.4 kB / 1.113 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.481e-05/1.1, allocations: 39.97 kB / 1.113 GB, free: 12.11 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: 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 (107): * Single equations (assignments): 106 * 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.001031/1.101, allocations: 414.2 kB / 1.113 GB, free: 11.69 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003243/1.101, allocations: 114.6 kB / 1.113 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002205/1.103, allocations: 1.088 MB / 1.114 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/1.103, allocations: 12 kB / 1.114 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/1.103, allocations: 0 / 1.114 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/1.103, allocations: 7.969 kB / 1.114 GB, free: 10.45 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/1.105, allocations: 1.371 MB / 1.116 GB, free: 9.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/1.105, allocations: 8 kB / 1.116 GB, free: 9.012 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000667/1.106, allocations: 167.8 kB / 1.116 GB, free: 8.848 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001237/1.106, allocations: 24.78 kB / 1.116 GB, free: 8.82 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.6e-05/1.106, allocations: 27.98 kB / 1.116 GB, free: 8.793 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001009/1.107, allocations: 1.28 MB / 1.117 GB, free: 7.379 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.107, allocations: 0 / 1.117 GB, free: 7.379 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/1.109, allocations: 0.9983 MB / 1.118 GB, free: 6.34 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000562/1.109, allocations: 335.2 kB / 1.118 GB, free: 5.992 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/1.109, allocations: 20 kB / 1.118 GB, free: 5.973 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007072/1.11, allocations: 88.44 kB / 1.118 GB, free: 5.887 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/1.11, allocations: 76.89 kB / 1.118 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-05/1.11, allocations: 31.98 kB / 1.118 GB, free: 5.781 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0009646/1.111, allocations: 0.6613 MB / 1.119 GB, free: 5.109 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.1e-07/1.111, allocations: 0 / 1.119 GB, free: 5.109 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001561/1.113, allocations: 0.5724 MB / 1.12 GB, free: 4.535 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 94 * 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.001564/1.115, allocations: 0.6521 MB / 1.12 GB, free: 4.086 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002452/1.117, allocations: 1.283 MB / 1.122 GB, free: 2.793 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/1.117, allocations: 3.938 kB / 1.122 GB, free: 2.789 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008298/1.118, allocations: 0.5275 MB / 1.122 GB, free: 2.25 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/1.119, allocations: 298.3 kB / 1.122 GB, free: 1.969 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004101/1.123, allocations: 2.607 MB / 1.125 GB, free: 15.32 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008377/1.124, allocations: 1.189 MB / 1.126 GB, free: 14.1 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001533/1.126, allocations: 412.4 kB / 1.126 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003/1.126, allocations: 127.3 kB / 1.127 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of SimCode: time 1.203e-06/1.126, allocations: 7.938 kB / 1.127 GB, free: 13.56 MB / 0.8887 GB Notification: Performance of Templates: time 0.03228/1.158, allocations: 15.61 MB / 1.142 GB, free: 14.12 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","../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches