Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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.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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.393/2.393, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.00123/0.00123, allocations: 182.5 kB / 0.4902 GB, free: 2.223 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.727/1.727, allocations: 223.1 MB / 0.7992 GB, free: 14.69 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.001009/0.001009, allocations: 109.6 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004272/0.0004274, allocations: 11.88 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3688, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.385/4.754, allocations: 1.763 GB / 2.992 GB, free: 188.1 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/4.754, allocations: 112.8 kB / 2.992 GB, free: 188.1 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.1543/4.909, allocations: 65.2 MB / 3.056 GB, free: 132.6 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.414e-06/4.909, allocations: 0 / 3.056 GB, free: 132.6 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001797/4.909, allocations: 39.92 kB / 3.056 GB, free: 132.6 MB / 1.167 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.004074/4.913, allocations: 1.573 MB / 3.057 GB, free: 131 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/4.913, allocations: 12.56 kB / 3.057 GB, free: 131 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001797/4.915, allocations: 301.8 kB / 3.058 GB, free: 130.7 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001923/4.917, allocations: 0.8483 MB / 3.058 GB, free: 130 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.252e-05/4.917, allocations: 78.45 kB / 3.058 GB, free: 130 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000253/4.917, allocations: 103.6 kB / 3.059 GB, free: 129.9 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002303/4.92, allocations: 1.311 MB / 3.06 GB, free: 128.9 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/4.92, allocations: 0 / 3.06 GB, free: 128.9 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001329/4.92, allocations: 49.55 kB / 3.06 GB, free: 128.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.571e-05/4.92, allocations: 61.88 kB / 3.06 GB, free: 128.8 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002148/4.922, allocations: 1.47 MB / 3.061 GB, free: 127.7 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005945/4.928, allocations: 4.75 MB / 3.066 GB, free: 123.5 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/4.93, allocations: 1.014 MB / 3.067 GB, free: 122.8 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002069/4.93, allocations: 120 kB / 3.067 GB, free: 122.7 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008537/4.931, allocations: 0.5827 MB / 3.068 GB, free: 122.2 MB / 1.167 GB Notification: Performance of pre-optimization done (n=94): time 3.216e-06/4.931, allocations: 0 / 3.068 GB, free: 122.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=95): time 0.004269/4.935, allocations: 2.041 MB / 3.07 GB, free: 120.6 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.041e-05/4.935, allocations: 299.7 kB / 3.07 GB, free: 120.2 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001081/4.936, allocations: 0.8914 MB / 3.071 GB, free: 119.5 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 7.242e-05/4.936, allocations: 46.39 kB / 3.071 GB, free: 119.5 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003183/4.937, allocations: 0.5409 MB / 3.071 GB, free: 119.1 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001866/4.937, allocations: 319 kB / 3.072 GB, free: 118.8 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.411e-05/4.937, allocations: 18.31 kB / 3.072 GB, free: 118.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.756e-05/4.937, allocations: 337.5 kB / 3.072 GB, free: 118.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005223/4.937, allocations: 350.3 kB / 3.072 GB, free: 118.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006578/4.938, allocations: 0.5462 MB / 3.073 GB, free: 117.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006471/4.939, allocations: 429.7 kB / 3.073 GB, free: 117.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/4.939, allocations: 0 / 3.073 GB, free: 117.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002126/4.941, allocations: 1.188 MB / 3.075 GB, free: 116.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002001/4.941, allocations: 1.144 MB / 3.076 GB, free: 115.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/4.941, allocations: 0 / 3.076 GB, free: 115.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009042/4.942, allocations: 216.6 kB / 3.076 GB, free: 115.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008114/4.943, allocations: 206.7 kB / 3.076 GB, free: 115.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004689/4.943, allocations: 0.6396 MB / 3.077 GB, free: 114.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007864/4.944, allocations: 112 kB / 3.077 GB, free: 114.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.208e-05/4.944, allocations: 39.48 kB / 3.077 GB, free: 114.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/4.944, allocations: 4 kB / 3.077 GB, free: 114.3 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001335/4.946, allocations: 0.8855 MB / 3.078 GB, free: 113.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/4.946, allocations: 4 kB / 3.078 GB, free: 113.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.244e-06/4.946, allocations: 8.375 kB / 3.078 GB, free: 113.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007723/4.946, allocations: 216.6 kB / 3.078 GB, free: 113.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/4.946, allocations: 11.94 kB / 3.078 GB, free: 113.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006787/4.947, allocations: 100.8 kB / 3.078 GB, free: 113.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.043e-05/4.947, allocations: 33.98 kB / 3.078 GB, free: 113.4 MB / 1.167 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 () * Number of clocked 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.000614/4.948, allocations: 433.7 kB / 3.078 GB, free: 113 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/4.948, allocations: 114.5 kB / 3.079 GB, free: 112.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002608/4.951, allocations: 1.393 MB / 3.08 GB, free: 111.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/4.951, allocations: 12 kB / 3.08 GB, free: 111.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/4.951, allocations: 4 kB / 3.08 GB, free: 111.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/4.951, allocations: 3.984 kB / 3.08 GB, free: 111.9 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003773/4.954, allocations: 2.742 MB / 3.083 GB, free: 109 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/4.954, allocations: 4 kB / 3.083 GB, free: 109 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007489/4.955, allocations: 191.7 kB / 3.083 GB, free: 108.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008119/4.956, allocations: 208.7 kB / 3.083 GB, free: 108.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.02e-05/4.956, allocations: 31.98 kB / 3.083 GB, free: 108.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001689/4.958, allocations: 1.875 MB / 3.085 GB, free: 106.6 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/4.958, allocations: 4.094 kB / 3.085 GB, free: 106.6 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002198/4.96, allocations: 1.497 MB / 3.086 GB, free: 105 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005637/4.961, allocations: 363.1 kB / 3.087 GB, free: 104.6 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/4.961, allocations: 27.98 kB / 3.087 GB, free: 104.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008178/4.962, allocations: 95.91 kB / 3.087 GB, free: 104.5 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/4.962, allocations: 80.83 kB / 3.087 GB, free: 104.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.115e-05/4.962, allocations: 35.98 kB / 3.087 GB, free: 104.4 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0008418/4.963, allocations: 0.7076 MB / 3.088 GB, free: 103.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 4.41e-07/4.963, allocations: 0 / 3.088 GB, free: 103.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001503/4.964, allocations: 0.5233 MB / 3.088 GB, free: 103.2 MB / 1.167 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) * Number of clocked states: 0 () * 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.001399/4.966, allocations: 0.6935 MB / 3.089 GB, free: 102.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002329/4.968, allocations: 1.425 MB / 3.09 GB, free: 101.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/4.968, allocations: 0 / 3.09 GB, free: 101.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0009032/4.969, allocations: 0.6564 MB / 3.091 GB, free: 100.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/4.97, allocations: 301.6 kB / 3.091 GB, free: 100.3 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/4.974, allocations: 2.871 MB / 3.094 GB, free: 97.38 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005353/4.974, allocations: 1.209 MB / 3.095 GB, free: 96.13 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001287/4.975, allocations: 464.3 kB / 3.096 GB, free: 95.68 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002843/4.976, allocations: 115.4 kB / 3.096 GB, free: 95.56 MB / 1.167 GB Notification: Performance of SimCode: time 7.61e-07/4.976, allocations: 0 / 3.096 GB, free: 95.56 MB / 1.167 GB Notification: Performance of Templates: time 0.02557/5.001, allocations: 17.05 MB / 3.112 GB, free: 78.65 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches