Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.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.DoubleLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="Time|meterF.i|meterF.p|meterF.v|meterL.i|meterL.p|meterL.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="Time|meterF.i|meterF.p|meterF.v|meterL.i|meterL.p|meterL.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") [: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.001487/0.001487, allocations: 184.4 kB / 8.136 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.184/1.184, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.000871/0.000871, allocations: 83.58 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1667/0.1667, allocations: 37.96 MB / 347.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.683e-06/6.713e-06, allocations: 4 kB / 410 MB, free: 46.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0867/0.08672, allocations: 56.32 MB / 466.3 MB, free: 6.457 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2955/0.3822, allocations: 109.8 MB / 0.5626 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/0.3825, allocations: 87.95 kB / 0.5627 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.07477/0.4573, allocations: 23.74 MB / 0.5859 GB, free: 8.582 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.696e-05/0.4574, allocations: 35.92 kB / 0.5859 GB, free: 8.547 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.003595/0.461, allocations: 1.445 MB / 0.5874 GB, free: 7.035 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.4611, allocations: 8.031 kB / 0.5874 GB, free: 7.027 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003745/0.4615, allocations: 134.4 kB / 0.5875 GB, free: 6.895 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00811/0.4696, allocations: 2.505 MB / 0.5899 GB, free: 4.344 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.987e-05/0.4697, allocations: 28 kB / 0.59 GB, free: 4.316 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003893/0.4701, allocations: 87.89 kB / 0.59 GB, free: 4.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002114/0.4722, allocations: 1.062 MB / 0.5911 GB, free: 3.168 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002765/0.475, allocations: 1.646 MB / 0.5927 GB, free: 1.477 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.574e-05/0.475, allocations: 7.938 kB / 0.5927 GB, free: 1.469 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.4752, allocations: 3.984 kB / 0.5927 GB, free: 1.465 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.799e-05/0.4752, allocations: 34 kB / 0.5927 GB, free: 1.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009525/0.4848, allocations: 5.655 MB / 0.5983 GB, free: 11.64 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.4861, allocations: 0.979 MB / 0.5992 GB, free: 10.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001808/0.488, allocations: 1.143 MB / 0.6003 GB, free: 9.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.916e-05/0.488, allocations: 16.72 kB / 0.6003 GB, free: 9.484 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001663/0.4897, allocations: 1.277 MB / 0.6016 GB, free: 8.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=101): time 2.945e-06/0.4897, allocations: 0 / 0.6016 GB, free: 8.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=105): time 0.01642/0.5062, allocations: 6.804 MB / 0.6082 GB, free: 1.293 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001699/0.5064, allocations: 204.9 kB / 0.6084 GB, free: 1.051 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.5074, allocations: 0.5939 MB / 0.609 GB, free: 464 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003616/0.5078, allocations: 29.7 kB / 0.609 GB, free: 428 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003654/0.5082, allocations: 360 kB / 0.6094 GB, free: 60 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005865/0.5088, allocations: 399.1 kB / 0.6098 GB, free: 15.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.5089, allocations: 4 kB / 0.6098 GB, free: 15.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.509, allocations: 369.9 kB / 0.6101 GB, free: 15.29 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.5104, allocations: 0.984 MB / 0.6111 GB, free: 14.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/0.512, allocations: 1.256 MB / 0.6123 GB, free: 12.95 MB / 458.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.trafo.i1 = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.line.i[1,1] = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.027/0.539, allocations: 8.371 MB / 0.6205 GB, free: 4.535 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/0.539, allocations: 7.906 kB / 0.6205 GB, free: 4.527 MB / 458.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.009906/0.549, allocations: 4.902 MB / 0.6253 GB, free: 15.61 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.549, allocations: 4 kB / 0.6253 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.549, allocations: 11.94 kB / 0.6253 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01466/0.5637, allocations: 6.184 MB / 0.6313 GB, free: 9.406 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007837/0.5645, allocations: 179.7 kB / 0.6315 GB, free: 9.227 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.19/0.7545, allocations: 14.33 MB / 0.6455 GB, free: 190.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.7556, allocations: 55.59 kB / 0.6456 GB, free: 190.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001937/0.7558, allocations: 147.8 kB / 0.6457 GB, free: 190.6 MB / 474.7 MB Warning: Assuming redundant initial conditions for the following 2 initial equations: $DER.trafo.i1 = 0.0 $DER.line.i[1,1] = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,$PRE.ab.fault_pp.t0,ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,trafo.tap_2_internal,trafo.tap_1_internal,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.ab.t_zero,ab.t_zero,$PRE.ab.v_pos,ab.v_pos,$PRE.ab.first,ab.first,$PRE.ab.fault_pp.on,ab.fault_pp.on,$PRE.relay1.y[1],relay1.y[1],$PRE.relay2.y[1],relay2.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * 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: 1 {(29,10.6%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004273/0.7563, allocations: 221.5 kB / 0.6459 GB, free: 190.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.7565, allocations: 103.3 kB / 0.646 GB, free: 190.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01149/0.768, allocations: 4.796 MB / 0.6507 GB, free: 190.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.768, allocations: 15.33 kB / 0.6507 GB, free: 190.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.768, allocations: 3.797 kB / 0.6507 GB, free: 190.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.7681, allocations: 7.562 kB / 0.6507 GB, free: 190.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/0.7821, allocations: 6.568 MB / 0.6571 GB, free: 190 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.7822, allocations: 0 / 0.6571 GB, free: 190 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006148/0.7828, allocations: 127.9 kB / 0.6572 GB, free: 190 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01811/0.8009, allocations: 6.118 MB / 0.6632 GB, free: 189.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005848/0.8015, allocations: 216.2 kB / 0.6634 GB, free: 189.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02243/0.824, allocations: 18.61 MB / 0.6816 GB, free: 180.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.824, allocations: 0 / 0.6816 GB, free: 180.7 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01337/0.8374, allocations: 5.8 MB / 0.6873 GB, free: 176.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/0.8386, allocations: 415.3 kB / 0.6877 GB, free: 175.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004718/0.839, allocations: 168.1 kB / 0.6878 GB, free: 175.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008316/0.8399, allocations: 60.02 kB / 0.6879 GB, free: 175.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003222/0.8402, allocations: 113.3 kB / 0.688 GB, free: 175.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002071/0.8404, allocations: 148.7 kB / 0.6881 GB, free: 175.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0006058/0.841, allocations: 456.6 kB / 0.6886 GB, free: 175.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002336/0.8434, allocations: 488 kB / 0.689 GB, free: 174.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {6,6} * Without analytic Jacobian: 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: 1 {16 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004791/0.8439, allocations: 213.6 kB / 0.6892 GB, free: 174.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005162/0.849, allocations: 2.795 MB / 0.692 GB, free: 172 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.8491, allocations: 3.094 kB / 0.692 GB, free: 172 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004128/0.8532, allocations: 2.216 MB / 0.6941 GB, free: 169.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.8545, allocations: 219 kB / 0.6943 GB, free: 169.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007391/0.8619, allocations: 4.699 MB / 0.6989 GB, free: 165.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007451/0.8627, allocations: 1.277 MB / 0.7002 GB, free: 163.9 MB / 474.7 MB Notification: Performance of SimCode: time 5.41e-07/0.8627, allocations: 3.062 kB / 0.7002 GB, free: 163.9 MB / 474.7 MB Notification: Performance of Templates: time 0.04447/0.9072, allocations: 33.28 MB / 0.7327 GB, free: 131 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches