Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.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.Fault,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002137/0.002137, allocations: 178.8 kB / 8.352 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.947/1.947, allocations: 194.4 MB / 203.1 MB, free: 13.02 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.001867/0.001867, allocations: 119.7 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1661/0.1661, allocations: 37.93 MB / 330.9 MB, free: 2.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.285e-05/2.309e-05, allocations: 4 kB / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2744, allocations: 53.22 MB / 443.7 MB, free: 17.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1462/0.4207, allocations: 94.44 MB / 0.5255 GB, free: 3.176 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003341/0.4211, allocations: 87.94 kB / 0.5256 GB, free: 3.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3023/0.7233, allocations: 14.78 MB / 0.54 GB, free: 88.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.7234, allocations: 0 / 0.54 GB, free: 88.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.843e-05/0.7234, allocations: 23.84 kB / 0.5401 GB, free: 88.04 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.001487/0.7249, allocations: 0.9684 MB / 0.541 GB, free: 87.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.725, allocations: 8.531 kB / 0.541 GB, free: 87.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.7251, allocations: 85.75 kB / 0.5411 GB, free: 87.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002364/0.7275, allocations: 1.079 MB / 0.5422 GB, free: 86.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.763e-05/0.7276, allocations: 23.62 kB / 0.5422 GB, free: 86.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.713e-05/0.7277, allocations: 45.67 kB / 0.5422 GB, free: 86.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008158/0.7285, allocations: 0.5331 MB / 0.5427 GB, free: 86.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009613/0.7294, allocations: 0.7219 MB / 0.5434 GB, free: 85.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.7295, allocations: 0 / 0.5434 GB, free: 85.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.784e-05/0.7295, allocations: 4 kB / 0.5435 GB, free: 85.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.7296, allocations: 16 kB / 0.5435 GB, free: 85.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003073/0.7326, allocations: 2.866 MB / 0.5463 GB, free: 82.63 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006859/0.7333, allocations: 0.5466 MB / 0.5468 GB, free: 82.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006265/0.734, allocations: 455.2 kB / 0.5472 GB, free: 81.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.902e-05/0.734, allocations: 4.562 kB / 0.5472 GB, free: 81.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006542/0.7347, allocations: 0.5883 MB / 0.5478 GB, free: 80.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 2.124e-06/0.7347, allocations: 0 / 0.5478 GB, free: 80.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.002495/0.7372, allocations: 1.709 MB / 0.5495 GB, free: 79.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.974e-05/0.7373, allocations: 204.7 kB / 0.5497 GB, free: 78.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003645/0.7377, allocations: 389.1 kB / 0.55 GB, free: 78.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.96e-05/0.7377, allocations: 33.7 kB / 0.5501 GB, free: 78.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.7379, allocations: 352 kB / 0.5504 GB, free: 78.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.7381, allocations: 220.9 kB / 0.5506 GB, free: 77.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.7381, allocations: 0 / 0.5506 GB, free: 77.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.601e-05/0.7382, allocations: 382.8 kB / 0.551 GB, free: 77.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003518/0.7386, allocations: 286.5 kB / 0.5513 GB, free: 77.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004145/0.739, allocations: 466.6 kB / 0.5517 GB, free: 76.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003697/0.7394, allocations: 321.2 kB / 0.552 GB, free: 76.49 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.7394, allocations: 0 / 0.552 GB, free: 76.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001218/0.7406, allocations: 0.907 MB / 0.5529 GB, free: 75.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.724e-05/0.7407, allocations: 59.41 kB / 0.553 GB, free: 75.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.7407, allocations: 7.953 kB / 0.553 GB, free: 75.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004392/0.7411, allocations: 133.9 kB / 0.5531 GB, free: 75.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008172/0.7419, allocations: 207.7 kB / 0.5533 GB, free: 75.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/0.7441, allocations: 2.945 MB / 0.5562 GB, free: 71.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004705/0.7446, allocations: 35.91 kB / 0.5562 GB, free: 71.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.111e-05/0.7446, allocations: 28 kB / 0.5562 GB, free: 71.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 64 (system.initime,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pg.t0,fault_Ab.fault_pg.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch1.switch_2.arc,switch1.switch_2.arc,$PRE.switch1.switch_2.open,switch1.switch_2.open,switch1.switch_2.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.switch2.switch_2.arc,switch2.switch_2.arc,$PRE.switch2.switch_2.open,switch2.switch_2.open,switch2.switch_2.closed,$PRE.fault_Ab.t_zero,fault_Ab.t_zero,$PRE.fault_Ab.v_pos,fault_Ab.v_pos,$PRE.fault_Ab.first,fault_Ab.first,$PRE.fault_Ab.fault_pp.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pg.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * 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: 2 * Mixed (continuous/discrete) equation systems: 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002313/0.7449, allocations: 229.4 kB / 0.5564 GB, free: 71.67 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001127/0.746, allocations: 0.8017 MB / 0.5572 GB, free: 70.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.048e-05/0.7461, allocations: 71.16 kB / 0.5573 GB, free: 70.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001274/0.7474, allocations: 0.8411 MB / 0.5581 GB, free: 69.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.7474, allocations: 8 kB / 0.5581 GB, free: 69.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.7474, allocations: 3.953 kB / 0.5581 GB, free: 69.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.7474, allocations: 11.98 kB / 0.5581 GB, free: 69.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002165/0.7496, allocations: 1.652 MB / 0.5598 GB, free: 68.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.7496, allocations: 0 / 0.5598 GB, free: 68.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006179/0.7502, allocations: 159.8 kB / 0.5599 GB, free: 68.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004896/0.7507, allocations: 145.5 kB / 0.56 GB, free: 67.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.11e-05/0.7508, allocations: 15.92 kB / 0.5601 GB, free: 67.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001969/0.7528, allocations: 2.949 MB / 0.5629 GB, free: 64.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.7528, allocations: 4.031 kB / 0.5629 GB, free: 64.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00164/0.7544, allocations: 1.381 MB / 0.5643 GB, free: 63.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.7547, allocations: 200.3 kB / 0.5645 GB, free: 63.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.7548, allocations: 23.94 kB / 0.5645 GB, free: 63.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003546/0.7552, allocations: 27.97 kB / 0.5645 GB, free: 63.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/0.7554, allocations: 100.7 kB / 0.5646 GB, free: 62.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-05/0.7554, allocations: 23.98 kB / 0.5647 GB, free: 62.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002747/0.7557, allocations: 290.9 kB / 0.5649 GB, free: 62.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7557, allocations: 3.938 kB / 0.5649 GB, free: 62.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006934/0.7564, allocations: 188 kB / 0.5651 GB, free: 62.44 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (line.i1[1],line.i1[2],line.i2[1],line.i2[2]) * Number of discrete variables: 43 (switch1.switch_2.closed,switch1.switch_1.closed,switch2.switch_1.closed,switch2.switch_2.closed,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,relay1.y[1],relay1.y[2],relay1.cnt,relay2.y[1],relay2.y[2],relay2.cnt,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_2.arc,switch1.switch_2.open,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_2.arc,switch2.switch_2.open,fault_Ab.t_zero,fault_Ab.v_pos,fault_Ab.first,fault_Ab.fault_pp.on,fault_Ab.fault_pp.t0,fault_Ab.fault_pg.on,fault_Ab.fault_pg.t0,system.initime) * Number of discrete states: 17 (fault_Ab.t_zero,fault_Ab.fault_pp.on,fault_Ab.fault_pg.on,fault_Ab.v_pos,fault_Ab.first,relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_2.open,switch2.switch_1.open,relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,switch1.switch_2.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001881/0.7583, allocations: 2.109 MB / 0.5672 GB, free: 60.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001553/0.7599, allocations: 1.117 MB / 0.5683 GB, free: 59.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.7599, allocations: 320 / 0.5683 GB, free: 59.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.761, allocations: 0.8174 MB / 0.5691 GB, free: 58.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007055/0.7617, allocations: 125.9 kB / 0.5692 GB, free: 58.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/0.7644, allocations: 1.55 MB / 0.5707 GB, free: 56.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.7648, allocations: 1.01 MB / 0.5717 GB, free: 55.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004287/0.7653, allocations: 142 kB / 0.5718 GB, free: 55.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003304/0.7656, allocations: 271.3 kB / 0.5721 GB, free: 55.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/0.7656, allocations: 4 kB / 0.5721 GB, free: 55.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03534/0.801, allocations: 14.24 MB / 0.586 GB, free: 40.84 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002164/0.8012, allocations: 127.9 kB / 0.5861 GB, free: 40.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.528/3.33, allocations: 0 / 0.5861 GB, free: 40.66 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Fault.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1)