Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault") translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.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.001065/0.001065, allocations: 188.7 kB / 8.137 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.217/1.217, allocations: 194.2 MB / 202.8 MB, free: 8.734 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.001691/0.001691, allocations: 117.9 kB / 247.7 MB, free: 6.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1615/0.1615, allocations: 37.91 MB / 330.5 MB, free: 6.918 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.202e-06/6.372e-06, allocations: 0 / 389.8 MB, free: 78.1 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09085/0.09088, allocations: 53.24 MB / 443 MB, free: 24.96 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2928/0.3837, allocations: 101.2 MB / 0.5314 GB, free: 6.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/0.384, allocations: 88.95 kB / 0.5315 GB, free: 6.516 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.07136/0.4554, allocations: 24.51 MB / 0.5555 GB, free: 1.672 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.17e-05/0.4555, allocations: 24 kB / 0.5555 GB, free: 1.648 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.003839/0.4594, allocations: 1.349 MB / 0.5568 GB, free: 304 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.4595, allocations: 12.03 kB / 0.5568 GB, free: 292 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00164/0.4611, allocations: 198.3 kB / 0.557 GB, free: 92 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003767/0.4649, allocations: 1.219 MB / 0.5582 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.191e-05/0.465, allocations: 41.75 kB / 0.5582 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003468/0.4654, allocations: 64.75 kB / 0.5583 GB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002491/0.4679, allocations: 1.3 MB / 0.5596 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002652/0.4705, allocations: 1.432 MB / 0.561 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.932e-05/0.4706, allocations: 11.84 kB / 0.561 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001317/0.4707, allocations: 7.984 kB / 0.561 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001058/0.4708, allocations: 69.78 kB / 0.561 GB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009073/0.4799, allocations: 5.531 MB / 0.5665 GB, free: 8.059 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001612/0.4816, allocations: 1.02 MB / 0.5674 GB, free: 7.348 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001073/0.4827, allocations: 0.8006 MB / 0.5682 GB, free: 6.836 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.037e-05/0.4828, allocations: 9 kB / 0.5682 GB, free: 6.828 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001432/0.4842, allocations: 0.9902 MB / 0.5692 GB, free: 6.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=157): time 5.34e-06/0.4843, allocations: 0 / 0.5692 GB, free: 6.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=158): time 0.00631/0.4906, allocations: 3.412 MB / 0.5725 GB, free: 3.379 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/0.4908, allocations: 209.1 kB / 0.5727 GB, free: 3.137 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006897/0.4915, allocations: 452.4 kB / 0.5732 GB, free: 2.777 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001147/0.4916, allocations: 32.89 kB / 0.5732 GB, free: 2.742 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003936/0.492, allocations: 377.7 kB / 0.5736 GB, free: 2.406 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000526/0.4926, allocations: 463.2 kB / 0.574 GB, free: 2.012 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.111e-05/0.4927, allocations: 3.938 kB / 0.574 GB, free: 2.008 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000225/0.4929, allocations: 412.9 kB / 0.5744 GB, free: 1.637 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009941/0.4939, allocations: 0.6603 MB / 0.575 GB, free: 1.203 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/0.4951, allocations: 0.9334 MB / 0.576 GB, free: 208 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.4965, allocations: 0.7819 MB / 0.5767 GB, free: 15.42 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.26e-05/0.4965, allocations: 4 kB / 0.5767 GB, free: 15.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005761/0.5023, allocations: 2.63 MB / 0.5793 GB, free: 12.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.5023, allocations: 8 kB / 0.5793 GB, free: 12.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005214/0.5076, allocations: 2.284 MB / 0.5815 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003769/0.5114, allocations: 1.044 MB / 0.5825 GB, free: 9.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006992/0.5121, allocations: 147.7 kB / 0.5827 GB, free: 9.285 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0132/0.5253, allocations: 7.488 MB / 0.59 GB, free: 1.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.5264, allocations: 51.84 kB / 0.59 GB, free: 1.629 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002418/0.5267, allocations: 52 kB / 0.5901 GB, free: 1.578 MB / 394.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: 79 (system.initime,$PRE.fault_ab.fault_pp.t0,fault_ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3],$PRE.fault_ab.theta_zero,fault_ab.theta_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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 133 * Array equations: 4 * 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 {(12,97.2%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004685/0.5272, allocations: 240 kB / 0.5903 GB, free: 1.324 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003223/0.5275, allocations: 94.88 kB / 0.5904 GB, free: 1.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002918/0.5304, allocations: 1.684 MB / 0.5921 GB, free: 15.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.915e-05/0.5305, allocations: 35.98 kB / 0.5921 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.5305, allocations: 0 / 0.5921 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.5305, allocations: 7.891 kB / 0.5921 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005627/0.5362, allocations: 3.147 MB / 0.5952 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.5362, allocations: 0 / 0.5952 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002165/0.5384, allocations: 355.9 kB / 0.5955 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001266/0.5385, allocations: 32.83 kB / 0.5955 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.5386, allocations: 23.89 kB / 0.5956 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009241/0.5396, allocations: 1.271 MB / 0.5968 GB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5396, allocations: 0 / 0.5968 GB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004148/0.5437, allocations: 2.879 MB / 0.5996 GB, free: 7.508 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006599/0.5444, allocations: 303.8 kB / 0.5999 GB, free: 7.191 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002965/0.5447, allocations: 23.98 kB / 0.5999 GB, free: 7.168 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007919/0.5455, allocations: 51.94 kB / 0.6 GB, free: 7.117 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002946/0.5458, allocations: 116.8 kB / 0.6001 GB, free: 7.004 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.546, allocations: 43.92 kB / 0.6001 GB, free: 6.961 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004586/0.5464, allocations: 342.9 kB / 0.6005 GB, free: 6.625 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001417/0.5479, allocations: 339.9 kB / 0.6008 GB, free: 6.293 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (line.i1[1],line.i1[2],line.i1[3],line.i2[1],line.i2[2],line.i2[3]) * Number of discrete variables: 54 (switch1.switch_c.closed,switch1.switch_b.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,fault_ab.theta_zero,fault_ab.v_pos,fault_ab.first,fault_ab.fault_pp.on,fault_ab.fault_pp.t0,system.initime) * Number of discrete states: 20 (fault_ab.theta_zero,fault_ab.fault_pp.on,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_a.open,switch2.switch_b.open,switch2.switch_c.open,fault_ab.v_pos,fault_ab.first,switch1.switch_c.open,switch1.switch_a.open,switch1.switch_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 105 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003917/0.5483, allocations: 206.6 kB / 0.601 GB, free: 6.086 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004483/0.5528, allocations: 2.28 MB / 0.6032 GB, free: 3.781 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.5528, allocations: 0.5 kB / 0.6032 GB, free: 3.781 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001729/0.5545, allocations: 1.196 MB / 0.6044 GB, free: 2.562 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009046/0.5554, allocations: 129.1 kB / 0.6045 GB, free: 2.441 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005598/0.561, allocations: 2.515 MB / 0.607 GB, free: 15.86 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001522/0.5626, allocations: 1.293 MB / 0.6082 GB, free: 14.55 MB / 426.7 MB Notification: Performance of SimCode: time 7.62e-07/0.5626, allocations: 0 / 0.6082 GB, free: 14.55 MB / 426.7 MB Notification: Performance of Templates: time 0.03098/0.5936, allocations: 17.27 MB / 0.6251 GB, free: 13.32 MB / 442.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)