Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.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.Tline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_Tline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.Tline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_Tline",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.001131/0.001131, allocations: 183.4 kB / 8.135 MB, free: 2.223 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.337/1.337, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.001047/0.001047, allocations: 89.34 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1769/0.1769, allocations: 37.98 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1958/0.3728, allocations: 62.44 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09725/0.47, allocations: 56.31 MB / 466.4 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3015/0.7716, allocations: 106.8 MB / 0.5598 GB, free: 3.715 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002936/0.7719, allocations: 87.95 kB / 0.5599 GB, free: 3.629 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: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.09058/0.8625, allocations: 30.6 MB / 0.5898 GB, free: 4.684 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.8626, allocations: 8 kB / 0.5898 GB, free: 4.676 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002329/0.8649, allocations: 222.2 kB / 0.59 GB, free: 4.457 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005545/0.8705, allocations: 1.628 MB / 0.5916 GB, free: 2.777 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.961e-05/0.8706, allocations: 40 kB / 0.5916 GB, free: 2.738 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004931/0.8711, allocations: 71.91 kB / 0.5917 GB, free: 2.668 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003047/0.8742, allocations: 1.359 MB / 0.593 GB, free: 1.305 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002984/0.8772, allocations: 1.525 MB / 0.5945 GB, free: 15.7 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.678e-05/0.8773, allocations: 4 kB / 0.5945 GB, free: 15.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.8774, allocations: 7.984 kB / 0.5945 GB, free: 15.69 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003181/0.8777, allocations: 69.97 kB / 0.5946 GB, free: 15.62 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01841/0.8962, allocations: 7.673 MB / 0.6021 GB, free: 7.801 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001918/0.8981, allocations: 1.302 MB / 0.6034 GB, free: 6.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.8997, allocations: 1.174 MB / 0.6045 GB, free: 5.301 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001278/0.8999, allocations: 24.98 kB / 0.6045 GB, free: 5.277 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002284/0.9022, allocations: 1.647 MB / 0.6061 GB, free: 3.602 MB / 442.7 MB Notification: Performance of pre-optimization done (n=177): time 4.038e-06/0.9022, allocations: 0 / 0.6061 GB, free: 3.602 MB / 442.7 MB Notification: Performance of matching and sorting (n=178): time 0.02113/0.9233, allocations: 7.212 MB / 0.6132 GB, free: 12.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001591/0.9235, allocations: 246.9 kB / 0.6134 GB, free: 12.01 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008254/0.9243, allocations: 0.5306 MB / 0.6139 GB, free: 11.47 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003953/0.9247, allocations: 41.69 kB / 0.614 GB, free: 11.42 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003031/0.9251, allocations: 396.7 kB / 0.6144 GB, free: 11.02 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006588/0.9257, allocations: 0.5669 MB / 0.6149 GB, free: 10.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.9259, allocations: 0 / 0.6149 GB, free: 10.45 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.9261, allocations: 434.6 kB / 0.6153 GB, free: 10.02 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001738/0.9278, allocations: 1.23 MB / 0.6165 GB, free: 8.785 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001819/0.9296, allocations: 1.49 MB / 0.618 GB, free: 7.215 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001999/0.9316, allocations: 1.353 MB / 0.6193 GB, free: 5.863 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.9317, allocations: 4 kB / 0.6193 GB, free: 5.859 MB / 458.7 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.02393/0.9556, allocations: 6.756 MB / 0.6259 GB, free: 15.09 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.9557, allocations: 4 kB / 0.6259 GB, free: 15.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01884/0.9745, allocations: 5.584 MB / 0.6314 GB, free: 9.488 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02605/1.001, allocations: 6.606 MB / 0.6378 GB, free: 2.879 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008306/1.001, allocations: 155.7 kB / 0.638 GB, free: 2.727 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1816/1.183, allocations: 20.57 MB / 0.6581 GB, free: 186.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/1.185, allocations: 112.3 kB / 0.6582 GB, free: 186.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003081/1.185, allocations: 201.4 kB / 0.6584 GB, free: 186.8 MB / 474.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: 91 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.breaker1.breaker_a.arc,breaker1.breaker_a.arc,$PRE.breaker1.breaker_a.open,breaker1.breaker_a.open,breaker1.breaker_a.closed,$PRE.breaker1.breaker_a.t0,breaker1.breaker_a.t0,breaker1.breaker_a.opening,$PRE.breaker1.breaker_b.arc,breaker1.breaker_b.arc,$PRE.breaker1.breaker_b.open,breaker1.breaker_b.open,breaker1.breaker_b.closed,$PRE.breaker1.breaker_b.t0,breaker1.breaker_b.t0,breaker1.breaker_b.opening,$PRE.breaker1.breaker_c.arc,breaker1.breaker_c.arc,$PRE.breaker1.breaker_c.open,breaker1.breaker_c.open,breaker1.breaker_c.closed,$PRE.breaker1.breaker_c.t0,breaker1.breaker_c.t0,breaker1.breaker_c.opening,$PRE.breaker2.breaker_a.arc,breaker2.breaker_a.arc,$PRE.breaker2.breaker_a.open,breaker2.breaker_a.open,breaker2.breaker_a.closed,$PRE.breaker2.breaker_a.t0,breaker2.breaker_a.t0,breaker2.breaker_a.opening,$PRE.breaker2.breaker_b.arc,breaker2.breaker_b.arc,$PRE.breaker2.breaker_b.open,breaker2.breaker_b.open,breaker2.breaker_b.closed,$PRE.breaker2.breaker_b.t0,breaker2.breaker_b.t0,breaker2.breaker_b.opening,$PRE.breaker2.breaker_c.arc,breaker2.breaker_c.arc,$PRE.breaker2.breaker_c.open,breaker2.breaker_c.open,breaker2.breaker_c.closed,$PRE.breaker2.breaker_c.t0,breaker2.breaker_c.t0,breaker2.breaker_c.opening,$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 (158): * Single equations (assignments): 152 * 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: 0 * Non-linear torn systems: 1 {27 48} Notification: Performance of prepare postOptimizeDAE: time 0.0005076/1.185, allocations: 249.7 kB / 0.6586 GB, free: 186.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003297/1.186, allocations: 116.5 kB / 0.6587 GB, free: 186.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01525/1.201, allocations: 4.833 MB / 0.6634 GB, free: 185.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.871e-05/1.201, allocations: 29.94 kB / 0.6635 GB, free: 185.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.056e-05/1.201, allocations: 5.781 kB / 0.6635 GB, free: 185.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-05/1.201, allocations: 12.09 kB / 0.6635 GB, free: 185.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02021/1.221, allocations: 7.396 MB / 0.6707 GB, free: 183.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.883e-05/1.222, allocations: 2.75 kB / 0.6707 GB, free: 183.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000886/1.222, allocations: 149.2 kB / 0.6708 GB, free: 183.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02725/1.25, allocations: 6.77 MB / 0.6774 GB, free: 182.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006969/1.25, allocations: 244.6 kB / 0.6777 GB, free: 182.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01834/1.269, allocations: 19.02 MB / 0.6963 GB, free: 164.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/1.269, allocations: 4.844 kB / 0.6963 GB, free: 164.7 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01734/1.286, allocations: 6.254 MB / 0.7024 GB, free: 159.2 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01883/1.305, allocations: 7.949 MB / 0.7101 GB, free: 152.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004126/1.306, allocations: 190.3 kB / 0.7103 GB, free: 151.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005223/1.306, allocations: 199.4 kB / 0.7105 GB, free: 151.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/1.307, allocations: 118.2 kB / 0.7106 GB, free: 151.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00053/1.308, allocations: 184.9 kB / 0.7108 GB, free: 151.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003024/1.308, allocations: 211.8 kB / 0.711 GB, free: 151.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0005098/1.309, allocations: 413.3 kB / 0.7114 GB, free: 151 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003068/1.312, allocations: 0.5956 MB / 0.712 GB, free: 150.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * Number of discrete variables: 65 (breaker1.breaker_c.closed,breaker1.breaker_b.closed,breaker1.breaker_a.closed,breaker2.breaker_b.closed,breaker2.breaker_a.closed,breaker2.breaker_c.closed,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,breaker1.breaker_a.arc,breaker1.breaker_a.open,breaker1.breaker_a.t0,breaker1.breaker_a.opening,breaker1.breaker_b.arc,breaker1.breaker_b.open,breaker1.breaker_b.t0,breaker1.breaker_b.opening,breaker1.breaker_c.arc,breaker1.breaker_c.open,breaker1.breaker_c.t0,breaker1.breaker_c.opening,breaker2.breaker_a.arc,breaker2.breaker_a.open,breaker2.breaker_a.t0,breaker2.breaker_a.opening,breaker2.breaker_b.arc,breaker2.breaker_b.open,breaker2.breaker_b.t0,breaker2.breaker_b.opening,breaker2.breaker_c.arc,breaker2.breaker_c.open,breaker2.breaker_c.t0,breaker2.breaker_c.opening,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: 22 (breaker1.breaker_a.arc,breaker1.breaker_b.arc,breaker1.breaker_c.arc,breaker2.breaker_a.arc,breaker2.breaker_b.arc,breaker2.breaker_c.arc,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,breaker2.breaker_a.open,breaker2.breaker_c.open,breaker2.breaker_b.open,breaker1.breaker_b.open,breaker1.breaker_c.open,breaker1.breaker_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 106 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {12,9} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005691/1.312, allocations: 245.8 kB / 0.7122 GB, free: 150.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006895/1.319, allocations: 3.734 MB / 0.7158 GB, free: 146.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/1.319, allocations: 0 / 0.7158 GB, free: 146.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005109/1.324, allocations: 3.09 MB / 0.7189 GB, free: 143.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/1.326, allocations: 158.7 kB / 0.719 GB, free: 143.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007985/1.334, allocations: 4.721 MB / 0.7236 GB, free: 138.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001153/1.335, allocations: 1.558 MB / 0.7251 GB, free: 136.9 MB / 474.7 MB Notification: Performance of SimCode: time 4.81e-07/1.335, allocations: 0 / 0.7251 GB, free: 136.9 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_Tline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_Tline.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe 2>&1)