Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001744/0.001744, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.002165/0.002166, allocations: 168.7 kB / 15.95 MB, free: 204 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.458/1.458, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.904/2.904, allocations: 462.6 MB / 0.736 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003887/0.0003889, allocations: 8.969 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3963, allocations: 159.6 MB / 1.058 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.008453/0.4048, allocations: 6.599 MB / 1.064 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1836/0.5884, allocations: 138 MB / 1.199 GB, free: 4.41 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.5899, allocations: 23.88 kB / 1.199 GB, free: 4.387 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0009524/0.5909, allocations: 262.3 kB / 1.2 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.002303/0.5932, allocations: 0.6535 MB / 1.2 GB, free: 3.477 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002459/0.5957, allocations: 0.7836 MB / 1.201 GB, free: 2.703 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002513/0.5982, allocations: 1.701 MB / 1.203 GB, free: 0.9922 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001526/0.5997, allocations: 0.8685 MB / 1.203 GB, free: 76 kB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008497/0.6006, allocations: 486 kB / 1.204 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008821/0.6015, allocations: 0.5795 MB / 1.204 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.6016, allocations: 43.98 kB / 1.205 GB, free: 14.97 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001073/0.6027, allocations: 411.5 kB / 1.205 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003885/0.6031, allocations: 298.9 kB / 1.205 GB, free: 14.27 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000354/0.6035, allocations: 264.7 kB / 1.205 GB, free: 14.01 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001855/0.6053, allocations: 1.547 MB / 1.207 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.6053, allocations: 0 / 1.207 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.094e-06/0.6053, allocations: 0 / 1.207 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 2.637e-05/0.6054, allocations: 0 / 1.207 GB, free: 12.46 MB / 0.9669 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.003024/0.6084, allocations: 1.542 MB / 1.208 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.6085, allocations: 8.031 kB / 1.208 GB, free: 10.85 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001427/0.6099, allocations: 277.8 kB / 1.209 GB, free: 10.58 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.6115, allocations: 0.914 MB / 1.21 GB, free: 9.621 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.866e-05/0.6116, allocations: 86.08 kB / 1.21 GB, free: 9.535 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.6117, allocations: 100 kB / 1.21 GB, free: 9.438 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002366/0.6141, allocations: 1.233 MB / 1.211 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.6142, allocations: 0 / 1.211 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.6143, allocations: 44 kB / 1.211 GB, free: 8.078 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.122e-05/0.6143, allocations: 58 kB / 1.211 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002474/0.6168, allocations: 1.346 MB / 1.212 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007883/0.6247, allocations: 4.702 MB / 1.217 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001742/0.6265, allocations: 0.8924 MB / 1.218 GB, free: 0.8086 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008146/0.6273, allocations: 371.7 kB / 1.218 GB, free: 456 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/0.6275, allocations: 36.89 kB / 1.218 GB, free: 420 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009537/0.6284, allocations: 0.5305 MB / 1.219 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=89): time 2.835e-06/0.6284, allocations: 0 / 1.219 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of matching and sorting (n=89): time 0.002734/0.6312, allocations: 1.22 MB / 1.22 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003872/0.6316, allocations: 295.8 kB / 1.22 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.6332, allocations: 0.9494 MB / 1.221 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.6333, allocations: 45.7 kB / 1.221 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005599/0.6339, allocations: 0.5466 MB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004147/0.6343, allocations: 295.8 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.011e-05/0.6343, allocations: 20 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002252/0.6346, allocations: 341.9 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006155/0.6352, allocations: 301.8 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008362/0.636, allocations: 484.4 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006532/0.6367, allocations: 350.9 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.6367, allocations: 3.938 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.001876/0.6386, allocations: 0.9538 MB / 1.224 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001585/0.6388, allocations: 170.8 kB / 1.225 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.6388, allocations: 4 kB / 1.225 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002321/0.639, allocations: 36.83 kB / 1.225 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008924/0.6399, allocations: 191.7 kB / 1.225 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.6417, allocations: 1.295 MB / 1.226 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.6428, allocations: 127.3 kB / 1.226 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.277e-05/0.6428, allocations: 39.98 kB / 1.226 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/0.6429, allocations: 4 kB / 1.226 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00168/0.6446, allocations: 0.8236 MB / 1.227 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.6446, allocations: 8.344 kB / 1.227 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.837e-06/0.6446, allocations: 8 kB / 1.227 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007538/0.6454, allocations: 195.7 kB / 1.227 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.6454, allocations: 7.938 kB / 1.227 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008305/0.6462, allocations: 119.8 kB / 1.227 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.07e-05/0.6463, allocations: 47.97 kB / 1.227 GB, free: 6.652 MB / 0.9825 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.0008128/0.6471, allocations: 422.5 kB / 1.228 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000348/0.6475, allocations: 114.6 kB / 1.228 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.6498, allocations: 1.08 MB / 1.229 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/0.6499, allocations: 16.08 kB / 1.229 GB, free: 5.008 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.6499, allocations: 3.938 kB / 1.229 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.6499, allocations: 3.984 kB / 1.229 GB, free: 5 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0042/0.6541, allocations: 2.373 MB / 1.231 GB, free: 2.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.697e-06/0.6541, allocations: 4 kB / 1.231 GB, free: 2.539 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000635/0.6548, allocations: 159.9 kB / 1.231 GB, free: 2.383 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001348/0.6549, allocations: 36.8 kB / 1.231 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.469e-05/0.655, allocations: 27.97 kB / 1.232 GB, free: 2.316 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/0.6561, allocations: 1.276 MB / 1.233 GB, free: 0.9023 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.6561, allocations: 0 / 1.233 GB, free: 0.9023 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.658, allocations: 1.05 MB / 1.234 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005961/0.6586, allocations: 331.2 kB / 1.234 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002076/0.6588, allocations: 16 kB / 1.234 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007882/0.6596, allocations: 97.98 kB / 1.234 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.6598, allocations: 72.89 kB / 1.234 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-05/0.6599, allocations: 35.98 kB / 1.234 GB, free: 15.26 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00115/0.661, allocations: 0.6613 MB / 1.235 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.1e-07/0.661, allocations: 0 / 1.235 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001979/0.663, allocations: 0.6036 MB / 1.236 GB, free: 13.98 MB / 0.9981 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.001726/0.6648, allocations: 0.6528 MB / 1.236 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002835/0.6676, allocations: 1.341 MB / 1.238 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.6676, allocations: 320 / 1.238 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009072/0.6685, allocations: 0.5354 MB / 1.238 GB, free: 11.63 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001783/0.6703, allocations: 328.8 kB / 1.238 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00473/0.6751, allocations: 2.648 MB / 1.241 GB, free: 8.629 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001039/0.6761, allocations: 1.166 MB / 1.242 GB, free: 7.43 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001623/0.6778, allocations: 420.3 kB / 1.242 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.6782, allocations: 115.4 kB / 1.243 GB, free: 6.902 MB / 0.9981 GB Notification: Performance of SimCode: time 8.31e-07/0.6782, allocations: 0 / 1.243 GB, free: 6.902 MB / 0.9981 GB Notification: Performance of Templates: time 0.6462/1.324, allocations: 16.04 MB / 1.258 GB, free: 186.5 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_WindTurbine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches