Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.001298/0.001298, allocations: 183.7 kB / 8.138 MB, free: 2.184 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.18/1.18, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.001217/0.001217, allocations: 91.14 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2121/0.2121, allocations: 37.96 MB / 347.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.166e-06/8.196e-06, allocations: 4 kB / 410 MB, free: 46.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09056/0.09058, allocations: 56.32 MB / 466.3 MB, free: 6.449 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2658/0.3564, allocations: 97.89 MB / 0.551 GB, free: 12.65 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/0.3566, allocations: 95.88 kB / 0.5511 GB, free: 12.56 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02746/0.3841, allocations: 9.706 MB / 0.5606 GB, free: 2.754 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.802e-05/0.3842, allocations: 8 kB / 0.5606 GB, free: 2.746 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001123/0.3853, allocations: 0.7104 MB / 0.5613 GB, free: 1.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.3854, allocations: 8.031 kB / 0.5613 GB, free: 1.973 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.3855, allocations: 55.34 kB / 0.5613 GB, free: 1.918 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00224/0.3877, allocations: 0.8891 MB / 0.5622 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.61e-05/0.3878, allocations: 20 kB / 0.5622 GB, free: 0.9688 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.219e-05/0.3878, allocations: 23.94 kB / 0.5622 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000584/0.3884, allocations: 329.4 kB / 0.5626 GB, free: 0.625 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006646/0.3891, allocations: 418.2 kB / 0.563 GB, free: 188 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.3891, allocations: 7.984 kB / 0.563 GB, free: 180 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.3892, allocations: 0.75 kB / 0.563 GB, free: 180 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.3892, allocations: 8 kB / 0.563 GB, free: 172 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0022/0.3914, allocations: 1.639 MB / 0.5646 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.3918, allocations: 200.6 kB / 0.5648 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004619/0.3922, allocations: 213.9 kB / 0.565 GB, free: 14.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.3923, allocations: 8.234 kB / 0.565 GB, free: 14.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003386/0.3926, allocations: 255.3 kB / 0.5652 GB, free: 13.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 2.054e-06/0.3926, allocations: 4 kB / 0.5652 GB, free: 13.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.001572/0.3942, allocations: 0.8984 MB / 0.5661 GB, free: 12.78 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.322e-05/0.3943, allocations: 140.5 kB / 0.5662 GB, free: 12.61 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003174/0.3946, allocations: 306 kB / 0.5665 GB, free: 12.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.3947, allocations: 29.7 kB / 0.5666 GB, free: 12.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.3948, allocations: 208 kB / 0.5668 GB, free: 12.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.44e-05/0.3949, allocations: 114.5 kB / 0.5669 GB, free: 11.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.85e-05/0.3949, allocations: 0 / 0.5669 GB, free: 11.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.3951, allocations: 354.7 kB / 0.5672 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.3953, allocations: 121 kB / 0.5673 GB, free: 11.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/0.3956, allocations: 242.5 kB / 0.5675 GB, free: 11.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.3958, allocations: 148 kB / 0.5677 GB, free: 11.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3958, allocations: 4 kB / 0.5677 GB, free: 11.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007483/0.3966, allocations: 458.2 kB / 0.5681 GB, free: 10.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3966, allocations: 4.625 kB / 0.5681 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.3966, allocations: 4 kB / 0.5681 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002885/0.3969, allocations: 82.11 kB / 0.5682 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.3972, allocations: 71.84 kB / 0.5683 GB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002228/0.3994, allocations: 2.644 MB / 0.5709 GB, free: 7.543 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.3998, allocations: 19.98 kB / 0.5709 GB, free: 7.523 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.3998, allocations: 19.98 kB / 0.5709 GB, free: 7.504 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.relay.y[1],relay.y[1],$PRE.breaker.breaker_1.arc,breaker.breaker_1.arc,$PRE.breaker.breaker_1.open,breaker.breaker_1.open,breaker.breaker_1.closed,$PRE.breaker.breaker_1.t0,breaker.breaker_1.t0,breaker.breaker_1.opening) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001542/0.4, allocations: 154.7 kB / 0.571 GB, free: 7.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.176e-05/0.4, allocations: 43.44 kB / 0.5711 GB, free: 7.297 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007132/0.4008, allocations: 395.3 kB / 0.5715 GB, free: 6.898 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.4008, allocations: 7.984 kB / 0.5715 GB, free: 6.891 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.4008, allocations: 0 / 0.5715 GB, free: 6.891 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.4008, allocations: 3.906 kB / 0.5715 GB, free: 6.887 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001302/0.4021, allocations: 0.9028 MB / 0.5724 GB, free: 5.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.4021, allocations: 0 / 0.5724 GB, free: 5.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.4023, allocations: 39.92 kB / 0.5724 GB, free: 5.891 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002394/0.4026, allocations: 89.58 kB / 0.5725 GB, free: 5.797 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.128e-05/0.4026, allocations: 7.984 kB / 0.5725 GB, free: 5.789 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.4046, allocations: 2.641 MB / 0.5751 GB, free: 2.918 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.4046, allocations: 0 / 0.5751 GB, free: 2.918 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009449/0.4056, allocations: 0.6966 MB / 0.5758 GB, free: 2.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.4057, allocations: 116.6 kB / 0.5759 GB, free: 2.047 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.213e-05/0.4058, allocations: 8 kB / 0.5759 GB, free: 2.039 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002619/0.406, allocations: 19.89 kB / 0.5759 GB, free: 2.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.233e-05/0.4061, allocations: 27.95 kB / 0.5759 GB, free: 1.992 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-05/0.4062, allocations: 16.05 kB / 0.5759 GB, free: 1.977 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002492/0.4064, allocations: 236.6 kB / 0.5762 GB, free: 1.742 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005439/0.407, allocations: 111.9 kB / 0.5763 GB, free: 1.633 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.0002303/0.4072, allocations: 115.2 kB / 0.5764 GB, free: 1.508 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008251/0.408, allocations: 0.5675 MB / 0.5769 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.408, allocations: 0 / 0.5769 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005571/0.4086, allocations: 430.1 kB / 0.5773 GB, free: 480 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.4091, allocations: 77.19 kB / 0.5774 GB, free: 404 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.4104, allocations: 0.7094 MB / 0.5781 GB, free: 15.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005196/0.4109, allocations: 0.9128 MB / 0.579 GB, free: 14.71 MB / 426.7 MB Notification: Performance of SimCode: time 2.7e-07/0.411, allocations: 0 / 0.579 GB, free: 14.71 MB / 426.7 MB Notification: Performance of Templates: time 0.009632/0.4206, allocations: 4.999 MB / 0.5839 GB, free: 9.73 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,meter.i,meter.p,meter.v Variables in the result:breaker.I_nom,breaker.V_nom,breaker.breaker_1.D,breaker.breaker_1.Earc,breaker.breaker_1.R0,breaker.breaker_1.arcBreaker.E,breaker.breaker_1.arcBreaker.r,breaker.breaker_1.epsG,breaker.breaker_1.epsR,breaker.breaker_1.t_opening,breaker.epsG,breaker.epsR,breaker.eps[1],breaker.eps[2],breaker.par.D,breaker.par.Earc,breaker.par.R0,breaker.par.t_opening,ind.L[1,1],ind.L[1,2],ind.L[2,1],ind.L[2,2],ind.RL_base[1],ind.RL_base[2],ind.R[1],ind.R[2],ind.S_nom,ind.V_nom,ind.dynType,ind.f_nom,ind.i_start[1],ind.i_start[2],ind.puUnits,ind.r[1],ind.r[2],ind.v_start[1],ind.v_start[2],ind.x[1,1],ind.x[1,2],ind.x[2,1],ind.x[2,2],meter.I_base,meter.S_nom,meter.V_base,meter.V_nom,meter.av,meter.i,meter.p,meter.puUnits,meter.tcst,meter.v,relay.ini_state,relay.n,relay.switched[1],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.pol,voltage.puUnits,voltage.use_vPhasor_in,voltage.v0eff