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.001581/0.001581, allocations: 181.2 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.673/1.673, allocations: 194.2 MB / 208.4 MB, free: 6.711 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.001777/0.001777, allocations: 120.7 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1638/0.1638, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.216e-05/4.227e-05, allocations: 0 / 397.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3543, allocations: 53.23 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5514/0.9058, allocations: 95.1 MB / 0.5332 GB, free: 88.05 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003247/0.9062, allocations: 91.53 kB / 0.5333 GB, free: 88.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04517/0.9513, allocations: 14.95 MB / 0.5479 GB, free: 81.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.9514, allocations: 0 / 0.5479 GB, free: 81.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.49e-05/0.9515, allocations: 12.22 kB / 0.5479 GB, free: 81.22 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.001909/0.9534, allocations: 0.9726 MB / 0.5488 GB, free: 80.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.494e-05/0.9535, allocations: 8.031 kB / 0.5488 GB, free: 80.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001542/0.9537, allocations: 110.5 kB / 0.5489 GB, free: 80.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001695/0.9538, allocations: 86.97 kB / 0.549 GB, free: 79.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002726/0.9566, allocations: 1.08 MB / 0.5501 GB, free: 78.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.99e-05/0.9566, allocations: 57.2 kB / 0.5501 GB, free: 78.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.9568, allocations: 64 kB / 0.5502 GB, free: 78.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.958, allocations: 0.7969 MB / 0.551 GB, free: 77.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/0.9581, allocations: 0 / 0.551 GB, free: 77.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.605e-05/0.9582, allocations: 35.97 kB / 0.551 GB, free: 77.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/0.9582, allocations: 20 kB / 0.551 GB, free: 77.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000896/0.9591, allocations: 0.5829 MB / 0.5516 GB, free: 77.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003674/0.9628, allocations: 2.966 MB / 0.5545 GB, free: 74.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007679/0.9636, allocations: 0.583 MB / 0.555 GB, free: 73.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004921/0.9641, allocations: 395.1 kB / 0.5554 GB, free: 73.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.948e-05/0.9641, allocations: 12.55 kB / 0.5554 GB, free: 73.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007517/0.9649, allocations: 0.6095 MB / 0.556 GB, free: 72.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 2.264e-06/0.9649, allocations: 4 kB / 0.556 GB, free: 72.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.003149/0.9681, allocations: 2.012 MB / 0.558 GB, free: 70.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.405e-05/0.9682, allocations: 212.7 kB / 0.5582 GB, free: 70.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004806/0.9687, allocations: 423.9 kB / 0.5586 GB, free: 69.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.874e-05/0.9687, allocations: 49.7 kB / 0.5587 GB, free: 69.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002193/0.9689, allocations: 332.2 kB / 0.559 GB, free: 69.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.9691, allocations: 240.8 kB / 0.5592 GB, free: 69.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.169e-05/0.9692, allocations: 20 kB / 0.5592 GB, free: 69.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.9693, allocations: 382.8 kB / 0.5596 GB, free: 68.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004093/0.9698, allocations: 309.9 kB / 0.5599 GB, free: 68.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004819/0.9702, allocations: 490.1 kB / 0.5603 GB, free: 67.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004798/0.9707, allocations: 397.6 kB / 0.5607 GB, free: 67.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.9707, allocations: 0 / 0.5607 GB, free: 67.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001469/0.9722, allocations: 1.051 MB / 0.5618 GB, free: 66.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.397e-05/0.9723, allocations: 63.39 kB / 0.5618 GB, free: 66.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.9723, allocations: 4 kB / 0.5618 GB, free: 66.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005064/0.9728, allocations: 134 kB / 0.5619 GB, free: 66.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007981/0.9736, allocations: 211.7 kB / 0.5621 GB, free: 65.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00251/0.9762, allocations: 3.057 MB / 0.5651 GB, free: 62.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006551/0.9768, allocations: 47.97 kB / 0.5652 GB, free: 62.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.351e-05/0.9769, allocations: 36 kB / 0.5652 GB, free: 62.56 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.0003821/0.9773, allocations: 253.2 kB / 0.5655 GB, free: 62.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.9774, allocations: 75.14 kB / 0.5655 GB, free: 62.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/0.9791, allocations: 0.9771 MB / 0.5665 GB, free: 61.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.9791, allocations: 8 kB / 0.5665 GB, free: 61.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.9791, allocations: 0 / 0.5665 GB, free: 61.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.9792, allocations: 3.984 kB / 0.5665 GB, free: 61.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002866/0.982, allocations: 1.877 MB / 0.5683 GB, free: 59.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.9821, allocations: 0 / 0.5683 GB, free: 59.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006393/0.9827, allocations: 155.9 kB / 0.5685 GB, free: 59.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005266/0.9832, allocations: 145.5 kB / 0.5686 GB, free: 58.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-05/0.9833, allocations: 23.97 kB / 0.5686 GB, free: 58.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002358/0.9857, allocations: 3.049 MB / 0.5716 GB, free: 55.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.9857, allocations: 8.188 kB / 0.5716 GB, free: 55.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002308/0.988, allocations: 1.505 MB / 0.5731 GB, free: 54.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004374/0.9885, allocations: 208.2 kB / 0.5733 GB, free: 53.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000188/0.9887, allocations: 27.98 kB / 0.5733 GB, free: 53.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004865/0.9892, allocations: 43.95 kB / 0.5734 GB, free: 53.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002858/0.9895, allocations: 84.66 kB / 0.5734 GB, free: 53.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.011e-05/0.9896, allocations: 31.97 kB / 0.5735 GB, free: 53.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006073/0.9902, allocations: 333.5 kB / 0.5738 GB, free: 53.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9902, allocations: 7.875 kB / 0.5738 GB, free: 53.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001355/0.9915, allocations: 216 kB / 0.574 GB, free: 53.09 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.003382/0.9949, allocations: 2.265 MB / 0.5762 GB, free: 50.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002447/0.9974, allocations: 1.18 MB / 0.5774 GB, free: 49.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.9974, allocations: 0 / 0.5774 GB, free: 49.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.9988, allocations: 0.8486 MB / 0.5782 GB, free: 48.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008748/0.9997, allocations: 133.9 kB / 0.5783 GB, free: 48.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004001/1.004, allocations: 1.613 MB / 0.5799 GB, free: 46.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005844/1.004, allocations: 1.013 MB / 0.5809 GB, free: 45.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005052/1.005, allocations: 146.1 kB / 0.581 GB, free: 45.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003674/1.005, allocations: 271.3 kB / 0.5813 GB, free: 45.39 MB / 378.7 MB Notification: Performance of SimCode: time 8.22e-07/1.005, allocations: 0 / 0.5813 GB, free: 45.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0368/1.042, allocations: 15.47 MB / 0.5964 GB, free: 29.92 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/1.042, allocations: 174.4 kB / 0.5966 GB, free: 29.69 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.604/3.646, allocations: 0 / 0.5966 GB, free: 29.69 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)