Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.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.Transmission.FaultRXline,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_FaultRXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001/0.001, allocations: 192.5 kB / 8.139 MB, free: 2.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9874/0.9874, allocations: 194.2 MB / 202.8 MB, free: 8.672 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.001599/0.001599, allocations: 119.1 kB / 247.7 MB, free: 6.398 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1509/0.1509, allocations: 37.92 MB / 330.5 MB, free: 6.984 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1686/0.3196, allocations: 59.35 MB / 389.9 MB, free: 78.06 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07509/0.3947, allocations: 53.23 MB / 443.1 MB, free: 24.92 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2497/0.6444, allocations: 100.3 MB / 0.5307 GB, free: 7.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002149/0.6447, allocations: 89.75 kB / 0.5308 GB, free: 7.543 MB / 346.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.0664/0.7111, allocations: 26.02 MB / 0.5562 GB, free: 1.211 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.7112, allocations: 8 kB / 0.5562 GB, free: 1.203 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/0.7123, allocations: 206.3 kB / 0.5564 GB, free: 1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003024/0.7153, allocations: 1.31 MB / 0.5577 GB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.835e-05/0.7154, allocations: 39.94 kB / 0.5577 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/0.7156, allocations: 63.98 kB / 0.5578 GB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001948/0.7176, allocations: 1.319 MB / 0.559 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002022/0.7196, allocations: 1.459 MB / 0.5605 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.223e-05/0.7196, allocations: 3.906 kB / 0.5605 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/0.7198, allocations: 7.984 kB / 0.5605 GB, free: 13.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.159e-05/0.7199, allocations: 69.3 kB / 0.5606 GB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007642/0.7275, allocations: 5.606 MB / 0.566 GB, free: 8.824 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.7287, allocations: 0.899 MB / 0.5669 GB, free: 8.219 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000933/0.7296, allocations: 0.8141 MB / 0.5677 GB, free: 7.699 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.472e-05/0.7297, allocations: 12.94 kB / 0.5677 GB, free: 7.684 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.7309, allocations: 1.017 MB / 0.5687 GB, free: 6.902 MB / 378.7 MB Notification: Performance of pre-optimization done (n=161): time 3.967e-06/0.7309, allocations: 5.531 kB / 0.5687 GB, free: 6.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=162): time 0.005381/0.7363, allocations: 3.553 MB / 0.5722 GB, free: 4.062 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.7364, allocations: 242.8 kB / 0.5724 GB, free: 3.781 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005417/0.737, allocations: 456.5 kB / 0.5728 GB, free: 3.422 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.927e-05/0.7371, allocations: 37.33 kB / 0.5729 GB, free: 3.383 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002568/0.7374, allocations: 391.8 kB / 0.5733 GB, free: 3.035 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003746/0.7377, allocations: 480.1 kB / 0.5737 GB, free: 2.625 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.19e-05/0.7378, allocations: 3.938 kB / 0.5737 GB, free: 2.621 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.738, allocations: 412.8 kB / 0.5741 GB, free: 2.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009893/0.739, allocations: 0.6733 MB / 0.5748 GB, free: 1.609 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.7401, allocations: 0.96 MB / 0.5757 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.7413, allocations: 0.7936 MB / 0.5765 GB, free: 15.76 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.7413, allocations: 4 kB / 0.5765 GB, free: 15.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005063/0.7463, allocations: 2.646 MB / 0.5791 GB, free: 13.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.7464, allocations: 7.906 kB / 0.5791 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004313/0.7507, allocations: 2.28 MB / 0.5813 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003244/0.754, allocations: 1.031 MB / 0.5823 GB, free: 9.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004803/0.7545, allocations: 139.7 kB / 0.5824 GB, free: 9.633 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/0.7662, allocations: 7.448 MB / 0.5897 GB, free: 2.059 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008763/0.7671, allocations: 55.88 kB / 0.5898 GB, free: 2.004 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001527/0.7673, allocations: 56 kB / 0.5898 GB, free: 1.949 MB / 394.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.0003402/0.7676, allocations: 248 kB / 0.5901 GB, free: 1.688 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002394/0.7679, allocations: 106.8 kB / 0.5902 GB, free: 1.582 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002707/0.7706, allocations: 1.696 MB / 0.5918 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.231e-05/0.7707, allocations: 31.98 kB / 0.5918 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.7707, allocations: 4 kB / 0.5919 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.7707, allocations: 7.969 kB / 0.5919 GB, free: 15.83 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005364/0.7761, allocations: 3.441 MB / 0.5952 GB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.904e-06/0.7761, allocations: 4 kB / 0.5952 GB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002045/0.7781, allocations: 359.8 kB / 0.5956 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001639/0.7783, allocations: 60.81 kB / 0.5956 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.7784, allocations: 19.98 kB / 0.5956 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00113/0.7796, allocations: 1.498 MB / 0.5971 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.7796, allocations: 4 kB / 0.5971 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004059/0.7836, allocations: 3.042 MB / 0.6001 GB, free: 7.043 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005128/0.7888, allocations: 4.473 MB / 0.6044 GB, free: 2.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005857/0.7894, allocations: 315.7 kB / 0.6048 GB, free: 2.102 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003205/0.7897, allocations: 23.98 kB / 0.6048 GB, free: 2.078 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007194/0.7905, allocations: 43.94 kB / 0.6048 GB, free: 2.035 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002798/0.7908, allocations: 136.7 kB / 0.6049 GB, free: 1.902 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.7909, allocations: 55.91 kB / 0.605 GB, free: 1.848 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004317/0.7913, allocations: 342.9 kB / 0.6053 GB, free: 1.512 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001796/0.7931, allocations: 352 kB / 0.6057 GB, free: 1.168 MB / 410.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.0003872/0.7935, allocations: 202.7 kB / 0.6059 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004046/0.7976, allocations: 2.305 MB / 0.6081 GB, free: 14.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.7976, allocations: 4 kB / 0.6081 GB, free: 14.63 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.7992, allocations: 1.307 MB / 0.6094 GB, free: 13.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006788/0.7999, allocations: 118 kB / 0.6095 GB, free: 13.19 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004514/0.8045, allocations: 2.594 MB / 0.612 GB, free: 10.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/0.8057, allocations: 1.32 MB / 0.6133 GB, free: 9.168 MB / 426.7 MB Notification: Performance of SimCode: time 4.51e-07/0.8057, allocations: 0 / 0.6133 GB, free: 9.168 MB / 426.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Transmission_FaultRXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Transmission_FaultRXline.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe 2>&1)