Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) [: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.0009685/0.0009688, allocations: 183.9 kB / 8.135 MB, free: 2.219 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.91 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.0008662/0.0008659, allocations: 91.22 kB / 261.7 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1639/0.1639, allocations: 37.98 MB / 347.7 MB, free: 7.52 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1861/0.35, allocations: 62.43 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08691/0.4369, allocations: 56.32 MB / 466.4 MB, free: 6.383 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2851/0.722, allocations: 106.3 MB / 0.5593 GB, free: 4.293 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.7224, allocations: 83.95 kB / 0.5593 GB, free: 4.211 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.07662/0.799, allocations: 25.93 MB / 0.5846 GB, free: 9.938 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.7991, allocations: 12 kB / 0.5847 GB, free: 9.926 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00126/0.8003, allocations: 202.4 kB / 0.5849 GB, free: 9.727 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003473/0.8038, allocations: 1.216 MB / 0.586 GB, free: 8.469 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.373e-05/0.8039, allocations: 36 kB / 0.5861 GB, free: 8.434 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002039/0.8041, allocations: 64 kB / 0.5861 GB, free: 8.371 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002456/0.8066, allocations: 1.293 MB / 0.5874 GB, free: 7.078 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002525/0.8092, allocations: 1.452 MB / 0.5888 GB, free: 5.539 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.037e-05/0.8092, allocations: 3.984 kB / 0.5888 GB, free: 5.535 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/0.8093, allocations: 4 kB / 0.5888 GB, free: 5.531 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/0.8094, allocations: 69.97 kB / 0.5889 GB, free: 5.465 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008959/0.8184, allocations: 5.534 MB / 0.5943 GB, free: 15.77 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.8201, allocations: 1.017 MB / 0.5953 GB, free: 14.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.8212, allocations: 0.7902 MB / 0.5961 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.051e-05/0.8212, allocations: 13 kB / 0.5961 GB, free: 13.92 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001402/0.8227, allocations: 0.9928 MB / 0.597 GB, free: 12.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=157): time 3.577e-06/0.8227, allocations: 4 kB / 0.597 GB, free: 12.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=158): time 0.005991/0.8287, allocations: 3.399 MB / 0.6004 GB, free: 9.434 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/0.8289, allocations: 209.2 kB / 0.6006 GB, free: 9.188 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006668/0.8295, allocations: 446 kB / 0.601 GB, free: 8.742 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.662e-05/0.8296, allocations: 37.7 kB / 0.601 GB, free: 8.699 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003903/0.83, allocations: 384.4 kB / 0.6014 GB, free: 8.316 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004349/0.8305, allocations: 465.4 kB / 0.6018 GB, free: 7.855 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.706e-05/0.8306, allocations: 4 kB / 0.6018 GB, free: 7.852 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002418/0.8308, allocations: 410.7 kB / 0.6022 GB, free: 7.441 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.8318, allocations: 0.6639 MB / 0.6029 GB, free: 6.773 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.8331, allocations: 0.9332 MB / 0.6038 GB, free: 5.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/0.8344, allocations: 0.7858 MB / 0.6046 GB, free: 4.965 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.8344, allocations: 4 kB / 0.6046 GB, free: 4.961 MB / 442.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.00563/0.8401, allocations: 2.627 MB / 0.6071 GB, free: 2.316 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.8401, allocations: 5.406 kB / 0.6071 GB, free: 2.312 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004759/0.8449, allocations: 2.291 MB / 0.6094 GB, free: 24 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003595/0.8485, allocations: 1.048 MB / 0.6104 GB, free: 14.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006586/0.8492, allocations: 147.7 kB / 0.6105 GB, free: 14.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01365/0.8629, allocations: 7.48 MB / 0.6178 GB, free: 7.234 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001081/0.864, allocations: 51.94 kB / 0.6179 GB, free: 7.184 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.8641, allocations: 52 kB / 0.6179 GB, free: 7.133 MB / 458.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.0004401/0.8646, allocations: 236 kB / 0.6182 GB, free: 6.883 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002777/0.8649, allocations: 102.8 kB / 0.6183 GB, free: 6.781 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002862/0.8677, allocations: 1.68 MB / 0.6199 GB, free: 5.086 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.333e-05/0.8678, allocations: 35.89 kB / 0.6199 GB, free: 5.051 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.8678, allocations: 4 kB / 0.6199 GB, free: 5.047 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.8679, allocations: 3.984 kB / 0.6199 GB, free: 5.043 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005724/0.8736, allocations: 3.139 MB / 0.623 GB, free: 1.836 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.8736, allocations: 3.906 kB / 0.623 GB, free: 1.832 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002172/0.8758, allocations: 367.8 kB / 0.6234 GB, free: 1.473 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001495/0.876, allocations: 32.84 kB / 0.6234 GB, free: 1.438 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.8761, allocations: 15.98 kB / 0.6234 GB, free: 1.422 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.8773, allocations: 1.271 MB / 0.6247 GB, free: 36 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.8773, allocations: 0 / 0.6247 GB, free: 36 kB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004187/0.8815, allocations: 2.883 MB / 0.6275 GB, free: 13.06 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005596/0.8871, allocations: 4.325 MB / 0.6317 GB, free: 8.645 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007278/0.8879, allocations: 303.7 kB / 0.632 GB, free: 8.328 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002225/0.8881, allocations: 23.98 kB / 0.632 GB, free: 8.305 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006962/0.8888, allocations: 47.94 kB / 0.6321 GB, free: 8.258 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003032/0.8891, allocations: 124.8 kB / 0.6322 GB, free: 8.137 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.8892, allocations: 39.98 kB / 0.6322 GB, free: 8.098 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0004729/0.8897, allocations: 338.9 kB / 0.6325 GB, free: 7.766 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001987/0.8917, allocations: 340 kB / 0.6329 GB, free: 7.434 MB / 474.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.0004451/0.8922, allocations: 204.2 kB / 0.6331 GB, free: 7.234 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004782/0.8969, allocations: 2.284 MB / 0.6353 GB, free: 4.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.897, allocations: 0 / 0.6353 GB, free: 4.93 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001699/0.8987, allocations: 1.193 MB / 0.6364 GB, free: 3.715 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.8997, allocations: 129.9 kB / 0.6366 GB, free: 3.59 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005348/0.9051, allocations: 2.511 MB / 0.639 GB, free: 1.023 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.215/1.12, allocations: 1.309 MB / 0.6403 GB, free: 193.7 MB / 474.7 MB Notification: Performance of SimCode: time 3.126e-06/1.12, allocations: 0 / 0.6403 GB, free: 193.7 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)