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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001073/0.001073, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009697/0.009697, allocations: 170.2 kB / 16.26 MB, free: 6.676 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.571/1.571, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.564/2.564, allocations: 390.9 MB / 0.6663 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003791/0.0003791, allocations: 12 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8002/0.8006, allocations: 142.4 MB / 0.955 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.007348/0.808, allocations: 6.498 MB / 0.9614 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1909/0.999, allocations: 147.9 MB / 1.106 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001434/1, allocations: 23.88 kB / 1.106 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001219/1.002, allocations: 258.4 kB / 1.106 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.003219/1.005, allocations: 0.6635 MB / 1.107 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003359/1.008, allocations: 0.9172 MB / 1.108 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003125/1.011, allocations: 1.85 MB / 1.109 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002456/1.014, allocations: 1.162 MB / 1.111 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/1.015, allocations: 481.7 kB / 1.111 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000879/1.016, allocations: 0.5987 MB / 1.112 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001191/1.016, allocations: 36 kB / 1.112 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001346/1.017, allocations: 0.5773 MB / 1.112 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003056/1.018, allocations: 306.7 kB / 1.113 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0006556/1.018, allocations: 0.6034 MB / 1.113 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002206/1.021, allocations: 1.95 MB / 1.115 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/1.021, allocations: 0 / 1.115 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.214e-06/1.021, allocations: 4 kB / 1.115 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.511e-05/1.021, allocations: 0 / 1.115 GB, free: 10.88 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.003078/1.024, allocations: 1.511 MB / 1.116 GB, free: 9.309 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 6.914e-05/1.024, allocations: 8.031 kB / 1.116 GB, free: 9.301 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001486/1.025, allocations: 278.8 kB / 1.117 GB, free: 9.027 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/1.027, allocations: 0.9529 MB / 1.118 GB, free: 8.031 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.586e-05/1.027, allocations: 82.09 kB / 1.118 GB, free: 7.949 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001618/1.027, allocations: 103.9 kB / 1.118 GB, free: 7.848 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002124/1.029, allocations: 1.241 MB / 1.119 GB, free: 6.523 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/1.029, allocations: 7.875 kB / 1.119 GB, free: 6.516 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/1.029, allocations: 44 kB / 1.119 GB, free: 6.473 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.178e-05/1.03, allocations: 54 kB / 1.119 GB, free: 6.418 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002097/1.032, allocations: 1.35 MB / 1.12 GB, free: 5.059 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006368/1.038, allocations: 4.54 MB / 1.125 GB, free: 304 kB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/1.04, allocations: 0.9018 MB / 1.126 GB, free: 15.39 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006877/1.04, allocations: 375.7 kB / 1.126 GB, free: 15.02 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 8.064e-05/1.041, allocations: 28.95 kB / 1.126 GB, free: 14.99 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000915/1.041, allocations: 0.5461 MB / 1.127 GB, free: 14.42 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=89): time 2.394e-06/1.041, allocations: 0 / 1.127 GB, free: 14.42 MB / 0.8887 GB Notification: Performance of matching and sorting (n=89): time 0.002446/1.044, allocations: 1.22 MB / 1.128 GB, free: 13.17 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/1.044, allocations: 307.8 kB / 1.128 GB, free: 12.8 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001355/1.045, allocations: 0.9533 MB / 1.129 GB, free: 11.83 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 8.484e-05/1.046, allocations: 45.7 kB / 1.129 GB, free: 11.78 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005056/1.046, allocations: 0.5466 MB / 1.13 GB, free: 11.22 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.000266/1.046, allocations: 287.8 kB / 1.13 GB, free: 10.94 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/1.046, allocations: 85.67 kB / 1.13 GB, free: 10.85 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001674/1.047, allocations: 341.9 kB / 1.13 GB, free: 10.51 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006226/1.047, allocations: 305.8 kB / 1.131 GB, free: 10.21 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007482/1.048, allocations: 480.5 kB / 1.131 GB, free: 9.688 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/1.049, allocations: 0.7325 MB / 1.132 GB, free: 8.922 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/1.049, allocations: 4 kB / 1.132 GB, free: 8.918 MB / 0.8887 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.001893/1.051, allocations: 0.9617 MB / 1.133 GB, free: 7.945 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/1.051, allocations: 172 kB / 1.133 GB, free: 7.742 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/1.051, allocations: 3.938 kB / 1.133 GB, free: 7.738 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002064/1.052, allocations: 36.84 kB / 1.133 GB, free: 7.699 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000786/1.052, allocations: 199.7 kB / 1.133 GB, free: 7.504 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/1.054, allocations: 1.284 MB / 1.134 GB, free: 6.082 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009047/1.054, allocations: 140 kB / 1.135 GB, free: 5.945 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.518e-05/1.055, allocations: 43.97 kB / 1.135 GB, free: 5.902 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 6.973e-06/1.055, allocations: 4 kB / 1.135 GB, free: 5.898 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001461/1.056, allocations: 0.8158 MB / 1.135 GB, free: 5.082 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/1.056, allocations: 4 kB / 1.135 GB, free: 5.078 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.823e-06/1.056, allocations: 4 kB / 1.135 GB, free: 5.074 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007775/1.057, allocations: 208 kB / 1.136 GB, free: 4.871 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/1.057, allocations: 8 kB / 1.136 GB, free: 4.863 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008013/1.058, allocations: 117.1 kB / 1.136 GB, free: 4.75 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.847e-05/1.058, allocations: 43.98 kB / 1.136 GB, free: 4.707 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.0006922/1.058, allocations: 426.5 kB / 1.136 GB, free: 4.281 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/1.059, allocations: 118.6 kB / 1.136 GB, free: 4.164 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0021/1.061, allocations: 1.065 MB / 1.137 GB, free: 3.082 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/1.061, allocations: 19.98 kB / 1.137 GB, free: 3.062 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/1.061, allocations: 0 / 1.137 GB, free: 3.062 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-05/1.061, allocations: 3.984 kB / 1.137 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003387/1.064, allocations: 2.385 MB / 1.14 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/1.064, allocations: 0 / 1.14 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006415/1.065, allocations: 167.7 kB / 1.14 GB, free: 436 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001176/1.065, allocations: 28.97 kB / 1.14 GB, free: 404 kB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.986e-05/1.065, allocations: 27.98 kB / 1.14 GB, free: 376 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009544/1.066, allocations: 1.276 MB / 1.141 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/1.066, allocations: 0 / 1.141 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/1.068, allocations: 1.062 MB / 1.142 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005817/1.068, allocations: 327.3 kB / 1.143 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/1.069, allocations: 27.98 kB / 1.143 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007923/1.069, allocations: 79.94 kB / 1.143 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/1.07, allocations: 76.83 kB / 1.143 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.351e-05/1.07, allocations: 47.97 kB / 1.143 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001082/1.071, allocations: 0.6652 MB / 1.143 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.916e-06/1.071, allocations: 3.938 kB / 1.143 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001709/1.073, allocations: 0.5802 MB / 1.144 GB, free: 12.04 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.001623/1.074, allocations: 0.6555 MB / 1.145 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002662/1.077, allocations: 1.349 MB / 1.146 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/1.077, allocations: 1 kB / 1.146 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0008659/1.078, allocations: 0.5356 MB / 1.146 GB, free: 9.676 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001862/1.08, allocations: 332.1 kB / 1.147 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004079/1.084, allocations: 2.749 MB / 1.149 GB, free: 6.566 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007913/1.085, allocations: 1.166 MB / 1.151 GB, free: 5.367 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001421/1.086, allocations: 408.4 kB / 1.151 GB, free: 4.965 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/1.086, allocations: 119.4 kB / 1.151 GB, free: 4.848 MB / 0.9044 GB Notification: Performance of SimCode: time 9.72e-07/1.086, allocations: 4 kB / 1.151 GB, free: 4.844 MB / 0.9044 GB Notification: Performance of Templates: time 0.03128/1.118, allocations: 16.11 MB / 1.167 GB, free: 4.895 MB / 0.92 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