Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.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.RXline,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_RXline",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.001037/0.001037, allocations: 180.2 kB / 8.134 MB, free: 2.211 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.9902/0.9902, allocations: 194.2 MB / 202.8 MB, free: 8.738 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.001665/0.001665, allocations: 121.3 kB / 247.7 MB, free: 6.316 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1531/0.1531, allocations: 37.92 MB / 330.5 MB, free: 6.91 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.173/0.3261, allocations: 59.34 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06847/0.3946, allocations: 53.24 MB / 443.1 MB, free: 24.88 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.232/0.6266, allocations: 96.85 MB / 0.5273 GB, free: 8.699 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002031/0.6269, allocations: 86.98 kB / 0.5274 GB, free: 8.688 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.05707/0.6839, allocations: 22.66 MB / 0.5495 GB, free: 7.176 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.684, allocations: 11.94 kB / 0.5495 GB, free: 7.164 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008971/0.6849, allocations: 154.6 kB / 0.5497 GB, free: 7.012 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002887/0.6878, allocations: 1.21 MB / 0.5509 GB, free: 5.973 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.448e-05/0.6879, allocations: 39.23 kB / 0.5509 GB, free: 5.938 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.688, allocations: 48 kB / 0.5509 GB, free: 5.891 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001537/0.6896, allocations: 1.033 MB / 0.552 GB, free: 5.188 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.6912, allocations: 1.162 MB / 0.5531 GB, free: 4.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.8e-05/0.6912, allocations: 7.984 kB / 0.5531 GB, free: 4.242 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.708e-05/0.6913, allocations: 15.84 kB / 0.5531 GB, free: 4.227 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.308e-05/0.6914, allocations: 61.22 kB / 0.5532 GB, free: 4.172 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005573/0.697, allocations: 4.414 MB / 0.5575 GB, free: 356 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.698, allocations: 0.7862 MB / 0.5583 GB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007163/0.6987, allocations: 0.6275 MB / 0.5589 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.616e-05/0.6988, allocations: 12.59 kB / 0.5589 GB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000952/0.6997, allocations: 0.8052 MB / 0.5597 GB, free: 14.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=126): time 2.986e-06/0.6998, allocations: 4 kB / 0.5597 GB, free: 14.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.003996/0.7038, allocations: 2.745 MB / 0.5623 GB, free: 12.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.7039, allocations: 241 kB / 0.5626 GB, free: 12.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004203/0.7043, allocations: 380.9 kB / 0.5629 GB, free: 11.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.855e-05/0.7044, allocations: 41.14 kB / 0.563 GB, free: 11.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.7046, allocations: 336.5 kB / 0.5633 GB, free: 11.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002746/0.7049, allocations: 365.2 kB / 0.5636 GB, free: 11.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.406e-05/0.7049, allocations: 0 / 0.5636 GB, free: 11.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.7051, allocations: 394.2 kB / 0.564 GB, free: 10.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006949/0.7058, allocations: 0.5142 MB / 0.5645 GB, free: 10.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008028/0.7066, allocations: 0.743 MB / 0.5653 GB, free: 9.969 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008636/0.7075, allocations: 0.595 MB / 0.5658 GB, free: 9.547 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.7075, allocations: 8 kB / 0.5658 GB, free: 9.539 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003319/0.7108, allocations: 1.904 MB / 0.5677 GB, free: 8.039 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.7108, allocations: 4.5 kB / 0.5677 GB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002709/0.7135, allocations: 1.609 MB / 0.5693 GB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001809/0.7154, allocations: 0.6391 MB / 0.5699 GB, free: 6.312 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004561/0.7158, allocations: 137.4 kB / 0.57 GB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00755/0.7234, allocations: 5.362 MB / 0.5753 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005983/0.724, allocations: 31.97 kB / 0.5753 GB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.571e-05/0.7241, allocations: 47.98 kB / 0.5753 GB, free: 0.7461 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 116 * Array equations: 3 * 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 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003125/0.7244, allocations: 229.3 kB / 0.5756 GB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.7246, allocations: 86.95 kB / 0.5756 GB, free: 424 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001996/0.7266, allocations: 1.285 MB / 0.5769 GB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.52e-05/0.7267, allocations: 24 kB / 0.5769 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.7267, allocations: 0 / 0.5769 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.275e-05/0.7267, allocations: 11.88 kB / 0.5769 GB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004106/0.7308, allocations: 2.761 MB / 0.5796 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.7309, allocations: 4.375 kB / 0.5796 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.7319, allocations: 211.8 kB / 0.5798 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.161e-05/0.7319, allocations: 8 kB / 0.5798 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.525e-05/0.732, allocations: 15.98 kB / 0.5799 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.287e-06/0.732, allocations: 11.94 kB / 0.5799 GB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.732, allocations: 8 kB / 0.5799 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002871/0.7349, allocations: 2.392 MB / 0.5822 GB, free: 9.438 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004032/0.739, allocations: 3.604 MB / 0.5857 GB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002089/0.7392, allocations: 156 kB / 0.5859 GB, free: 5.516 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.7394, allocations: 19.98 kB / 0.5859 GB, free: 5.496 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005301/0.7399, allocations: 27.97 kB / 0.5859 GB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.7401, allocations: 100.6 kB / 0.586 GB, free: 5.371 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.7402, allocations: 43.98 kB / 0.5861 GB, free: 5.328 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003639/0.7406, allocations: 290.9 kB / 0.5863 GB, free: 5.043 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001673/0.7423, allocations: 287.8 kB / 0.5866 GB, free: 4.762 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_b.closed,switch1.switch_c.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_b.closed,switch2.switch_c.closed,$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,system.initime) * Number of discrete states: 16 (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_c.open,switch2.switch_a.open,switch2.switch_b.open,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003376/0.7426, allocations: 191.1 kB / 0.5868 GB, free: 4.57 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002977/0.7456, allocations: 1.686 MB / 0.5884 GB, free: 2.859 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.7456, allocations: 0 / 0.5884 GB, free: 2.859 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.7469, allocations: 0.9757 MB / 0.5894 GB, free: 1.875 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006162/0.7475, allocations: 94.17 kB / 0.5895 GB, free: 1.781 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003558/0.7511, allocations: 1.948 MB / 0.5914 GB, free: 15.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009168/0.752, allocations: 1.19 MB / 0.5926 GB, free: 14.54 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.752, allocations: 0 / 0.5926 GB, free: 14.54 MB / 410.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Transmission_RXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Transmission_RXline.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)