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.354/2.354, allocations: 387.1 MB / 399.7 MB, free: 9.469 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.0009974/0.0009974, allocations: 184.1 kB / 492.3 MB, free: 0.6016 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.403/1.403, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.0008369/0.0008369, allocations: 89.45 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.579e-05/3.581e-05, allocations: 0 / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3264, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.488/4.814, allocations: 1.762 GB / 2.974 GB, free: 78.12 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/4.815, allocations: 99.81 kB / 2.974 GB, free: 78.07 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1432/4.958, allocations: 64.76 MB / 3.038 GB, free: 16.88 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.934e-06/4.958, allocations: 0 / 3.038 GB, free: 16.88 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001052/4.958, allocations: 32 kB / 3.038 GB, free: 16.85 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.002284/4.96, allocations: 1.404 MB / 3.039 GB, free: 15.39 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/4.961, allocations: 8.031 kB / 3.039 GB, free: 15.38 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001374/4.962, allocations: 301.8 kB / 3.039 GB, free: 15.09 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/4.963, allocations: 0.8456 MB / 3.04 GB, free: 14.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.721e-05/4.963, allocations: 78.14 kB / 3.04 GB, free: 14.12 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/4.963, allocations: 104 kB / 3.04 GB, free: 14.02 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001816/4.965, allocations: 1.268 MB / 3.042 GB, free: 12.66 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.072e-05/4.965, allocations: 7.938 kB / 3.042 GB, free: 12.65 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/4.965, allocations: 48 kB / 3.042 GB, free: 12.61 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.949e-05/4.965, allocations: 53.98 kB / 3.042 GB, free: 12.55 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/4.967, allocations: 1.421 MB / 3.043 GB, free: 11.13 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005328/4.973, allocations: 4.752 MB / 3.048 GB, free: 6.129 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/4.974, allocations: 0.9732 MB / 3.049 GB, free: 5.133 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004961/4.974, allocations: 413.2 kB / 3.049 GB, free: 4.727 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002252/4.975, allocations: 125.9 kB / 3.049 GB, free: 4.586 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000772/4.975, allocations: 0.5498 MB / 3.05 GB, free: 4.016 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 3.006e-06/4.975, allocations: 3.938 kB / 3.05 GB, free: 4.012 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002523/4.978, allocations: 1.446 MB / 3.051 GB, free: 2.547 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.945e-05/4.978, allocations: 291.5 kB / 3.051 GB, free: 2.195 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/4.979, allocations: 0.8807 MB / 3.052 GB, free: 1.289 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.77e-05/4.979, allocations: 45.7 kB / 3.052 GB, free: 1.238 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003373/4.98, allocations: 0.5429 MB / 3.053 GB, free: 0.6875 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/4.98, allocations: 323.3 kB / 3.053 GB, free: 376 kB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.314e-05/4.98, allocations: 20 kB / 3.053 GB, free: 356 kB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.527e-05/4.98, allocations: 337.9 kB / 3.053 GB, free: 12 kB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.7918/5.772, allocations: 323.7 kB / 3.054 GB, free: 388.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009979/5.773, allocations: 0.5168 MB / 3.054 GB, free: 388.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00076/5.774, allocations: 407.8 kB / 3.055 GB, free: 388.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/5.774, allocations: 2.469 kB / 3.055 GB, free: 388.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002779/5.776, allocations: 1.136 MB / 3.056 GB, free: 388.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002823/5.777, allocations: 1.145 MB / 3.057 GB, free: 387.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/5.777, allocations: 2.812 kB / 3.057 GB, free: 387.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009849/5.778, allocations: 219.1 kB / 3.057 GB, free: 387.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009088/5.779, allocations: 205.5 kB / 3.057 GB, free: 387.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005932/5.779, allocations: 0.6382 MB / 3.058 GB, free: 387 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/5.78, allocations: 101.2 kB / 3.058 GB, free: 387 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/5.78, allocations: 40.39 kB / 3.058 GB, free: 387 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/5.78, allocations: 4.188 kB / 3.058 GB, free: 387 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001589/5.782, allocations: 0.8361 MB / 3.059 GB, free: 387 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/5.782, allocations: 3.438 kB / 3.059 GB, free: 387 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/5.782, allocations: 7.094 kB / 3.059 GB, free: 387 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000876/5.783, allocations: 210.6 kB / 3.059 GB, free: 387 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.726e-05/5.783, allocations: 10.86 kB / 3.059 GB, free: 387 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008925/5.784, allocations: 105.6 kB / 3.059 GB, free: 387 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/5.784, allocations: 38.53 kB / 3.059 GB, free: 387 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.0002892/5.784, allocations: 159.5 kB / 3.059 GB, free: 386.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002151/5.784, allocations: 116.8 kB / 3.06 GB, free: 386.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003136/5.788, allocations: 1.349 MB / 3.061 GB, free: 386.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.129e-05/5.788, allocations: 14.56 kB / 3.061 GB, free: 386.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/5.788, allocations: 1 kB / 3.061 GB, free: 386.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/5.788, allocations: 8.141 kB / 3.061 GB, free: 386.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005017/5.793, allocations: 2.683 MB / 3.063 GB, free: 386.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/5.793, allocations: 2.25 kB / 3.063 GB, free: 386.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008043/5.793, allocations: 196.1 kB / 3.064 GB, free: 386.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008537/5.794, allocations: 214.1 kB / 3.064 GB, free: 386.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-05/5.794, allocations: 33.48 kB / 3.064 GB, free: 386.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001962/5.796, allocations: 1.818 MB / 3.066 GB, free: 385.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/5.796, allocations: 7.141 kB / 3.066 GB, free: 385.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0026/5.799, allocations: 1.438 MB / 3.067 GB, free: 384.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007104/5.8, allocations: 360.8 kB / 3.067 GB, free: 384.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/5.8, allocations: 22.36 kB / 3.067 GB, free: 384.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007993/5.801, allocations: 97.72 kB / 3.068 GB, free: 384.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/5.801, allocations: 76.84 kB / 3.068 GB, free: 384.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-05/5.801, allocations: 36.44 kB / 3.068 GB, free: 384.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001234/5.802, allocations: 0.7035 MB / 3.068 GB, free: 384.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.573e-06/5.802, allocations: 0 / 3.068 GB, free: 384.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002538/5.805, allocations: 0.5251 MB / 3.069 GB, free: 384.3 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.001638/5.806, allocations: 0.6476 MB / 3.069 GB, free: 384.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003042/5.81, allocations: 1.385 MB / 3.071 GB, free: 384.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/5.81, allocations: 1.812 kB / 3.071 GB, free: 384.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001232/5.811, allocations: 0.6336 MB / 3.071 GB, free: 384.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/5.813, allocations: 296.3 kB / 3.072 GB, free: 384.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004212/5.817, allocations: 1.813 MB / 3.073 GB, free: 383.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009669/5.818, allocations: 1.217 MB / 3.075 GB, free: 382.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002289/5.82, allocations: 0.6006 MB / 3.075 GB, free: 382.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002783/5.82, allocations: 93 kB / 3.075 GB, free: 382.8 MB / 1.151 GB Notification: Performance of SimCode: time 9.32e-07/5.82, allocations: 0 / 3.075 GB, free: 382.8 MB / 1.151 GB Notification: Performance of Templates: time 0.04517/5.866, allocations: 18.74 MB / 3.094 GB, free: 381.6 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