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.279/2.279, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001404/0.001404, allocations: 179.3 kB / 498.1 MB, free: 5.738 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.669/1.669, allocations: 223.2 MB / 0.7949 GB, free: 17.82 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.0011/0.0011, allocations: 96.34 kB / 0.9346 GB, free: 6.156 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003873/0.0003874, allocations: 7.438 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.348, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.621/4.969, allocations: 1.762 GB / 2.985 GB, free: 256.1 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003427/4.969, allocations: 117.4 kB / 2.985 GB, free: 255.9 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.1415/5.111, allocations: 65.2 MB / 3.049 GB, free: 190.4 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.164e-06/5.111, allocations: 3.984 kB / 3.049 GB, free: 190.4 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001024/5.111, allocations: 35.94 kB / 3.049 GB, free: 190.3 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.00265/5.113, allocations: 1.567 MB / 3.05 GB, free: 188.7 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/5.113, allocations: 12.03 kB / 3.05 GB, free: 188.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001492/5.115, allocations: 305.9 kB / 3.05 GB, free: 188.4 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/5.116, allocations: 0.8378 MB / 3.051 GB, free: 187.5 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.562e-05/5.116, allocations: 90.12 kB / 3.051 GB, free: 187.4 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/5.116, allocations: 100 kB / 3.051 GB, free: 187.3 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001762/5.118, allocations: 1.307 MB / 3.053 GB, free: 185.9 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.542e-05/5.118, allocations: 0 / 3.053 GB, free: 185.9 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/5.118, allocations: 44 kB / 3.053 GB, free: 185.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.463e-05/5.118, allocations: 65.88 kB / 3.053 GB, free: 185.8 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001846/5.12, allocations: 1.475 MB / 3.054 GB, free: 184.4 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005087/5.125, allocations: 4.755 MB / 3.059 GB, free: 179.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/5.127, allocations: 1.027 MB / 3.06 GB, free: 178.3 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000184/5.127, allocations: 126.1 kB / 3.06 GB, free: 178.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007731/5.128, allocations: 0.5727 MB / 3.061 GB, free: 177.6 MB / 1.167 GB Notification: Performance of pre-optimization done (n=94): time 2.835e-06/5.128, allocations: 0 / 3.061 GB, free: 177.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=95): time 0.00384/5.132, allocations: 2.038 MB / 3.063 GB, free: 175.5 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.014e-05/5.132, allocations: 303.7 kB / 3.063 GB, free: 175.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/5.133, allocations: 0.8881 MB / 3.064 GB, free: 174.2 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 7.916e-05/5.133, allocations: 45.7 kB / 3.064 GB, free: 174.2 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003497/5.133, allocations: 0.5466 MB / 3.064 GB, free: 173.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/5.134, allocations: 315.4 kB / 3.065 GB, free: 173.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.695e-05/5.134, allocations: 20 kB / 3.065 GB, free: 173.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.751e-05/5.134, allocations: 337.9 kB / 3.065 GB, free: 173 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005234/5.134, allocations: 353.8 kB / 3.065 GB, free: 172.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006528/5.135, allocations: 0.5451 MB / 3.066 GB, free: 172 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006141/5.136, allocations: 430.8 kB / 3.066 GB, free: 171.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/5.136, allocations: 0 / 3.066 GB, free: 171.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002055/5.138, allocations: 1.184 MB / 3.067 GB, free: 170.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001914/5.138, allocations: 1.138 MB / 3.069 GB, free: 169.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/5.138, allocations: 7.938 kB / 3.069 GB, free: 169.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008837/5.139, allocations: 216.6 kB / 3.069 GB, free: 168.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008266/5.14, allocations: 199.8 kB / 3.069 GB, free: 168.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004675/5.14, allocations: 0.6459 MB / 3.07 GB, free: 168.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008388/5.141, allocations: 115.2 kB / 3.07 GB, free: 168 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.179e-05/5.141, allocations: 44.05 kB / 3.07 GB, free: 167.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/5.141, allocations: 5.094 kB / 3.07 GB, free: 167.9 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001296/5.142, allocations: 0.8861 MB / 3.071 GB, free: 167 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/5.142, allocations: 4 kB / 3.071 GB, free: 167 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.315e-06/5.142, allocations: 8 kB / 3.071 GB, free: 167 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007848/5.143, allocations: 207.7 kB / 3.071 GB, free: 166.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/5.143, allocations: 8 kB / 3.071 GB, free: 166.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007354/5.144, allocations: 99.84 kB / 3.071 GB, free: 166.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.027e-05/5.144, allocations: 35.98 kB / 3.071 GB, free: 166.7 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.0007441/5.145, allocations: 424.8 kB / 3.071 GB, free: 166.2 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001918/5.145, allocations: 122.5 kB / 3.071 GB, free: 166.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002594/5.147, allocations: 1.388 MB / 3.073 GB, free: 164.7 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/5.147, allocations: 8 kB / 3.073 GB, free: 164.7 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/5.148, allocations: 7.984 kB / 3.073 GB, free: 164.7 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/5.148, allocations: 7.922 kB / 3.073 GB, free: 164.7 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003798/5.151, allocations: 2.738 MB / 3.076 GB, free: 161.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/5.151, allocations: 4 kB / 3.076 GB, free: 161.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007146/5.152, allocations: 187.7 kB / 3.076 GB, free: 161.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007695/5.153, allocations: 208.8 kB / 3.076 GB, free: 161.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.263e-05/5.153, allocations: 35.98 kB / 3.076 GB, free: 161.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001785/5.155, allocations: 1.866 MB / 3.078 GB, free: 159.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/5.155, allocations: 4.031 kB / 3.078 GB, free: 159.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/5.157, allocations: 1.501 MB / 3.079 GB, free: 157.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006271/5.158, allocations: 363.2 kB / 3.08 GB, free: 157.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/5.158, allocations: 24 kB / 3.08 GB, free: 157.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007543/5.159, allocations: 95.91 kB / 3.08 GB, free: 157.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/5.159, allocations: 76.83 kB / 3.08 GB, free: 157.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.968e-05/5.159, allocations: 35.98 kB / 3.08 GB, free: 157.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0009401/5.16, allocations: 0.7115 MB / 3.08 GB, free: 156.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.91e-07/5.16, allocations: 0 / 3.08 GB, free: 156.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001748/5.162, allocations: 0.5272 MB / 3.081 GB, free: 156 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.001664/5.163, allocations: 0.6944 MB / 3.082 GB, free: 155.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002282/5.166, allocations: 1.421 MB / 3.083 GB, free: 154.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/5.166, allocations: 0 / 3.083 GB, free: 154.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0008836/5.166, allocations: 0.6568 MB / 3.084 GB, free: 153.4 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/5.168, allocations: 297.9 kB / 3.084 GB, free: 153.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/5.171, allocations: 2.87 MB / 3.087 GB, free: 150.2 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/5.172, allocations: 1.221 MB / 3.088 GB, free: 149 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001318/5.173, allocations: 460.3 kB / 3.088 GB, free: 148.5 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002772/5.173, allocations: 119.3 kB / 3.089 GB, free: 148.4 MB / 1.167 GB Notification: Performance of SimCode: time 5.21e-07/5.173, allocations: 0 / 3.089 GB, free: 148.4 MB / 1.167 GB Notification: Performance of Templates: time 0.02463/5.198, allocations: 17.05 MB / 3.105 GB, free: 131.5 MB / 1.167 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