Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.OnePhase.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.OnePhase.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.OnePhase.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.OnePhase.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.227/2.227, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001061/0.001061, allocations: 176.8 kB / 487.4 MB, free: 5.059 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.504/1.504, allocations: 221.5 MB / 0.7824 GB, free: 0.9648 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.0008597/0.0008597, allocations: 99.69 kB / 0.9219 GB, free: 2.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.883e-05/1.892e-05, allocations: 7.984 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2419, allocations: 142.3 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.154/4.396, allocations: 1.761 GB / 2.967 GB, free: 133.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003389/4.396, allocations: 105 kB / 2.967 GB, free: 133.5 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1494/4.545, allocations: 64.3 MB / 3.03 GB, free: 68.82 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.383e-06/4.545, allocations: 0 / 3.03 GB, free: 68.82 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001394/4.546, allocations: 35.98 kB / 3.03 GB, free: 68.79 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.003052/4.549, allocations: 1.408 MB / 3.031 GB, free: 67.32 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/4.549, allocations: 12.03 kB / 3.031 GB, free: 67.31 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001979/4.551, allocations: 297.8 kB / 3.032 GB, free: 67.02 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003026/4.554, allocations: 0.8417 MB / 3.033 GB, free: 66.13 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.152e-05/4.554, allocations: 36 kB / 3.033 GB, free: 66.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004128/4.554, allocations: 60 kB / 3.033 GB, free: 66.04 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002838/4.557, allocations: 1.288 MB / 3.034 GB, free: 64.75 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002847/4.56, allocations: 1.127 MB / 3.035 GB, free: 63.53 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.743e-05/4.56, allocations: 0 / 3.035 GB, free: 63.53 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001925/4.56, allocations: 4 kB / 3.035 GB, free: 63.53 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001028/4.56, allocations: 61.94 kB / 3.035 GB, free: 63.47 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007217/4.568, allocations: 4.535 MB / 3.04 GB, free: 58.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/4.569, allocations: 0.9224 MB / 3.04 GB, free: 57.75 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005017/4.57, allocations: 386.5 kB / 3.041 GB, free: 57.37 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002602/4.57, allocations: 121.9 kB / 3.041 GB, free: 57.23 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008574/4.571, allocations: 0.5324 MB / 3.041 GB, free: 56.68 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 6.212e-06/4.571, allocations: 0 / 3.041 GB, free: 56.68 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.003526/4.574, allocations: 1.356 MB / 3.043 GB, free: 55.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/4.574, allocations: 311.5 kB / 3.043 GB, free: 54.93 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/4.576, allocations: 0.7819 MB / 3.044 GB, free: 54.14 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001129/4.576, allocations: 29.81 kB / 3.044 GB, free: 54.11 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004967/4.576, allocations: 0.5465 MB / 3.044 GB, free: 53.55 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002383/4.576, allocations: 307.4 kB / 3.045 GB, free: 53.25 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.497e-05/4.577, allocations: 0 / 3.045 GB, free: 53.25 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.875e-05/4.577, allocations: 337.9 kB / 3.045 GB, free: 52.91 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004135/4.577, allocations: 310.5 kB / 3.045 GB, free: 52.61 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005013/4.578, allocations: 0.5033 MB / 3.046 GB, free: 52.04 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006956/4.578, allocations: 420.2 kB / 3.046 GB, free: 51.63 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/4.578, allocations: 0 / 3.046 GB, free: 51.63 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001872/4.58, allocations: 1.05 MB / 3.047 GB, free: 50.57 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002264/4.58, allocations: 1.143 MB / 3.048 GB, free: 49.34 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/4.58, allocations: 7.984 kB / 3.048 GB, free: 49.33 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000621/4.581, allocations: 132.7 kB / 3.048 GB, free: 49.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000791/4.582, allocations: 203.7 kB / 3.049 GB, free: 49 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004875/4.582, allocations: 0.6421 MB / 3.049 GB, free: 48.33 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008567/4.583, allocations: 91.36 kB / 3.049 GB, free: 48.24 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.076e-05/4.583, allocations: 35.98 kB / 3.049 GB, free: 48.21 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.908e-06/4.583, allocations: 4 kB / 3.049 GB, free: 48.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001257/4.585, allocations: 0.7874 MB / 3.05 GB, free: 47.42 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/4.585, allocations: 7.984 kB / 3.05 GB, free: 47.41 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.577e-06/4.585, allocations: 4 kB / 3.05 GB, free: 47.41 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007672/4.585, allocations: 211.7 kB / 3.05 GB, free: 47.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/4.585, allocations: 4 kB / 3.05 GB, free: 47.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000756/4.586, allocations: 83.53 kB / 3.05 GB, free: 47.11 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.568e-05/4.586, allocations: 39.98 kB / 3.051 GB, free: 47.07 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.0002375/4.587, allocations: 124.8 kB / 3.051 GB, free: 46.95 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/4.587, allocations: 106.7 kB / 3.051 GB, free: 46.84 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002603/4.589, allocations: 1.305 MB / 3.052 GB, free: 45.52 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/4.589, allocations: 16 kB / 3.052 GB, free: 45.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/4.589, allocations: 0 / 3.052 GB, free: 45.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/4.589, allocations: 8.031 kB / 3.052 GB, free: 45.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003744/4.593, allocations: 2.503 MB / 3.054 GB, free: 42.93 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/4.593, allocations: 7.984 kB / 3.055 GB, free: 42.92 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007262/4.594, allocations: 191.7 kB / 3.055 GB, free: 42.73 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007548/4.595, allocations: 208.8 kB / 3.055 GB, free: 42.52 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.21e-05/4.595, allocations: 23.98 kB / 3.055 GB, free: 42.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001609/4.596, allocations: 1.756 MB / 3.057 GB, free: 40.63 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/4.596, allocations: 0 / 3.057 GB, free: 40.63 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/4.599, allocations: 1.407 MB / 3.058 GB, free: 39.14 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000646/4.599, allocations: 359.2 kB / 3.058 GB, free: 38.77 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002737/4.6, allocations: 4.094 kB / 3.058 GB, free: 38.76 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009316/4.601, allocations: 79.84 kB / 3.058 GB, free: 38.68 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/4.601, allocations: 89.09 kB / 3.059 GB, free: 38.59 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.251e-05/4.601, allocations: 35.98 kB / 3.059 GB, free: 38.56 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0008842/4.602, allocations: 0.6124 MB / 3.059 GB, free: 37.95 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/4.602, allocations: 0 / 3.059 GB, free: 37.95 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001981/4.604, allocations: 479.8 kB / 3.06 GB, free: 37.48 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.001588/4.605, allocations: 0.6002 MB / 3.06 GB, free: 36.99 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002148/4.607, allocations: 1.324 MB / 3.061 GB, free: 35.67 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/4.607, allocations: 0 / 3.061 GB, free: 35.67 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008727/4.608, allocations: 0.5898 MB / 3.062 GB, free: 35.07 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/4.61, allocations: 280.8 kB / 3.062 GB, free: 34.81 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/4.613, allocations: 1.756 MB / 3.064 GB, free: 33 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000681/4.614, allocations: 1.218 MB / 3.065 GB, free: 31.75 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001982/4.616, allocations: 0.5972 MB / 3.066 GB, free: 31.15 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002417/4.616, allocations: 91.39 kB / 3.066 GB, free: 31.06 MB / 1.151 GB Notification: Performance of SimCode: time 6.41e-07/4.616, allocations: 4 kB / 3.066 GB, free: 31.06 MB / 1.151 GB Notification: Performance of Templates: time 0.02765/4.644, allocations: 17.41 MB / 3.083 GB, free: 13.78 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches