Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.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.AC1ph_DC.Elementary.DoublelLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine",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.001583/0.001583, allocations: 185.9 kB / 8.14 MB, free: 0.8555 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.079/1.079, allocations: 194.2 MB / 202.8 MB, free: 2.078 MB / 162.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001597/0.001597, allocations: 113.3 kB / 247.8 MB, free: 5.086 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1506/0.1506, allocations: 37.91 MB / 330.5 MB, free: 7.125 MB / 242.8 MB Notification: Performance of FrontEnd - loaded program: time 0.181/0.3316, allocations: 59.35 MB / 389.9 MB, free: 20.1 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08952/0.4212, allocations: 53.23 MB / 443.1 MB, free: 14.86 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3014/0.7226, allocations: 104.4 MB / 0.5347 GB, free: 4.602 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.7229, allocations: 92.66 kB / 0.5348 GB, free: 4.555 MB / 370.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.07655/0.7994, allocations: 25.18 MB / 0.5594 GB, free: 14.98 MB / 402.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.7995, allocations: 8 kB / 0.5594 GB, free: 14.97 MB / 402.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000617/0.8001, allocations: 133.3 kB / 0.5595 GB, free: 14.84 MB / 402.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007374/0.8075, allocations: 2.51 MB / 0.562 GB, free: 12.71 MB / 402.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.073e-05/0.8076, allocations: 32 kB / 0.562 GB, free: 12.68 MB / 402.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003905/0.808, allocations: 79.28 kB / 0.5621 GB, free: 12.6 MB / 402.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001771/0.8098, allocations: 1.059 MB / 0.5631 GB, free: 11.86 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002572/0.8123, allocations: 1.652 MB / 0.5647 GB, free: 10.53 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.8124, allocations: 7.844 kB / 0.5647 GB, free: 10.52 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.8125, allocations: 7.984 kB / 0.5647 GB, free: 10.51 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.335e-05/0.8126, allocations: 34 kB / 0.5648 GB, free: 10.48 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008794/0.8214, allocations: 5.657 MB / 0.5703 GB, free: 5.723 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.8226, allocations: 0.9861 MB / 0.5713 GB, free: 5.047 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001762/0.8243, allocations: 1.143 MB / 0.5724 GB, free: 4.23 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 6.908e-05/0.8244, allocations: 12.78 kB / 0.5724 GB, free: 4.219 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001624/0.826, allocations: 1.272 MB / 0.5736 GB, free: 3.203 MB / 402.8 MB Notification: Performance of pre-optimization done (n=101): time 3.046e-06/0.8261, allocations: 0 / 0.5736 GB, free: 3.203 MB / 402.8 MB Notification: Performance of matching and sorting (n=105): time 0.01602/0.8421, allocations: 6.804 MB / 0.5803 GB, free: 12.65 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.8422, allocations: 212.8 kB / 0.5805 GB, free: 12.4 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007947/0.843, allocations: 0.5977 MB / 0.5811 GB, free: 11.8 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001437/0.8432, allocations: 33.69 kB / 0.5811 GB, free: 11.76 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/0.8434, allocations: 356.1 kB / 0.5814 GB, free: 11.4 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004502/0.8439, allocations: 402.8 kB / 0.5818 GB, free: 11 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.844, allocations: 0 / 0.5818 GB, free: 11 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.8442, allocations: 365.9 kB / 0.5822 GB, free: 10.64 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/0.8455, allocations: 0.9879 MB / 0.5831 GB, free: 9.652 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001541/0.8471, allocations: 1.256 MB / 0.5844 GB, free: 8.301 MB / 418.8 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.trafo.i1 = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.line.i[1,1] = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.02606/0.8732, allocations: 8.367 MB / 0.5925 GB, free: 15.89 MB / 434.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/0.8732, allocations: 4 kB / 0.5925 GB, free: 15.88 MB / 434.8 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.009871/0.8831, allocations: 4.902 MB / 0.5973 GB, free: 10.97 MB / 434.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.8831, allocations: 4.312 kB / 0.5973 GB, free: 10.96 MB / 434.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.8831, allocations: 12 kB / 0.5973 GB, free: 10.95 MB / 434.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0143/0.8974, allocations: 6.176 MB / 0.6034 GB, free: 4.766 MB / 434.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007156/0.8982, allocations: 179.7 kB / 0.6035 GB, free: 4.59 MB / 434.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02316/0.9213, allocations: 14.33 MB / 0.6175 GB, free: 6.137 MB / 450.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.9224, allocations: 59.92 kB / 0.6176 GB, free: 6.078 MB / 450.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003045/0.9227, allocations: 151.9 kB / 0.6177 GB, free: 5.93 MB / 450.8 MB Warning: Assuming redundant initial conditions for the following 2 initial equations: $DER.trafo.i1 = 0.0 $DER.line.i[1,1] = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,$PRE.ab.fault_pp.t0,ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,trafo.tap_2_internal,trafo.tap_1_internal,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.ab.t_zero,ab.t_zero,$PRE.ab.v_pos,ab.v_pos,$PRE.ab.first,ab.first,$PRE.ab.fault_pp.on,ab.fault_pp.on,$PRE.relay1.y[1],relay1.y[1],$PRE.relay2.y[1],relay2.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * Array equations: 0 * 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 {(29,10.6%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00051/0.9232, allocations: 219.1 kB / 0.6179 GB, free: 5.699 MB / 450.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002675/0.9235, allocations: 102.8 kB / 0.618 GB, free: 5.598 MB / 450.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/0.9357, allocations: 4.799 MB / 0.6227 GB, free: 0.7617 MB / 450.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.13e-05/0.9358, allocations: 12 kB / 0.6227 GB, free: 0.75 MB / 450.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.9358, allocations: 3.938 kB / 0.6227 GB, free: 0.7461 MB / 450.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/0.9358, allocations: 7.984 kB / 0.6227 GB, free: 0.7383 MB / 450.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01657/0.9524, allocations: 6.563 MB / 0.6292 GB, free: 10.1 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.586e-05/0.9525, allocations: 4 kB / 0.6292 GB, free: 10.09 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007099/0.9532, allocations: 123.8 kB / 0.6293 GB, free: 9.973 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01957/0.9728, allocations: 6.125 MB / 0.6353 GB, free: 3.82 MB / 466.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004639/0.9733, allocations: 207.8 kB / 0.6355 GB, free: 3.617 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1551/1.128, allocations: 18.62 MB / 0.6536 GB, free: 190.8 MB / 466.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/1.128, allocations: 3.938 kB / 0.6536 GB, free: 190.8 MB / 466.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01232/1.141, allocations: 5.79 MB / 0.6593 GB, free: 190.5 MB / 466.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01287/1.154, allocations: 7.237 MB / 0.6664 GB, free: 189.8 MB / 466.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008472/1.155, allocations: 419.9 kB / 0.6668 GB, free: 189.7 MB / 466.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003857/1.155, allocations: 172 kB / 0.6669 GB, free: 189.6 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007399/1.156, allocations: 50.36 kB / 0.667 GB, free: 189.6 MB / 466.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002771/1.156, allocations: 112.1 kB / 0.6671 GB, free: 189.6 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001749/1.156, allocations: 148.7 kB / 0.6672 GB, free: 189.6 MB / 466.8 MB Notification: Performance of sort global known variables: time 0.0005014/1.157, allocations: 454.7 kB / 0.6677 GB, free: 189.4 MB / 466.8 MB Notification: Performance of remove unused functions: time 0.002437/1.159, allocations: 496 kB / 0.6681 GB, free: 189.4 MB / 466.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (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.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],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {6,6} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {16 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003571/1.16, allocations: 215 kB / 0.6683 GB, free: 189.3 MB / 466.8 MB Notification: Performance of simCode: created initialization part: time 0.005203/1.165, allocations: 2.79 MB / 0.6711 GB, free: 188.4 MB / 466.8 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/1.165, allocations: 4.5 kB / 0.6711 GB, free: 188.4 MB / 466.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004088/1.169, allocations: 2.216 MB / 0.6732 GB, free: 187.2 MB / 466.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/1.17, allocations: 210.7 kB / 0.6734 GB, free: 187 MB / 466.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006864/1.177, allocations: 4.752 MB / 0.6781 GB, free: 183.1 MB / 466.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009691/1.178, allocations: 1.544 MB / 0.6796 GB, free: 181.8 MB / 466.8 MB Notification: Performance of SimCode: time 9.02e-07/1.178, allocations: 0 / 0.6796 GB, free: 181.8 MB / 466.8 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe 2>&1)