Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.468/2.468, allocations: 390.5 MB / 398 MB, free: 10.96 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.00121/0.00121, allocations: 176.8 kB / 491.2 MB, free: 1.582 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.529/1.529, allocations: 221.5 MB / 0.7868 GB, free: 13.31 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 91.81 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.071e-05/2.081e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3042, allocations: 143 MB / 1.212 GB, free: 39.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.626/4.93, allocations: 1.766 GB / 2.978 GB, free: 98.07 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002947/4.931, allocations: 111.2 kB / 2.978 GB, free: 97.96 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1489/5.08, allocations: 68.26 MB / 3.045 GB, free: 29.32 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.332e-06/5.08, allocations: 4 kB / 3.045 GB, free: 29.31 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001303/5.08, allocations: 35.94 kB / 3.045 GB, free: 29.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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003/5.083, allocations: 1.404 MB / 3.047 GB, free: 27.82 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/5.083, allocations: 11.97 kB / 3.047 GB, free: 27.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001729/5.085, allocations: 305.8 kB / 3.047 GB, free: 27.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/5.086, allocations: 0.8378 MB / 3.048 GB, free: 26.62 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.901e-05/5.086, allocations: 36 kB / 3.048 GB, free: 26.59 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001957/5.087, allocations: 60 kB / 3.048 GB, free: 26.53 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001861/5.088, allocations: 1.288 MB / 3.049 GB, free: 25.23 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/5.09, allocations: 1.127 MB / 3.05 GB, free: 24.02 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/5.09, allocations: 0 / 3.05 GB, free: 24.02 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/5.09, allocations: 4 kB / 3.05 GB, free: 24.02 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.996e-05/5.09, allocations: 57.98 kB / 3.05 GB, free: 23.96 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005385/5.096, allocations: 4.546 MB / 3.055 GB, free: 19.18 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/5.097, allocations: 0.911 MB / 3.056 GB, free: 18.25 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004459/5.098, allocations: 387.9 kB / 3.056 GB, free: 17.86 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001951/5.098, allocations: 121.9 kB / 3.056 GB, free: 17.73 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006727/5.098, allocations: 0.5208 MB / 3.057 GB, free: 17.18 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 3.607e-06/5.098, allocations: 0 / 3.057 GB, free: 17.18 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002443/5.101, allocations: 1.368 MB / 3.058 GB, free: 15.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/5.101, allocations: 295.5 kB / 3.058 GB, free: 15.44 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009297/5.102, allocations: 0.782 MB / 3.059 GB, free: 14.66 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.405e-05/5.102, allocations: 25.7 kB / 3.059 GB, free: 14.62 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003252/5.102, allocations: 0.5545 MB / 3.059 GB, free: 14.06 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001787/5.102, allocations: 303.4 kB / 3.06 GB, free: 13.76 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/5.103, allocations: 0 / 3.06 GB, free: 13.76 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.271e-05/5.103, allocations: 341.9 kB / 3.06 GB, free: 13.42 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003731/5.103, allocations: 310.5 kB / 3.06 GB, free: 13.12 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004728/5.103, allocations: 0.4908 MB / 3.061 GB, free: 12.56 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006356/5.104, allocations: 424.3 kB / 3.061 GB, free: 12.15 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/5.104, allocations: 96 / 3.061 GB, free: 12.15 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001702/5.106, allocations: 1.058 MB / 3.062 GB, free: 11.07 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002386/5.106, allocations: 1.145 MB / 3.063 GB, free: 9.844 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/5.106, allocations: 4 kB / 3.063 GB, free: 9.84 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005956/5.107, allocations: 124.7 kB / 3.064 GB, free: 9.715 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007557/5.107, allocations: 211.7 kB / 3.064 GB, free: 9.508 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004623/5.108, allocations: 0.6461 MB / 3.064 GB, free: 8.836 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007233/5.109, allocations: 83.44 kB / 3.064 GB, free: 8.754 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.936e-05/5.109, allocations: 39.98 kB / 3.064 GB, free: 8.715 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.868e-06/5.109, allocations: 4 kB / 3.064 GB, free: 8.711 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001132/5.11, allocations: 0.7834 MB / 3.065 GB, free: 7.926 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/5.11, allocations: 7.938 kB / 3.065 GB, free: 7.918 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.005e-06/5.11, allocations: 8.375 kB / 3.065 GB, free: 7.91 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007245/5.111, allocations: 211.7 kB / 3.065 GB, free: 7.703 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/5.111, allocations: 8 kB / 3.065 GB, free: 7.695 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005833/5.111, allocations: 83.31 kB / 3.066 GB, free: 7.613 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.803e-05/5.111, allocations: 35.98 kB / 3.066 GB, free: 7.578 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (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 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002208/5.112, allocations: 130.4 kB / 3.066 GB, free: 7.445 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/5.112, allocations: 110.6 kB / 3.066 GB, free: 7.336 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002627/5.114, allocations: 1.301 MB / 3.067 GB, free: 6.023 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/5.114, allocations: 15.98 kB / 3.067 GB, free: 6.008 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/5.114, allocations: 0 / 3.067 GB, free: 6.008 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/5.114, allocations: 3.984 kB / 3.067 GB, free: 6.004 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003447/5.118, allocations: 2.508 MB / 3.07 GB, free: 3.43 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/5.118, allocations: 0 / 3.07 GB, free: 3.43 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006943/5.119, allocations: 195.7 kB / 3.07 GB, free: 3.238 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007004/5.119, allocations: 208.8 kB / 3.07 GB, free: 3.031 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.502e-05/5.119, allocations: 19.98 kB / 3.07 GB, free: 3.012 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/5.121, allocations: 1.752 MB / 3.072 GB, free: 1.141 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/5.121, allocations: 8.062 kB / 3.072 GB, free: 1.133 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6571/5.778, allocations: 1.405 MB / 3.073 GB, free: 384.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009606/5.779, allocations: 354.2 kB / 3.073 GB, free: 384.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/5.779, allocations: 7.031 kB / 3.073 GB, free: 384.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008538/5.78, allocations: 77.58 kB / 3.073 GB, free: 384.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001961/5.78, allocations: 81.27 kB / 3.074 GB, free: 384.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.539e-05/5.78, allocations: 37.84 kB / 3.074 GB, free: 384.6 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0009858/5.781, allocations: 0.6162 MB / 3.074 GB, free: 384.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.052e-06/5.781, allocations: 4.75 kB / 3.074 GB, free: 384.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0018/5.783, allocations: 475.6 kB / 3.075 GB, free: 384.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * 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 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001403/5.785, allocations: 0.599 MB / 3.075 GB, free: 384.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002387/5.787, allocations: 1.311 MB / 3.077 GB, free: 384.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/5.787, allocations: 0.9688 kB / 3.077 GB, free: 384.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000917/5.788, allocations: 0.6042 MB / 3.077 GB, free: 384.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/5.789, allocations: 276.1 kB / 3.077 GB, free: 384.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003282/5.793, allocations: 1.742 MB / 3.079 GB, free: 383.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008144/5.793, allocations: 1.223 MB / 3.08 GB, free: 383.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001827/5.795, allocations: 0.6031 MB / 3.081 GB, free: 383 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002411/5.795, allocations: 92.73 kB / 3.081 GB, free: 383 MB / 1.151 GB Notification: Performance of SimCode: time 6.02e-07/5.795, allocations: 0 / 3.081 GB, free: 383 MB / 1.151 GB Notification: Performance of Templates: time 0.03512/5.831, allocations: 17.41 MB / 3.098 GB, free: 382 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches