Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001505/0.001505, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.269/1.269, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008847/0.0008847, allocations: 100.1 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1599/0.1599, allocations: 38.06 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002761/0.0002761, allocations: 8 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2374, allocations: 56.32 MB / 480.3 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1344/0.3718, allocations: 113.3 MB / 0.5797 GB, free: 5.117 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.3721, allocations: 99.89 kB / 0.5798 GB, free: 5.02 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07809/0.4502, allocations: 30.01 MB / 0.6091 GB, free: 6.648 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4502, allocations: 0 / 0.6091 GB, free: 6.648 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.791e-05/0.4503, allocations: 27.94 kB / 0.6091 GB, free: 6.621 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002065/0.4524, allocations: 1.146 MB / 0.6102 GB, free: 5.422 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.4524, allocations: 11.98 kB / 0.6102 GB, free: 5.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009838/0.4534, allocations: 190.7 kB / 0.6104 GB, free: 5.223 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002975/0.4564, allocations: 1.231 MB / 0.6116 GB, free: 3.945 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.022e-05/0.4565, allocations: 65.98 kB / 0.6117 GB, free: 3.883 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/0.4566, allocations: 91.89 kB / 0.6118 GB, free: 3.793 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.4582, allocations: 1.073 MB / 0.6128 GB, free: 2.668 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.811e-05/0.4582, allocations: 4 kB / 0.6128 GB, free: 2.664 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.81e-05/0.4583, allocations: 32 kB / 0.6128 GB, free: 2.633 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.485e-05/0.4584, allocations: 65.97 kB / 0.6129 GB, free: 2.57 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00133/0.4597, allocations: 0.8547 MB / 0.6137 GB, free: 1.711 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005017/0.4648, allocations: 4.001 MB / 0.6176 GB, free: 13.51 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005894/0.4654, allocations: 442.2 kB / 0.6181 GB, free: 13.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.4654, allocations: 12.5 kB / 0.6181 GB, free: 13.03 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/0.4655, allocations: 42.89 kB / 0.6181 GB, free: 12.98 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 2.675e-06/0.4655, allocations: 0 / 0.6181 GB, free: 12.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=51): time 0.002734/0.4682, allocations: 1.721 MB / 0.6198 GB, free: 11.21 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.4683, allocations: 85.48 kB / 0.6199 GB, free: 11.11 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005729/0.4689, allocations: 0.5149 MB / 0.6204 GB, free: 10.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.4689, allocations: 33.7 kB / 0.6204 GB, free: 10.55 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002981/0.4692, allocations: 470.6 kB / 0.6209 GB, free: 10.08 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.4694, allocations: 185.4 kB / 0.621 GB, free: 9.895 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.4694, allocations: 16 kB / 0.6211 GB, free: 9.879 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4696, allocations: 374.8 kB / 0.6214 GB, free: 9.504 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003597/0.4699, allocations: 253.8 kB / 0.6217 GB, free: 9.258 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004824/0.4704, allocations: 476.9 kB / 0.6221 GB, free: 8.695 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004985/0.4709, allocations: 334.6 kB / 0.6224 GB, free: 8.371 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4709, allocations: 4 kB / 0.6224 GB, free: 8.367 MB / 458.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001805/0.4727, allocations: 1.107 MB / 0.6235 GB, free: 7.227 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.4728, allocations: 11.94 kB / 0.6235 GB, free: 7.215 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001307/0.4741, allocations: 0.7917 MB / 0.6243 GB, free: 6.391 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007172/0.4748, allocations: 222.6 kB / 0.6245 GB, free: 6.164 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005098/0.4753, allocations: 155.7 kB / 0.6247 GB, free: 6.012 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00539/0.4807, allocations: 5.319 MB / 0.6299 GB, free: 292 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000611/0.4814, allocations: 44.03 kB / 0.6299 GB, free: 248 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.727e-05/0.4814, allocations: 28.56 kB / 0.6299 GB, free: 220 kB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 77 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005341/0.482, allocations: 309.7 kB / 0.6302 GB, free: 15.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.659e-05/0.4821, allocations: 67.16 kB / 0.6303 GB, free: 15.84 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009559/0.483, allocations: 0.6205 MB / 0.6309 GB, free: 15.21 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.4831, allocations: 8 kB / 0.6309 GB, free: 15.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.4831, allocations: 0 / 0.6309 GB, free: 15.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.4831, allocations: 3.938 kB / 0.6309 GB, free: 15.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/0.4854, allocations: 1.494 MB / 0.6324 GB, free: 13.63 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.4854, allocations: 4 kB / 0.6324 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006053/0.486, allocations: 119.9 kB / 0.6325 GB, free: 13.51 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.76e-06/0.486, allocations: 4 kB / 0.6325 GB, free: 13.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.816e-05/0.4861, allocations: 16 kB / 0.6325 GB, free: 13.49 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.4861, allocations: 4 kB / 0.6325 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.4861, allocations: 12.09 kB / 0.6325 GB, free: 13.47 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.4872, allocations: 0.9806 MB / 0.6335 GB, free: 12.42 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002601/0.4875, allocations: 188.1 kB / 0.6337 GB, free: 12.22 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.941e-05/0.4876, allocations: 16 kB / 0.6337 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003093/0.4879, allocations: 19.98 kB / 0.6337 GB, free: 12.18 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.451e-05/0.488, allocations: 44.28 kB / 0.6337 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.488, allocations: 19.98 kB / 0.6337 GB, free: 12.12 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004177/0.4884, allocations: 411 kB / 0.6341 GB, free: 11.72 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.553e-06/0.4884, allocations: 0 / 0.6341 GB, free: 11.72 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0006785/0.4891, allocations: 227.9 kB / 0.6344 GB, free: 11.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.w,generator.phi_el,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 2 (system.initime,$cse4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002069/0.4893, allocations: 139.2 kB / 0.6345 GB, free: 11.36 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001433/0.4908, allocations: 1.019 MB / 0.6355 GB, free: 10.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4908, allocations: 4.125 kB / 0.6355 GB, free: 10.29 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003481/0.4912, allocations: 258.3 kB / 0.6357 GB, free: 10.04 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005791/0.4917, allocations: 139.3 kB / 0.6359 GB, free: 9.902 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/0.4948, allocations: 2.508 MB / 0.6383 GB, free: 7.344 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007153/0.4955, allocations: 1.102 MB / 0.6394 GB, free: 6.211 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005221/0.4961, allocations: 193.8 kB / 0.6396 GB, free: 6.02 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.4962, allocations: 51.44 kB / 0.6396 GB, free: 5.969 MB / 474.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4962, allocations: 0 / 0.6396 GB, free: 5.969 MB / 474.7 MB Notification: Performance of Templates: time 0.1991/0.6953, allocations: 8.449 MB / 0.6479 GB, free: 132.5 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,generator.powerAngle,sensor.p[1],sensor.p[2],sensor.p[3],sensor1.p[1],sensor1.p[2],sensor1.p[3] Variables in the result:RLgen1.L,RLgen1.L0,RLgen1.R,RLgen1.RL_base[1],RLgen1.RL_base[2],RLgen1.S_nom,RLgen1.V_nom,RLgen1.dynType,RLgen1.f_nom,RLgen1.i_start[1],RLgen1.i_start[2],RLgen1.i_start[3],RLgen1.puUnits,RLgen1.r,RLgen1.v_start[1],RLgen1.v_start[2],RLgen1.v_start[3],RLgen1.x_m,RLgen1.x_s,VBus1.S_nom,VBus1.V_base,VBus1.V_nom,VBus1.alpha,VBus1.alpha0,VBus1.f,VBus1.fType,VBus1.phi,VBus1.puUnits,VBus1.use_vPhasor_in,VBus1.v0,VBus1.vPhasor_internal[1],VBus1.vPhasor_internal[2],Vgen1.S_nom,Vgen1.V_base,Vgen1.V_nom,Vgen1.alpha,Vgen1.alpha0,Vgen1.f,Vgen1.fType,Vgen1.phi,Vgen1.puUnits,Vgen1.use_vPhasor_in,Vgen1.v0,Vgen1.vPhasor_internal[1],Vgen1.vPhasor_internal[2],bdCond.T_amb,bdCond.heat.m,bdCond.heat.ports[1].T,bdCond.heat.ports[2].T,bdCond.m,excitation.V_nom,excitation.Vf_nom,excitation.fieldVoltage,exciter.fieldVoltage,exciter.par,exciter.v_f,generator.Vf_nom,generator.c.L_s[1],generator.c.L_s[2],generator.c.L_s[3],generator.c.Psi_pm,generator.c.R_n,generator.c.R_s,generator.c.omega_nom,generator.dynType,generator.heat.m,generator.heat.ports[1].T,generator.heat.ports[2].T,generator.i_s_start[1],generator.i_s_start[2],generator.i_s_start[3],generator.i_start[1],generator.i_start[2],generator.i_start[3],generator.n_n,generator.par.S_nom,generator.par.V_nom,generator.par.excite,generator.par.f_nom,generator.par.neu_iso,generator.par.pp,generator.par.psi_pm,generator.par.puUnits,generator.par.r_n,generator.par.r_s,generator.par.x_0,generator.par.x_d,generator.par.x_q,generator.phi_el_start,generator.powerAngle,generator.pp,generator.top.n_n,governor.p,governor.par,governor.power,infBus.S_base,infBus.S_nom,infBus.V_base,infBus.V_nom,infBus.alpha,infBus.alpha0,infBus.phi,infBus.puUnits,infBus.use_vPhasor_in,infBus.v0,infBus.vPhasor_internal[1],infBus.vPhasor_internal[2],sensor.S_base,sensor.S_nom,sensor.V_nom,sensor.p[1],sensor.p[2],sensor.p[3],sensor.puUnits,sensor1.S_base,sensor1.S_nom,sensor1.V_nom,sensor1.p[1],sensor1.p[2],sensor1.p[3],sensor1.puUnits,system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time,turboGrp.H,turboGrp.J,turboGrp.P_nom,turboGrp.dynType,turboGrp.power,turboGrp.speed_thr,turboGrp.tau_nom,turboGrp.w_nom,turboGrp.w_start,w_start