Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.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_9_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_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.233/2.233, allocations: 387.1 MB / 399.7 MB, free: 9.414 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.001109/0.001109, allocations: 184.9 kB / 492.3 MB, free: 0.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.595/1.595, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.0009356/0.0009355, allocations: 89.77 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.013e-05/5.073e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.302, allocations: 142.3 MB / 1.212 GB, free: 38.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.156/4.458, allocations: 1.766 GB / 2.978 GB, free: 98.12 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/4.459, allocations: 105.2 kB / 2.978 GB, free: 98.02 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1496/4.608, allocations: 68.72 MB / 3.046 GB, free: 28.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.873e-06/4.608, allocations: 0 / 3.046 GB, free: 28.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 9.814e-05/4.609, allocations: 39.92 kB / 3.046 GB, free: 28.86 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.002347/4.611, allocations: 1.397 MB / 3.047 GB, free: 27.41 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/4.611, allocations: 12.02 kB / 3.047 GB, free: 27.39 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/4.612, allocations: 309.8 kB / 3.047 GB, free: 27.09 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/4.614, allocations: 0.834 MB / 3.048 GB, free: 26.21 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.629e-05/4.614, allocations: 86.06 kB / 3.048 GB, free: 26.13 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/4.614, allocations: 104 kB / 3.048 GB, free: 26.03 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/4.616, allocations: 1.277 MB / 3.049 GB, free: 24.66 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/4.616, allocations: 3.938 kB / 3.05 GB, free: 24.66 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.493e-05/4.616, allocations: 47.94 kB / 3.05 GB, free: 24.61 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.448e-05/4.616, allocations: 57.94 kB / 3.05 GB, free: 24.55 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/4.618, allocations: 1.417 MB / 3.051 GB, free: 23.14 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005641/4.623, allocations: 4.76 MB / 3.056 GB, free: 18.13 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/4.625, allocations: 0.9763 MB / 3.057 GB, free: 17.12 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004781/4.625, allocations: 408 kB / 3.057 GB, free: 16.72 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002026/4.625, allocations: 117.9 kB / 3.057 GB, free: 16.59 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007163/4.626, allocations: 0.5575 MB / 3.058 GB, free: 16.01 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 3.086e-06/4.626, allocations: 0 / 3.058 GB, free: 16.01 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002625/4.629, allocations: 1.442 MB / 3.059 GB, free: 14.55 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.623e-05/4.629, allocations: 299.5 kB / 3.059 GB, free: 14.19 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/4.63, allocations: 0.8807 MB / 3.06 GB, free: 13.29 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.982e-05/4.63, allocations: 45.7 kB / 3.06 GB, free: 13.23 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003625/4.63, allocations: 0.5312 MB / 3.061 GB, free: 12.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/4.631, allocations: 323.3 kB / 3.061 GB, free: 12.38 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.406e-05/4.631, allocations: 16 kB / 3.061 GB, free: 12.36 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.015e-05/4.631, allocations: 345.9 kB / 3.061 GB, free: 12.02 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004272/4.631, allocations: 325.9 kB / 3.062 GB, free: 11.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005401/4.632, allocations: 0.5176 MB / 3.062 GB, free: 11.12 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005456/4.632, allocations: 405.9 kB / 3.063 GB, free: 10.72 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/4.632, allocations: 0 / 3.063 GB, free: 10.72 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001871/4.634, allocations: 1.144 MB / 3.064 GB, free: 9.562 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002266/4.634, allocations: 1.138 MB / 3.065 GB, free: 8.34 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/4.635, allocations: 4 kB / 3.065 GB, free: 8.336 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008499/4.635, allocations: 212.6 kB / 3.065 GB, free: 8.125 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008144/4.636, allocations: 211.7 kB / 3.065 GB, free: 7.918 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004957/4.637, allocations: 0.6382 MB / 3.066 GB, free: 7.254 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008425/4.638, allocations: 107.4 kB / 3.066 GB, free: 7.148 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.402e-05/4.638, allocations: 35.98 kB / 3.066 GB, free: 7.113 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/4.638, allocations: 4 kB / 3.066 GB, free: 7.109 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001143/4.639, allocations: 0.8344 MB / 3.067 GB, free: 6.273 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/4.639, allocations: 4.062 kB / 3.067 GB, free: 6.27 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.546e-06/4.639, allocations: 11.94 kB / 3.067 GB, free: 6.258 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007434/4.64, allocations: 203.8 kB / 3.067 GB, free: 6.059 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/4.64, allocations: 16.03 kB / 3.067 GB, free: 6.043 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007528/4.64, allocations: 99.33 kB / 3.067 GB, free: 5.945 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.531e-05/4.64, allocations: 43.97 kB / 3.067 GB, free: 5.902 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.0002221/4.641, allocations: 161.9 kB / 3.067 GB, free: 5.738 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/4.641, allocations: 110.7 kB / 3.067 GB, free: 5.629 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002521/4.643, allocations: 1.353 MB / 3.069 GB, free: 4.262 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/4.643, allocations: 11.94 kB / 3.069 GB, free: 4.25 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/4.643, allocations: 0 / 3.069 GB, free: 4.25 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/4.643, allocations: 11.94 kB / 3.069 GB, free: 4.238 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004053/4.647, allocations: 2.687 MB / 3.071 GB, free: 1.473 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/4.648, allocations: 0 / 3.071 GB, free: 1.473 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000753/4.648, allocations: 203.7 kB / 3.072 GB, free: 1.273 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007336/4.649, allocations: 208.8 kB / 3.072 GB, free: 1.066 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.888e-05/4.649, allocations: 27.98 kB / 3.072 GB, free: 1.039 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6999/5.349, allocations: 1.817 MB / 3.074 GB, free: 384.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.223e-06/5.349, allocations: 2.688 kB / 3.074 GB, free: 384.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003341/5.352, allocations: 1.438 MB / 3.075 GB, free: 384.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007306/5.353, allocations: 365.8 kB / 3.075 GB, free: 384.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/5.353, allocations: 20.84 kB / 3.075 GB, free: 384.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008716/5.354, allocations: 95.97 kB / 3.075 GB, free: 384.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002402/5.354, allocations: 78.89 kB / 3.076 GB, free: 384.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/5.355, allocations: 38.42 kB / 3.076 GB, free: 384.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001407/5.356, allocations: 0.6994 MB / 3.076 GB, free: 384.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.1e-07/5.356, allocations: 0 / 3.076 GB, free: 384.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002351/5.358, allocations: 0.5232 MB / 3.077 GB, free: 384.1 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.001672/5.36, allocations: 0.6502 MB / 3.077 GB, free: 384 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002963/5.363, allocations: 1.386 MB / 3.079 GB, free: 384 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/5.363, allocations: 1.938 kB / 3.079 GB, free: 384 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001212/5.364, allocations: 0.6281 MB / 3.079 GB, free: 383.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/5.366, allocations: 303.1 kB / 3.08 GB, free: 383.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004423/5.37, allocations: 1.811 MB / 3.081 GB, free: 383.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/5.372, allocations: 1.211 MB / 3.083 GB, free: 382.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002336/5.374, allocations: 0.6078 MB / 3.083 GB, free: 382.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/5.374, allocations: 92.81 kB / 3.083 GB, free: 382.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.703e-06/5.374, allocations: 0 / 3.083 GB, free: 382.6 MB / 1.151 GB Notification: Performance of Templates: time 0.04672/5.421, allocations: 18.73 MB / 3.102 GB, free: 381.6 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches