Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.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.Transmission.FaultRXline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_FaultRXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_FaultRXline",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.001094/0.001094, allocations: 181.2 kB / 8.132 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.213/1.213, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0008936/0.0008938, allocations: 91.39 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1705/0.1705, allocations: 37.97 MB / 347.7 MB, free: 7.555 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1796/0.3502, allocations: 62.44 MB / 410.1 MB, free: 46.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08476/0.4349, allocations: 56.31 MB / 466.4 MB, free: 6.414 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2719/0.7069, allocations: 105.4 MB / 0.5584 GB, free: 5.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.7071, allocations: 95.92 kB / 0.5585 GB, free: 5.066 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: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.07247/0.7796, allocations: 26.04 MB / 0.5839 GB, free: 10.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.7797, allocations: 11.94 kB / 0.5839 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001385/0.7811, allocations: 206.3 kB / 0.5841 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003908/0.785, allocations: 1.313 MB / 0.5854 GB, free: 9.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.626e-05/0.7851, allocations: 47.94 kB / 0.5854 GB, free: 9.043 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003094/0.7854, allocations: 60 kB / 0.5855 GB, free: 8.984 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002367/0.7878, allocations: 1.316 MB / 0.5868 GB, free: 7.668 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002562/0.7904, allocations: 1.459 MB / 0.5882 GB, free: 6.121 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.695e-05/0.7904, allocations: 11.92 kB / 0.5882 GB, free: 6.109 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.7906, allocations: 4 kB / 0.5882 GB, free: 6.105 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.851e-05/0.7907, allocations: 69.97 kB / 0.5883 GB, free: 6.039 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009156/0.7998, allocations: 5.605 MB / 0.5938 GB, free: 284 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.8012, allocations: 0.8986 MB / 0.5946 GB, free: 15.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.8023, allocations: 0.821 MB / 0.5954 GB, free: 14.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.12e-05/0.8024, allocations: 13 kB / 0.5955 GB, free: 14.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001344/0.8038, allocations: 1.012 MB / 0.5964 GB, free: 13.48 MB / 442.7 MB Notification: Performance of pre-optimization done (n=161): time 4.038e-06/0.8038, allocations: 0 / 0.5964 GB, free: 13.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=162): time 0.006027/0.8098, allocations: 3.561 MB / 0.5999 GB, free: 9.852 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.81, allocations: 246.8 kB / 0.6002 GB, free: 9.562 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006123/0.8106, allocations: 458.1 kB / 0.6006 GB, free: 9.105 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001304/0.8107, allocations: 41.69 kB / 0.6006 GB, free: 9.059 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003693/0.8111, allocations: 380.5 kB / 0.601 GB, free: 8.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004645/0.8116, allocations: 481.3 kB / 0.6015 GB, free: 8.203 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.865e-05/0.8117, allocations: 64 / 0.6015 GB, free: 8.203 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.8119, allocations: 418.7 kB / 0.6019 GB, free: 7.785 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/0.8129, allocations: 0.6756 MB / 0.6025 GB, free: 7.109 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.8141, allocations: 0.9561 MB / 0.6034 GB, free: 6.055 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.8154, allocations: 0.7937 MB / 0.6042 GB, free: 5.262 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.8154, allocations: 0 / 0.6042 GB, free: 5.262 MB / 442.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005444/0.8208, allocations: 2.661 MB / 0.6068 GB, free: 2.586 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.8209, allocations: 4.625 kB / 0.6068 GB, free: 2.582 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004764/0.8257, allocations: 2.268 MB / 0.609 GB, free: 324 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003551/0.8292, allocations: 1.028 MB / 0.61 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006914/0.83, allocations: 143.7 kB / 0.6102 GB, free: 15.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01244/0.8424, allocations: 7.452 MB / 0.6175 GB, free: 7.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009475/0.8434, allocations: 51.94 kB / 0.6175 GB, free: 7.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.8436, allocations: 52 kB / 0.6176 GB, free: 7.469 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 84 (system.initime,$PRE.abc.fault_pp1.t0,abc.fault_pp1.t0,$PRE.abc.fault_pp2.t0,abc.fault_pp2.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition23,$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.abc.theta_zero,abc.theta_zero,$PRE.abc.v_pos,abc.v_pos,$PRE.abc.first,abc.first,$PRE.abc.fault_pp1.on,abc.fault_pp1.on,$PRE.abc.fault_pp2.on,abc.fault_pp2.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 139 * 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,81.9%) 41} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003637/0.8439, allocations: 244 kB / 0.6178 GB, free: 7.211 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.8442, allocations: 98.78 kB / 0.6179 GB, free: 7.113 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002758/0.847, allocations: 1.7 MB / 0.6195 GB, free: 5.402 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.356e-05/0.847, allocations: 35.98 kB / 0.6196 GB, free: 5.367 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.882e-06/0.8471, allocations: 0 / 0.6196 GB, free: 5.367 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.8471, allocations: 15.89 kB / 0.6196 GB, free: 5.352 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005754/0.8528, allocations: 3.43 MB / 0.6229 GB, free: 1.816 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.8529, allocations: 4.375 kB / 0.6229 GB, free: 1.812 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002132/0.855, allocations: 371.6 kB / 0.6233 GB, free: 1.449 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001684/0.8552, allocations: 56.67 kB / 0.6234 GB, free: 1.391 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/0.8553, allocations: 27.95 kB / 0.6234 GB, free: 1.363 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.8565, allocations: 1.494 MB / 0.6248 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.8566, allocations: 7.906 kB / 0.6249 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004029/0.8606, allocations: 3.038 MB / 0.6278 GB, free: 12.56 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005359/0.866, allocations: 4.477 MB / 0.6322 GB, free: 7.945 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006426/0.8667, allocations: 311.7 kB / 0.6325 GB, free: 7.621 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002127/0.8669, allocations: 24.23 kB / 0.6325 GB, free: 7.598 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007122/0.8676, allocations: 51.94 kB / 0.6326 GB, free: 7.547 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003038/0.8679, allocations: 132.7 kB / 0.6327 GB, free: 7.418 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.868, allocations: 47.97 kB / 0.6327 GB, free: 7.371 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0004523/0.8685, allocations: 350.9 kB / 0.6331 GB, free: 7.027 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001878/0.8704, allocations: 355.9 kB / 0.6334 GB, free: 6.68 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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: 57 (switch1.switch_a.closed,switch1.switch_b.closed,switch1.switch_c.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition23,$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,abc.theta_zero,abc.v_pos,abc.first,abc.fault_pp1.on,abc.fault_pp1.t0,abc.fault_pp2.on,abc.fault_pp2.t0,system.initime) * Number of discrete states: 21 (abc.theta_zero,abc.fault_pp1.on,abc.fault_pp2.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_b.open,switch2.switch_c.open,switch2.switch_a.open,abc.v_pos,abc.first,switch1.switch_c.open,switch1.switch_b.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 107 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 11 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004307/0.8708, allocations: 186.9 kB / 0.6336 GB, free: 6.492 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004442/0.8753, allocations: 2.313 MB / 0.6358 GB, free: 4.156 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.8753, allocations: 0 / 0.6358 GB, free: 4.156 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001964/0.8773, allocations: 1.317 MB / 0.6371 GB, free: 2.816 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008258/0.8781, allocations: 123 kB / 0.6372 GB, free: 2.699 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004651/0.8828, allocations: 2.582 MB / 0.6398 GB, free: 44 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1231/1.006, allocations: 1.322 MB / 0.6411 GB, free: 192.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.403e-06/1.006, allocations: 0 / 0.6411 GB, free: 192.9 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_FaultRXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_FaultRXline.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe 2>&1)