Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") [: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.2+maint.om/package.mo): time 0.001409/0.00141, allocations: 191.2 kB / 8.136 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.15/1.15, allocations: 194.2 MB / 202.8 MB, free: 8.766 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001861/0.001861, allocations: 116.2 kB / 247.7 MB, free: 6.285 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1727/0.1727, allocations: 37.92 MB / 330.5 MB, free: 6.941 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.001e-06/6.192e-06, allocations: 0 / 389.8 MB, free: 78.12 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08156/0.08158, allocations: 53.22 MB / 443 MB, free: 24.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3015/0.3831, allocations: 94.41 MB / 0.5248 GB, free: 9.258 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.3834, allocations: 86.33 kB / 0.5249 GB, free: 9.246 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04096/0.4244, allocations: 14.49 MB / 0.5391 GB, free: 472 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.816e-05/0.4245, allocations: 19.94 kB / 0.5391 GB, free: 452 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002007/0.4265, allocations: 0.9622 MB / 0.54 GB, free: 15.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.4266, allocations: 8.031 kB / 0.54 GB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002742/0.4268, allocations: 94.95 kB / 0.5401 GB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00309/0.4299, allocations: 1.085 MB / 0.5412 GB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.706e-05/0.43, allocations: 22.69 kB / 0.5412 GB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.4302, allocations: 47.05 kB / 0.5413 GB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001058/0.4312, allocations: 0.5491 MB / 0.5418 GB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.4324, allocations: 0.7287 MB / 0.5425 GB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.4324, allocations: 3.938 kB / 0.5425 GB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-05/0.4325, allocations: 11.03 kB / 0.5425 GB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.4325, allocations: 20 kB / 0.5425 GB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004254/0.4368, allocations: 2.854 MB / 0.5453 GB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006155/0.4374, allocations: 430.5 kB / 0.5457 GB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008029/0.4382, allocations: 476 kB / 0.5462 GB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.079e-05/0.4383, allocations: 12.5 kB / 0.5462 GB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007111/0.439, allocations: 0.5074 MB / 0.5467 GB, free: 9.863 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 3.577e-06/0.439, allocations: 4 kB / 0.5467 GB, free: 9.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=82): time 0.002871/0.4419, allocations: 1.657 MB / 0.5483 GB, free: 8.461 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.903e-05/0.442, allocations: 204.2 kB / 0.5485 GB, free: 8.223 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004891/0.4425, allocations: 389 kB / 0.5489 GB, free: 7.914 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.202e-05/0.4426, allocations: 48.41 kB / 0.5489 GB, free: 7.867 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002095/0.4428, allocations: 266.5 kB / 0.5492 GB, free: 7.629 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.443, allocations: 225.5 kB / 0.5494 GB, free: 7.445 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.484e-05/0.443, allocations: 0 / 0.5494 GB, free: 7.445 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4432, allocations: 378.7 kB / 0.5498 GB, free: 7.094 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004316/0.4436, allocations: 296.2 kB / 0.55 GB, free: 6.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005508/0.4442, allocations: 479.2 kB / 0.5505 GB, free: 6.492 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004646/0.4447, allocations: 323.1 kB / 0.5508 GB, free: 6.273 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4447, allocations: 0 / 0.5508 GB, free: 6.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001541/0.4462, allocations: 0.9191 MB / 0.5517 GB, free: 5.535 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4462, allocations: 4 kB / 0.5517 GB, free: 5.531 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.4463, allocations: 8 kB / 0.5517 GB, free: 5.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005143/0.4468, allocations: 134.3 kB / 0.5518 GB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009102/0.4477, allocations: 213 kB / 0.552 GB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002918/0.4506, allocations: 2.923 MB / 0.5549 GB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005336/0.4512, allocations: 27.97 kB / 0.5549 GB, free: 2.184 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.628e-05/0.4513, allocations: 34.91 kB / 0.555 GB, free: 2.156 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 64 (system.initime,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pg.t0,fault_Ab.fault_pg.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch1.switch_2.arc,switch1.switch_2.arc,$PRE.switch1.switch_2.open,switch1.switch_2.open,switch1.switch_2.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.switch2.switch_2.arc,switch2.switch_2.arc,$PRE.switch2.switch_2.open,switch2.switch_2.open,switch2.switch_2.closed,$PRE.fault_Ab.t_zero,fault_Ab.t_zero,$PRE.fault_Ab.v_pos,fault_Ab.v_pos,$PRE.fault_Ab.first,fault_Ab.first,$PRE.fault_Ab.fault_pp.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pg.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * 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: 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.0002975/0.4516, allocations: 234.5 kB / 0.5552 GB, free: 1.922 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.4517, allocations: 63.25 kB / 0.5552 GB, free: 1.859 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001432/0.4532, allocations: 0.8191 MB / 0.556 GB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.4532, allocations: 11.91 kB / 0.5561 GB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4532, allocations: 3.938 kB / 0.5561 GB, free: 1.227 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.4532, allocations: 3.984 kB / 0.5561 GB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002697/0.4559, allocations: 1.633 MB / 0.5577 GB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4559, allocations: 0 / 0.5577 GB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007236/0.4567, allocations: 153.6 kB / 0.5578 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006298/0.4573, allocations: 146.2 kB / 0.5579 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.812e-05/0.4574, allocations: 18.98 kB / 0.558 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002797/0.4602, allocations: 2.935 MB / 0.5608 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4602, allocations: 0 / 0.5608 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002063/0.4623, allocations: 1.374 MB / 0.5622 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004465/0.4628, allocations: 202.8 kB / 0.5624 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/0.4629, allocations: 23.86 kB / 0.5624 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000435/0.4634, allocations: 31.78 kB / 0.5624 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.4636, allocations: 80.08 kB / 0.5625 GB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.976e-05/0.4637, allocations: 35.11 kB / 0.5625 GB, free: 11.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003964/0.4641, allocations: 288.1 kB / 0.5628 GB, free: 11.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009312/0.465, allocations: 183.9 kB / 0.563 GB, free: 10.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (line.i1[1],line.i1[2],line.i2[1],line.i2[2]) * Number of discrete variables: 43 (switch1.switch_2.closed,switch1.switch_1.closed,switch2.switch_1.closed,switch2.switch_2.closed,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,relay1.y[1],relay1.y[2],relay1.cnt,relay2.y[1],relay2.y[2],relay2.cnt,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_2.arc,switch1.switch_2.open,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_2.arc,switch2.switch_2.open,fault_Ab.t_zero,fault_Ab.v_pos,fault_Ab.first,fault_Ab.fault_pp.on,fault_Ab.fault_pp.t0,fault_Ab.fault_pg.on,fault_Ab.fault_pg.t0,system.initime) * Number of discrete states: 17 (fault_Ab.t_zero,fault_Ab.fault_pp.on,fault_Ab.fault_pg.on,fault_Ab.v_pos,fault_Ab.first,relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_2.open,switch2.switch_1.open,relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,switch1.switch_2.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 9 * 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.0003546/0.4654, allocations: 162 kB / 0.5631 GB, free: 10.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002012/0.4674, allocations: 1.085 MB / 0.5642 GB, free: 9.801 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.4674, allocations: 3.938 kB / 0.5642 GB, free: 9.797 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/0.4688, allocations: 0.7725 MB / 0.5649 GB, free: 9.137 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007357/0.4696, allocations: 116.6 kB / 0.5651 GB, free: 9.047 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003399/0.473, allocations: 1.415 MB / 0.5664 GB, free: 7.746 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009286/0.4739, allocations: 1.064 MB / 0.5675 GB, free: 6.68 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.4739, allocations: 0 / 0.5675 GB, free: 6.68 MB / 378.7 MB Notification: Performance of Templates: time 0.01839/0.4923, allocations: 9.599 MB / 0.5769 GB, free: 13.17 MB / 394.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1)