Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.Tline.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.Tline,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_Tline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.Tline,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001259/0.001259, allocations: 182.8 kB / 8.136 MB, free: 2.188 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.984/0.984, allocations: 194.2 MB / 202.8 MB, free: 8.648 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.001695/0.001695, allocations: 127.6 kB / 247.8 MB, free: 6.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1512/0.1512, allocations: 37.92 MB / 330.5 MB, free: 6.879 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1828/0.334, allocations: 59.34 MB / 389.9 MB, free: 77.95 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07315/0.4072, allocations: 53.23 MB / 443.1 MB, free: 24.81 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2418/0.649, allocations: 101.8 MB / 0.5321 GB, free: 5.973 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.6493, allocations: 85.08 kB / 0.5322 GB, free: 5.93 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: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.07845/0.7277, allocations: 30.59 MB / 0.5621 GB, free: 11.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.7278, allocations: 15.94 kB / 0.5621 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001594/0.7294, allocations: 222.1 kB / 0.5623 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004457/0.7339, allocations: 1.621 MB / 0.5639 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.703e-05/0.734, allocations: 39.12 kB / 0.5639 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003525/0.7344, allocations: 75.89 kB / 0.564 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00248/0.7369, allocations: 1.362 MB / 0.5653 GB, free: 9.188 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002417/0.7393, allocations: 1.524 MB / 0.5668 GB, free: 7.988 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.108e-05/0.7393, allocations: 0 / 0.5668 GB, free: 7.988 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001171/0.7395, allocations: 11.92 kB / 0.5668 GB, free: 7.977 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002913/0.7398, allocations: 77.84 kB / 0.5669 GB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01521/0.755, allocations: 7.659 MB / 0.5744 GB, free: 1.605 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.7567, allocations: 1.303 MB / 0.5757 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001442/0.7581, allocations: 1.185 MB / 0.5768 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001033/0.7583, allocations: 13 kB / 0.5768 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00218/0.7605, allocations: 1.647 MB / 0.5784 GB, free: 13.83 MB / 394.7 MB Notification: Performance of pre-optimization done (n=177): time 3.557e-06/0.7605, allocations: 0 / 0.5784 GB, free: 13.83 MB / 394.7 MB Notification: Performance of matching and sorting (n=178): time 0.01966/0.7802, allocations: 7.206 MB / 0.5855 GB, free: 6.539 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.7803, allocations: 246.9 kB / 0.5857 GB, free: 6.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007777/0.7811, allocations: 0.5306 MB / 0.5862 GB, free: 5.711 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004258/0.7816, allocations: 45.69 kB / 0.5863 GB, free: 5.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002957/0.7819, allocations: 388.7 kB / 0.5866 GB, free: 5.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005526/0.7824, allocations: 0.5668 MB / 0.5872 GB, free: 4.695 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.7825, allocations: 0 / 0.5872 GB, free: 4.695 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002156/0.7828, allocations: 438.6 kB / 0.5876 GB, free: 4.258 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001669/0.7844, allocations: 1.226 MB / 0.5888 GB, free: 3.031 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001785/0.7862, allocations: 1.494 MB / 0.5903 GB, free: 1.453 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/0.7882, allocations: 1.353 MB / 0.5916 GB, free: 104 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.7882, allocations: 8 kB / 0.5916 GB, free: 96 kB / 394.7 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.02246/0.8107, allocations: 6.768 MB / 0.5982 GB, free: 9.309 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.8107, allocations: 4 kB / 0.5982 GB, free: 9.305 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01714/0.8278, allocations: 5.568 MB / 0.6037 GB, free: 3.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02459/0.8525, allocations: 6.614 MB / 0.6101 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008238/0.8533, allocations: 155.6 kB / 0.6103 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03333/0.8867, allocations: 20.56 MB / 0.6303 GB, free: 8.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.8881, allocations: 115.7 kB / 0.6305 GB, free: 8.137 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002786/0.8884, allocations: 211.9 kB / 0.6307 GB, free: 7.93 MB / 442.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.0004555/0.8888, allocations: 248 kB / 0.6309 GB, free: 7.668 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002968/0.8891, allocations: 114.7 kB / 0.631 GB, free: 7.555 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01547/0.9046, allocations: 4.831 MB / 0.6357 GB, free: 2.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.409e-05/0.9047, allocations: 35.92 kB / 0.6358 GB, free: 2.645 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-05/0.9048, allocations: 0 / 0.6358 GB, free: 2.645 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.234e-05/0.9048, allocations: 11.97 kB / 0.6358 GB, free: 2.633 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02088/0.9257, allocations: 7.401 MB / 0.643 GB, free: 11.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/0.9258, allocations: 8 kB / 0.643 GB, free: 11.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007988/0.9266, allocations: 139.7 kB / 0.6431 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02611/0.9527, allocations: 6.775 MB / 0.6497 GB, free: 4.137 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000659/0.9534, allocations: 243.8 kB / 0.65 GB, free: 3.898 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.142/1.095, allocations: 19.01 MB / 0.6685 GB, free: 195.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/1.095, allocations: 3.969 kB / 0.6685 GB, free: 195.7 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01592/1.111, allocations: 6.244 MB / 0.6746 GB, free: 195.1 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01696/1.128, allocations: 7.955 MB / 0.6824 GB, free: 194.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002922/1.129, allocations: 189.7 kB / 0.6826 GB, free: 194.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004393/1.129, allocations: 201.5 kB / 0.6828 GB, free: 194.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/1.13, allocations: 109.2 kB / 0.6829 GB, free: 194.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003665/1.131, allocations: 183.3 kB / 0.6831 GB, free: 194.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002439/1.131, allocations: 215.7 kB / 0.6833 GB, free: 194.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0004252/1.131, allocations: 409.4 kB / 0.6837 GB, free: 194 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002683/1.134, allocations: 0.5947 MB / 0.6842 GB, free: 194 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.0005642/1.135, allocations: 243.3 kB / 0.6845 GB, free: 193.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006459/1.141, allocations: 3.738 MB / 0.6881 GB, free: 193.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/1.141, allocations: 3.969 kB / 0.6881 GB, free: 193.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004624/1.146, allocations: 3.08 MB / 0.6911 GB, free: 192.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009526/1.147, allocations: 157 kB / 0.6913 GB, free: 192.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007835/1.155, allocations: 4.721 MB / 0.6959 GB, free: 191.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/1.156, allocations: 1.56 MB / 0.6974 GB, free: 190.9 MB / 474.7 MB Notification: Performance of SimCode: time 8.12e-07/1.156, allocations: 0 / 0.6974 GB, free: 190.9 MB / 474.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.Tline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Transmission_Tline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Transmission_Tline.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe 2>&1)