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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001109/0.001109, allocations: 181.9 kB / 8.137 MB, free: 0.8633 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.081/1.081, allocations: 194.2 MB / 202.8 MB, free: 1.992 MB / 162.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001566/0.001566, allocations: 113.2 kB / 247.8 MB, free: 4.996 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1517/0.1517, allocations: 37.9 MB / 330.5 MB, free: 7.098 MB / 242.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1601/0.3118, allocations: 59.35 MB / 389.9 MB, free: 20.08 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08326/0.395, allocations: 53.22 MB / 443.1 MB, free: 14.84 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.272/0.6671, allocations: 101.6 MB / 0.5319 GB, free: 7.691 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.6673, allocations: 91.25 kB / 0.532 GB, free: 7.645 MB / 370.8 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.07118/0.7385, allocations: 25.89 MB / 0.5573 GB, free: 1.406 MB / 386.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.7386, allocations: 12 kB / 0.5573 GB, free: 1.395 MB / 386.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001362/0.74, allocations: 206.1 kB / 0.5575 GB, free: 1.195 MB / 386.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003309/0.7433, allocations: 1.211 MB / 0.5587 GB, free: 164 kB / 386.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.251e-05/0.7434, allocations: 39.38 kB / 0.5587 GB, free: 128 kB / 386.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002837/0.7437, allocations: 63.98 kB / 0.5588 GB, free: 64 kB / 386.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002161/0.7459, allocations: 1.294 MB / 0.56 GB, free: 15.18 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/0.748, allocations: 1.438 MB / 0.5614 GB, free: 14.02 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.353e-05/0.748, allocations: 15.22 kB / 0.5614 GB, free: 14 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.7481, allocations: 4 kB / 0.5614 GB, free: 14 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-05/0.7482, allocations: 69.28 kB / 0.5615 GB, free: 13.93 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007674/0.7559, allocations: 5.538 MB / 0.5669 GB, free: 9.168 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001329/0.7572, allocations: 1.013 MB / 0.5679 GB, free: 8.461 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009075/0.7582, allocations: 0.8008 MB / 0.5687 GB, free: 7.949 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.671e-05/0.7583, allocations: 13 kB / 0.5687 GB, free: 7.938 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001234/0.7595, allocations: 0.9873 MB / 0.5697 GB, free: 7.184 MB / 402.8 MB Notification: Performance of pre-optimization done (n=157): time 4.688e-06/0.7595, allocations: 4 kB / 0.5697 GB, free: 7.18 MB / 402.8 MB Notification: Performance of matching and sorting (n=158): time 0.005206/0.7647, allocations: 3.403 MB / 0.573 GB, free: 4.094 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.279e-05/0.7648, allocations: 209.2 kB / 0.5732 GB, free: 3.848 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.7653, allocations: 450 kB / 0.5736 GB, free: 3.398 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 8.801e-05/0.7654, allocations: 37.69 kB / 0.5737 GB, free: 3.355 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.7657, allocations: 376.5 kB / 0.574 GB, free: 2.98 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003495/0.766, allocations: 465.4 kB / 0.5745 GB, free: 2.52 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.54e-05/0.7661, allocations: 0 / 0.5745 GB, free: 2.52 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.7663, allocations: 414.7 kB / 0.5749 GB, free: 2.105 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009198/0.7672, allocations: 0.6677 MB / 0.5755 GB, free: 1.438 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.7682, allocations: 0.9371 MB / 0.5764 GB, free: 420 kB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.7694, allocations: 0.778 MB / 0.5772 GB, free: 15.63 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.7694, allocations: 4 kB / 0.5772 GB, free: 15.63 MB / 418.8 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004936/0.7743, allocations: 2.63 MB / 0.5798 GB, free: 12.98 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.7743, allocations: 8 kB / 0.5798 GB, free: 12.97 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004372/0.7787, allocations: 2.287 MB / 0.582 GB, free: 10.69 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003398/0.7821, allocations: 1.044 MB / 0.583 GB, free: 9.641 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005778/0.7827, allocations: 151.7 kB / 0.5832 GB, free: 9.492 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/0.7946, allocations: 7.473 MB / 0.5905 GB, free: 1.898 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008296/0.7955, allocations: 55.84 kB / 0.5905 GB, free: 1.844 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.7956, allocations: 52 kB / 0.5906 GB, free: 1.793 MB / 418.8 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.0003689/0.7959, allocations: 243.9 kB / 0.5908 GB, free: 1.535 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/0.7962, allocations: 98.86 kB / 0.5909 GB, free: 1.438 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002618/0.7988, allocations: 1.676 MB / 0.5925 GB, free: 15.75 MB / 434.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.47e-05/0.7989, allocations: 35.98 kB / 0.5926 GB, free: 15.71 MB / 434.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.7989, allocations: 7.984 kB / 0.5926 GB, free: 15.7 MB / 434.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.7989, allocations: 11.88 kB / 0.5926 GB, free: 15.69 MB / 434.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004876/0.8038, allocations: 3.132 MB / 0.5956 GB, free: 12.49 MB / 434.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.8038, allocations: 7.922 kB / 0.5956 GB, free: 12.48 MB / 434.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002066/0.8059, allocations: 359.9 kB / 0.596 GB, free: 12.13 MB / 434.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001143/0.806, allocations: 32.84 kB / 0.596 GB, free: 12.09 MB / 434.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.315e-05/0.8061, allocations: 15.89 kB / 0.596 GB, free: 12.08 MB / 434.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000851/0.807, allocations: 1.271 MB / 0.5973 GB, free: 10.69 MB / 434.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.807, allocations: 3.984 kB / 0.5973 GB, free: 10.69 MB / 434.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003607/0.8106, allocations: 2.883 MB / 0.6001 GB, free: 7.719 MB / 434.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004889/0.8155, allocations: 4.329 MB / 0.6043 GB, free: 3.305 MB / 434.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005376/0.8161, allocations: 291.9 kB / 0.6046 GB, free: 3 MB / 434.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001961/0.8163, allocations: 27.97 kB / 0.6046 GB, free: 2.973 MB / 434.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000644/0.8169, allocations: 47.86 kB / 0.6047 GB, free: 2.926 MB / 434.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002785/0.8172, allocations: 124.8 kB / 0.6048 GB, free: 2.805 MB / 434.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.792e-05/0.8173, allocations: 39.98 kB / 0.6048 GB, free: 2.766 MB / 434.8 MB Notification: Performance of sort global known variables: time 0.0003888/0.8177, allocations: 334.9 kB / 0.6052 GB, free: 2.438 MB / 434.8 MB Notification: Performance of remove unused functions: time 0.001732/0.8194, allocations: 347.9 kB / 0.6055 GB, free: 2.098 MB / 434.8 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.0003376/0.8198, allocations: 198.7 kB / 0.6057 GB, free: 1.898 MB / 434.8 MB Notification: Performance of simCode: created initialization part: time 0.004076/0.8239, allocations: 2.284 MB / 0.6079 GB, free: 15.59 MB / 450.8 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.8239, allocations: 0 / 0.6079 GB, free: 15.59 MB / 450.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/0.8255, allocations: 1.201 MB / 0.6091 GB, free: 14.37 MB / 450.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007027/0.8262, allocations: 117.9 kB / 0.6092 GB, free: 14.25 MB / 450.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004289/0.8305, allocations: 2.522 MB / 0.6117 GB, free: 11.67 MB / 450.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001106/0.8316, allocations: 1.308 MB / 0.6129 GB, free: 10.34 MB / 450.8 MB Notification: Performance of SimCode: time 7.71e-07/0.8316, allocations: 0 / 0.6129 GB, free: 10.34 MB / 450.8 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Fault.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)