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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.523/2.523, allocations: 387.4 MB / 394.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 184.9 kB / 487.4 MB, free: 5.031 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.6/1.6, allocations: 221.5 MB / 0.7824 GB, free: 0.9531 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009344/0.0009342, allocations: 102.7 kB / 0.9219 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.475e-05/1.478e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2934, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.585/4.879, allocations: 1.76 GB / 2.966 GB, free: 109.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/4.879, allocations: 101.4 kB / 2.966 GB, free: 109.6 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.1284/5.007, allocations: 55.9 MB / 3.021 GB, free: 58.31 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.124e-06/5.007, allocations: 0 / 3.021 GB, free: 58.31 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001588/5.008, allocations: 31.94 kB / 3.021 GB, free: 58.28 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 260 * Number of variables: 260 Notification: Performance of Generate backend data structure: time 0.003032/5.011, allocations: 1.333 MB / 3.022 GB, free: 56.89 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/5.011, allocations: 8.562 kB / 3.022 GB, free: 56.88 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001745/5.012, allocations: 278.6 kB / 3.022 GB, free: 56.61 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001705/5.014, allocations: 0.8028 MB / 3.023 GB, free: 55.77 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.857e-05/5.014, allocations: 36 kB / 3.023 GB, free: 55.73 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001914/5.014, allocations: 56 kB / 3.023 GB, free: 55.68 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001779/5.016, allocations: 1.175 MB / 3.024 GB, free: 54.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/5.018, allocations: 0.9823 MB / 3.025 GB, free: 53.44 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/5.018, allocations: 0 / 3.025 GB, free: 53.44 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/5.018, allocations: 0 / 3.025 GB, free: 53.44 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.686e-05/5.018, allocations: 57.97 kB / 3.025 GB, free: 53.38 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006802/5.025, allocations: 4.189 MB / 3.029 GB, free: 48.99 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/5.026, allocations: 0.7117 MB / 3.03 GB, free: 48.27 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005153/5.027, allocations: 299.9 kB / 3.03 GB, free: 47.97 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 9.936e-05/5.027, allocations: 32.8 kB / 3.03 GB, free: 47.94 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006135/5.027, allocations: 422.3 kB / 3.031 GB, free: 47.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=80): time 4.118e-06/5.028, allocations: 0 / 3.031 GB, free: 47.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=80): time 0.001482/5.029, allocations: 0.6599 MB / 3.031 GB, free: 46.83 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/5.029, allocations: 354.8 kB / 3.032 GB, free: 46.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001618/5.031, allocations: 0.7663 MB / 3.032 GB, free: 45.63 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001196/5.031, allocations: 25.7 kB / 3.033 GB, free: 45.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005935/5.031, allocations: 0.5308 MB / 3.033 GB, free: 45.06 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002474/5.032, allocations: 264.2 kB / 3.033 GB, free: 44.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-05/5.032, allocations: 0 / 3.033 GB, free: 44.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.511e-05/5.032, allocations: 334 kB / 3.034 GB, free: 44.47 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/5.032, allocations: 205.5 kB / 3.034 GB, free: 44.27 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000484/5.033, allocations: 398.4 kB / 3.034 GB, free: 43.81 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004618/5.033, allocations: 280.4 kB / 3.034 GB, free: 43.54 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/5.033, allocations: 0 / 3.034 GB, free: 43.54 MB / 1.151 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0014/5.035, allocations: 0.7185 MB / 3.035 GB, free: 42.81 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000238/5.035, allocations: 0.963 MB / 3.036 GB, free: 41.77 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/5.035, allocations: 0 / 3.036 GB, free: 41.77 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002044/5.035, allocations: 28.84 kB / 3.036 GB, free: 41.74 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006754/5.036, allocations: 175.8 kB / 3.036 GB, free: 41.57 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003133/5.036, allocations: 0.5406 MB / 3.037 GB, free: 41 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000827/5.037, allocations: 83.42 kB / 3.037 GB, free: 40.92 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.137e-05/5.037, allocations: 31.98 kB / 3.037 GB, free: 40.89 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/5.037, allocations: 4 kB / 3.037 GB, free: 40.89 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008469/5.038, allocations: 0.5648 MB / 3.037 GB, free: 40.32 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/5.038, allocations: 4 kB / 3.037 GB, free: 40.32 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/5.038, allocations: 12.27 kB / 3.037 GB, free: 40.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000643/5.039, allocations: 175.7 kB / 3.038 GB, free: 40.13 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/5.039, allocations: 8 kB / 3.038 GB, free: 40.12 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007373/5.039, allocations: 71.39 kB / 3.038 GB, free: 40.05 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.647e-05/5.039, allocations: 35.98 kB / 3.038 GB, free: 40.02 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 93 * 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.0002183/5.04, allocations: 130.5 kB / 3.038 GB, free: 39.89 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002618/5.04, allocations: 98.78 kB / 3.038 GB, free: 39.79 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001626/5.042, allocations: 0.8824 MB / 3.039 GB, free: 38.89 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/5.042, allocations: 8 kB / 3.039 GB, free: 38.89 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/5.042, allocations: 0 / 3.039 GB, free: 38.89 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/5.042, allocations: 7.984 kB / 3.039 GB, free: 38.88 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002987/5.045, allocations: 2.106 MB / 3.041 GB, free: 36.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/5.045, allocations: 0 / 3.041 GB, free: 36.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005768/5.045, allocations: 155.8 kB / 3.041 GB, free: 36.54 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001253/5.045, allocations: 24.84 kB / 3.041 GB, free: 36.52 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.759e-05/5.045, allocations: 16.11 kB / 3.041 GB, free: 36.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006513/5.046, allocations: 1.217 MB / 3.042 GB, free: 35.17 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/5.046, allocations: 12.17 kB / 3.042 GB, free: 35.16 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/5.047, allocations: 0.9012 MB / 3.043 GB, free: 34.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000505/5.048, allocations: 327.4 kB / 3.044 GB, free: 33.86 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002021/5.048, allocations: 4 kB / 3.044 GB, free: 33.86 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006835/5.049, allocations: 59.94 kB / 3.044 GB, free: 33.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/5.049, allocations: 60.69 kB / 3.044 GB, free: 33.74 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.43e-05/5.049, allocations: 39.97 kB / 3.044 GB, free: 33.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0008257/5.05, allocations: 0.5928 MB / 3.044 GB, free: 33.11 MB / 1.151 GB Notification: Performance of sort global known variables: time 4.3e-07/5.05, allocations: 0 / 3.044 GB, free: 33.11 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001829/5.052, allocations: 0.537 MB / 3.045 GB, free: 32.57 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00154/5.053, allocations: 0.5962 MB / 3.045 GB, free: 32.09 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001612/5.055, allocations: 0.947 MB / 3.046 GB, free: 31.14 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/5.055, allocations: 4 kB / 3.046 GB, free: 31.14 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005749/5.055, allocations: 445 kB / 3.047 GB, free: 30.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001417/5.057, allocations: 272.1 kB / 3.047 GB, free: 30.44 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/5.06, allocations: 1.54 MB / 3.048 GB, free: 28.86 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007103/5.061, allocations: 1.166 MB / 3.05 GB, free: 27.66 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001818/5.062, allocations: 0.5499 MB / 3.05 GB, free: 27.11 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002373/5.063, allocations: 87.41 kB / 3.05 GB, free: 27.02 MB / 1.151 GB Notification: Performance of SimCode: time 4.21e-07/5.063, allocations: 0 / 3.05 GB, free: 27.02 MB / 1.151 GB Notification: Performance of Templates: time 0.02669/5.089, allocations: 15.3 MB / 3.065 GB, free: 11.84 MB / 1.151 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