Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.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.AC1ph_DC.Elementary.DoubleLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine",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.001053/0.001053, allocations: 185.6 kB / 8.136 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.236/1.236, 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.0009409/0.000941, allocations: 95.98 kB / 261.7 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1856/0.1856, allocations: 37.96 MB / 347.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2133/0.399, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.5107, allocations: 56.32 MB / 466.4 MB, free: 6.383 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3705/0.8813, allocations: 109.8 MB / 0.5627 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.8817, allocations: 88.95 kB / 0.5628 GB, free: 0.5859 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.08529/0.967, allocations: 25.22 MB / 0.5874 GB, free: 7.004 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.9671, allocations: 11.98 kB / 0.5875 GB, free: 6.992 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009253/0.968, allocations: 134.4 kB / 0.5876 GB, free: 6.859 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009182/0.9772, allocations: 2.505 MB / 0.59 GB, free: 4.309 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.725e-05/0.9773, allocations: 36 kB / 0.5901 GB, free: 4.273 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006411/0.978, allocations: 75.91 kB / 0.5901 GB, free: 4.199 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002371/0.9804, allocations: 1.066 MB / 0.5912 GB, free: 3.133 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003406/0.9838, allocations: 1.661 MB / 0.5928 GB, free: 1.426 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.846e-05/0.9839, allocations: 4 kB / 0.5928 GB, free: 1.422 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001685/0.984, allocations: 0 / 0.5928 GB, free: 1.422 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.246e-05/0.9841, allocations: 37.98 kB / 0.5928 GB, free: 1.383 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01107/0.9952, allocations: 5.648 MB / 0.5984 GB, free: 11.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.9967, allocations: 0.9862 MB / 0.5993 GB, free: 10.6 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002051/0.9988, allocations: 1.14 MB / 0.6004 GB, free: 9.457 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.152e-05/0.999, allocations: 20.77 kB / 0.6004 GB, free: 9.438 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002124/1.001, allocations: 1.269 MB / 0.6017 GB, free: 8.141 MB / 442.7 MB Notification: Performance of pre-optimization done (n=101): time 6.011e-06/1.001, allocations: 0 / 0.6017 GB, free: 8.141 MB / 442.7 MB Notification: Performance of matching and sorting (n=105): time 0.01753/1.019, allocations: 6.804 MB / 0.6083 GB, free: 1.254 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001587/1.019, allocations: 204.9 kB / 0.6085 GB, free: 1.012 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/1.02, allocations: 0.59 MB / 0.6091 GB, free: 428 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003528/1.02, allocations: 33.7 kB / 0.6091 GB, free: 388 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003597/1.021, allocations: 360 kB / 0.6095 GB, free: 20 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009233/1.022, allocations: 406.9 kB / 0.6099 GB, free: 15.62 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002525/1.022, allocations: 4 kB / 0.6099 GB, free: 15.61 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002695/1.022, allocations: 361.9 kB / 0.6102 GB, free: 15.25 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002/1.024, allocations: 0.9879 MB / 0.6112 GB, free: 14.27 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002047/1.026, allocations: 1.252 MB / 0.6124 GB, free: 12.92 MB / 458.7 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.02777/1.054, allocations: 8.375 MB / 0.6206 GB, free: 4.496 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/1.054, allocations: 4 kB / 0.6206 GB, free: 4.492 MB / 458.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01068/1.065, allocations: 4.894 MB / 0.6254 GB, free: 15.59 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/1.065, allocations: 11.91 kB / 0.6254 GB, free: 15.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.96e-05/1.065, allocations: 4 kB / 0.6254 GB, free: 15.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01532/1.08, allocations: 6.184 MB / 0.6314 GB, free: 9.379 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009318/1.081, allocations: 179.6 kB / 0.6316 GB, free: 9.203 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1849/1.266, allocations: 14.34 MB / 0.6456 GB, free: 190.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001097/1.267, allocations: 56.91 kB / 0.6456 GB, free: 190.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003132/1.268, allocations: 147.1 kB / 0.6458 GB, free: 190.1 MB / 474.7 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.000511/1.268, allocations: 217.1 kB / 0.646 GB, free: 189.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002854/1.269, allocations: 96.5 kB / 0.6461 GB, free: 189.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0116/1.28, allocations: 4.803 MB / 0.6508 GB, free: 189.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.28e-05/1.28, allocations: 7.812 kB / 0.6508 GB, free: 189.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.65e-05/1.28, allocations: 6.344 kB / 0.6508 GB, free: 189.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/1.28, allocations: 3.891 kB / 0.6508 GB, free: 189.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01595/1.296, allocations: 6.572 MB / 0.6572 GB, free: 189.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/1.296, allocations: 0 / 0.6572 GB, free: 189.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006899/1.297, allocations: 124.6 kB / 0.6573 GB, free: 189.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01828/1.315, allocations: 6.125 MB / 0.6633 GB, free: 189.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005173/1.316, allocations: 206.8 kB / 0.6635 GB, free: 189.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02546/1.341, allocations: 18.62 MB / 0.6817 GB, free: 180.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.341, allocations: 1.781 kB / 0.6817 GB, free: 180.3 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01485/1.356, allocations: 5.799 MB / 0.6874 GB, free: 175.9 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01594/1.372, allocations: 7.239 MB / 0.6944 GB, free: 169.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/1.374, allocations: 411.7 kB / 0.6948 GB, free: 168.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007384/1.374, allocations: 171.9 kB / 0.695 GB, free: 168.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/1.376, allocations: 54.67 kB / 0.695 GB, free: 168.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004327/1.376, allocations: 111.8 kB / 0.6951 GB, free: 168.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002765/1.376, allocations: 152.4 kB / 0.6953 GB, free: 168.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0008877/1.377, allocations: 451.1 kB / 0.6957 GB, free: 168 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003528/1.381, allocations: 495.1 kB / 0.6962 GB, free: 167.5 MB / 474.7 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.0006608/1.381, allocations: 216.9 kB / 0.6964 GB, free: 167.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00562/1.387, allocations: 2.8 MB / 0.6991 GB, free: 164.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/1.387, allocations: 0 / 0.6991 GB, free: 164.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004519/1.392, allocations: 2.211 MB / 0.7013 GB, free: 162.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/1.393, allocations: 211.7 kB / 0.7015 GB, free: 162.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00911/1.402, allocations: 4.756 MB / 0.7061 GB, free: 157.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001466/1.404, allocations: 1.535 MB / 0.7076 GB, free: 156 MB / 474.7 MB Notification: Performance of SimCode: time 1.413e-06/1.404, allocations: 4 kB / 0.7076 GB, free: 156 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)