Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.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.Elementary.Breaker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker") translateModel(PowerSystems.Examples.AC3ph.Elementary.Breaker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00103/0.00103, allocations: 184 kB / 8.135 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.242/1.242, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008979/0.000898, allocations: 87.42 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1642/0.1642, allocations: 37.97 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.013e-06/7.033e-06, allocations: 0 / 410 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 56.31 MB / 466.3 MB, free: 6.488 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3513/0.4583, allocations: 104.6 MB / 0.5575 GB, free: 6 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.4586, allocations: 91.94 kB / 0.5576 GB, free: 5.91 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.05611/0.5148, allocations: 19.09 MB / 0.5762 GB, free: 2.637 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.051e-05/0.5148, allocations: 16 kB / 0.5763 GB, free: 2.621 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002126/0.517, allocations: 1.063 MB / 0.5773 GB, free: 1.496 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.517, allocations: 8.031 kB / 0.5773 GB, free: 1.488 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007557/0.5178, allocations: 138.8 kB / 0.5774 GB, free: 1.352 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002734/0.5205, allocations: 1.024 MB / 0.5784 GB, free: 292 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.506e-05/0.5206, allocations: 32 kB / 0.5785 GB, free: 260 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.5208, allocations: 43.91 kB / 0.5785 GB, free: 216 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001449/0.5222, allocations: 0.8006 MB / 0.5793 GB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.5239, allocations: 0.9596 MB / 0.5802 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.572e-05/0.524, allocations: 11.92 kB / 0.5802 GB, free: 14.37 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.551e-05/0.5241, allocations: 7.938 kB / 0.5802 GB, free: 14.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.76e-05/0.5242, allocations: 41.98 kB / 0.5803 GB, free: 14.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006127/0.5303, allocations: 4.014 MB / 0.5842 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.5314, allocations: 0.6703 MB / 0.5849 GB, free: 9.469 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006064/0.532, allocations: 447.6 kB / 0.5853 GB, free: 9.027 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-05/0.5321, allocations: 8.656 kB / 0.5853 GB, free: 9.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009257/0.533, allocations: 0.5863 MB / 0.5859 GB, free: 8.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 3.065e-06/0.533, allocations: 0 / 0.5859 GB, free: 8.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=97): time 0.003851/0.5369, allocations: 2.097 MB / 0.5879 GB, free: 6.246 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.441e-05/0.537, allocations: 157.3 kB / 0.5881 GB, free: 6.062 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005203/0.5375, allocations: 385 kB / 0.5884 GB, free: 5.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.528e-05/0.5376, allocations: 29.7 kB / 0.5885 GB, free: 5.645 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002245/0.5378, allocations: 315.8 kB / 0.5888 GB, free: 5.328 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002368/0.5381, allocations: 276 kB / 0.589 GB, free: 5.055 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.501e-05/0.5381, allocations: 0 / 0.589 GB, free: 5.055 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.5383, allocations: 386.8 kB / 0.5894 GB, free: 4.668 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005743/0.5389, allocations: 386.2 kB / 0.5898 GB, free: 4.293 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007245/0.5396, allocations: 0.5843 MB / 0.5903 GB, free: 3.621 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006928/0.5403, allocations: 470.4 kB / 0.5908 GB, free: 3.168 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.176e-05/0.5404, allocations: 4 kB / 0.5908 GB, free: 3.164 MB / 426.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002919/0.5433, allocations: 1.4 MB / 0.5922 GB, free: 1.746 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.5433, allocations: 9.5 kB / 0.5922 GB, free: 1.738 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002322/0.5457, allocations: 1.146 MB / 0.5933 GB, free: 0.5898 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/0.547, allocations: 432.4 kB / 0.5937 GB, free: 168 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005026/0.5475, allocations: 127.8 kB / 0.5938 GB, free: 40 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006675/0.5542, allocations: 4.218 MB / 0.5979 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007175/0.5549, allocations: 47.95 kB / 0.598 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.877e-05/0.555, allocations: 39.98 kB / 0.598 GB, free: 11.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 46 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.breaker.breaker_a.arc,breaker.breaker_a.arc,$PRE.breaker.breaker_a.open,breaker.breaker_a.open,breaker.breaker_a.closed,$PRE.breaker.breaker_a.t0,breaker.breaker_a.t0,breaker.breaker_a.opening,$PRE.breaker.breaker_b.arc,breaker.breaker_b.arc,$PRE.breaker.breaker_b.open,breaker.breaker_b.open,breaker.breaker_b.closed,$PRE.breaker.breaker_b.t0,breaker.breaker_b.t0,breaker.breaker_b.opening,$PRE.breaker.breaker_c.arc,breaker.breaker_c.arc,$PRE.breaker.breaker_c.open,breaker.breaker_c.open,breaker.breaker_c.closed,$PRE.breaker.breaker_c.t0,breaker.breaker_c.t0,breaker.breaker_c.opening,$PRE.relay.y[1],relay.y[1],$PRE.relay.y[2],relay.y[2],$PRE.relay.y[3],relay.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 99 * Array equations: 2 * Algorithm blocks: 1 * 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 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0002829/0.5553, allocations: 178.4 kB / 0.5982 GB, free: 11.42 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.5555, allocations: 71.25 kB / 0.5983 GB, free: 11.35 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001842/0.5573, allocations: 1.059 MB / 0.5993 GB, free: 10.28 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.442e-05/0.5574, allocations: 16 kB / 0.5993 GB, free: 10.26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.5574, allocations: 4 kB / 0.5993 GB, free: 10.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.5574, allocations: 7.891 kB / 0.5993 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003363/0.5608, allocations: 2 MB / 0.6013 GB, free: 8.191 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.5608, allocations: 4 kB / 0.6013 GB, free: 8.188 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006868/0.5615, allocations: 119.9 kB / 0.6014 GB, free: 8.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000163/0.5617, allocations: 86.55 kB / 0.6015 GB, free: 7.977 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-05/0.5617, allocations: 15.94 kB / 0.6015 GB, free: 7.961 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002604/0.5643, allocations: 3.741 MB / 0.6051 GB, free: 3.875 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5644, allocations: 4.25 kB / 0.6051 GB, free: 3.871 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002588/0.567, allocations: 1.741 MB / 0.6068 GB, free: 2.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001727/0.5671, allocations: 148.2 kB / 0.607 GB, free: 1.906 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.5673, allocations: 11.89 kB / 0.607 GB, free: 1.895 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000514/0.5678, allocations: 51.95 kB / 0.607 GB, free: 1.844 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.568, allocations: 68.67 kB / 0.6071 GB, free: 1.777 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.404e-05/0.5681, allocations: 27.98 kB / 0.6071 GB, free: 1.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003801/0.5685, allocations: 287.2 kB / 0.6074 GB, free: 1.469 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001046/0.5695, allocations: 239.9 kB / 0.6076 GB, free: 1.234 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 33 (breaker.breaker_c.closed,breaker.breaker_b.closed,breaker.breaker_a.closed,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,breaker.breaker_a.arc,breaker.breaker_a.open,breaker.breaker_a.t0,breaker.breaker_a.opening,breaker.breaker_b.arc,breaker.breaker_b.open,breaker.breaker_b.t0,breaker.breaker_b.opening,breaker.breaker_c.arc,breaker.breaker_c.open,breaker.breaker_c.t0,breaker.breaker_c.opening,relay.y[1],relay.y[2],relay.y[3],relay.cnt,system.initime) * Number of discrete states: 11 (breaker.breaker_a.arc,breaker.breaker_b.arc,breaker.breaker_c.arc,relay.y[3],relay.y[2],relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_c.open,breaker.breaker_a.open,breaker.breaker_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 72 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003747/0.5699, allocations: 158.3 kB / 0.6078 GB, free: 1.07 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002361/0.5723, allocations: 1.225 MB / 0.609 GB, free: 15.84 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5723, allocations: 8.062 kB / 0.609 GB, free: 15.83 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.5735, allocations: 0.8927 MB / 0.6099 GB, free: 14.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005644/0.5741, allocations: 90.05 kB / 0.61 GB, free: 14.81 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00315/0.5772, allocations: 1.45 MB / 0.6114 GB, free: 13.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001178/0.5784, allocations: 1.111 MB / 0.6125 GB, free: 12.18 MB / 458.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5785, allocations: 4 kB / 0.6125 GB, free: 12.18 MB / 458.7 MB Notification: Performance of Templates: time 0.02333/0.6018, allocations: 11.95 MB / 0.6241 GB, free: 228 kB / 458.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Breaker.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,meter.i[1],meter.i[2],meter.i[3],meter.p[1],meter.p[2],meter.p[3],meter.v[1],meter.v[2],meter.v[3] Variables in the result:breaker.I_nom,breaker.V_nom,breaker.breaker_a.D,breaker.breaker_a.Earc,breaker.breaker_a.R0,breaker.breaker_a.arcBreaker.E,breaker.breaker_a.arcBreaker.r,breaker.breaker_a.epsG,breaker.breaker_a.epsR,breaker.breaker_a.t_opening,breaker.breaker_b.D,breaker.breaker_b.Earc,breaker.breaker_b.R0,breaker.breaker_b.arcBreaker.E,breaker.breaker_b.arcBreaker.r,breaker.breaker_b.epsG,breaker.breaker_b.epsR,breaker.breaker_b.t_opening,breaker.breaker_c.D,breaker.breaker_c.Earc,breaker.breaker_c.R0,breaker.breaker_c.arcBreaker.E,breaker.breaker_c.arcBreaker.r,breaker.breaker_c.epsG,breaker.breaker_c.epsR,breaker.breaker_c.t_opening,breaker.epsG,breaker.epsR,breaker.eps[1],breaker.eps[2],breaker.n,breaker.par.D,breaker.par.Earc,breaker.par.R0,breaker.par.t_opening,ind.L,ind.L0,ind.R,ind.RL_base[1],ind.RL_base[2],ind.S_nom,ind.V_nom,ind.dynType,ind.f_nom,ind.i_start[1],ind.i_start[2],ind.i_start[3],ind.puUnits,ind.r,ind.v_start[1],ind.v_start[2],ind.v_start[3],ind.x_m,ind.x_s,meter.I_base,meter.S_nom,meter.V_base,meter.V_nom,meter.abc,meter.av,meter.i[1],meter.i[2],meter.i[3],meter.p[1],meter.p[2],meter.p[3],meter.puUnits,meter.tcst,meter.v[1],meter.v[2],meter.v[3],relay.ini_state,relay.n,relay.switched[1],relay.switched[2],relay.switched[3],relay.t_switch[1],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,transPh.a_end,transPh.a_start,transPh.coef,transPh.n,transPh.ph_end,transPh.ph_start,transPh.t_change,transPh.t_duration,voltage.S_nom,voltage.V_base,voltage.V_nom,voltage.alpha0,voltage.f,voltage.fType,voltage.puUnits,voltage.use_vPhasor_in,voltage.v0