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.001242/0.001242, allocations: 179.6 kB / 16.38 MB, free: 5.762 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.397/1.397, allocations: 194.5 MB / 211.6 MB, free: 3.039 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.001678/0.001678, allocations: 107.5 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2075/0.2075, allocations: 38 MB / 340.1 MB, free: 1.344 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004042/0.0004041, allocations: 8 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1081, allocations: 53.23 MB / 457.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3779/0.486, allocations: 95.19 MB / 0.5394 GB, free: 15.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.4863, allocations: 92.19 kB / 0.5394 GB, free: 15.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0444/0.5307, allocations: 14.95 MB / 0.554 GB, free: 3.016 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5308, allocations: 0 / 0.554 GB, free: 3.016 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.874e-05/0.5308, allocations: 16 kB / 0.5541 GB, free: 3 MB / 362.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.003221/0.5341, allocations: 1.087 MB / 0.5551 GB, free: 1.898 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.5341, allocations: 12.02 kB / 0.5551 GB, free: 1.887 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003052/0.5345, allocations: 112.1 kB / 0.5552 GB, free: 1.805 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002625/0.5347, allocations: 86.97 kB / 0.5553 GB, free: 1.719 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002929/0.5377, allocations: 1.087 MB / 0.5564 GB, free: 0.7734 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.013e-05/0.5377, allocations: 55.7 kB / 0.5564 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.5379, allocations: 62.12 kB / 0.5565 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.5392, allocations: 0.8096 MB / 0.5573 GB, free: 72 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.5392, allocations: 3.984 kB / 0.5573 GB, free: 68 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.466e-05/0.5393, allocations: 34.8 kB / 0.5573 GB, free: 52 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.498e-05/0.5393, allocations: 16 kB / 0.5573 GB, free: 36 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.5403, allocations: 0.5969 MB / 0.5579 GB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004364/0.5447, allocations: 2.967 MB / 0.5608 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009256/0.5457, allocations: 0.5957 MB / 0.5614 GB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.5457, allocations: 12.61 kB / 0.5614 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008438/0.5466, allocations: 0.6142 MB / 0.562 GB, free: 12.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 2.956e-06/0.5466, allocations: 0 / 0.562 GB, free: 12.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.004435/0.551, allocations: 2.675 MB / 0.5646 GB, free: 9.812 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.5512, allocations: 208.2 kB / 0.5648 GB, free: 9.574 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005361/0.5517, allocations: 431.6 kB / 0.5652 GB, free: 9.227 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.179e-05/0.5518, allocations: 52.94 kB / 0.5653 GB, free: 9.184 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002535/0.552, allocations: 335.4 kB / 0.5656 GB, free: 8.941 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/0.5523, allocations: 239 kB / 0.5658 GB, free: 8.742 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.974e-05/0.5523, allocations: 23.59 kB / 0.5659 GB, free: 8.734 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.5525, allocations: 385.5 kB / 0.5662 GB, free: 8.379 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005017/0.553, allocations: 321.1 kB / 0.5665 GB, free: 8.168 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006398/0.5537, allocations: 492.9 kB / 0.567 GB, free: 7.742 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005552/0.5542, allocations: 392.6 kB / 0.5674 GB, free: 7.477 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.321e-06/0.5543, allocations: 8 kB / 0.5674 GB, free: 7.469 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001724/0.556, allocations: 1.075 MB / 0.5684 GB, free: 6.625 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.227e-05/0.5561, allocations: 62.47 kB / 0.5685 GB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.5561, allocations: 4 kB / 0.5685 GB, free: 6.551 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004915/0.5566, allocations: 134.2 kB / 0.5686 GB, free: 6.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008414/0.5574, allocations: 214 kB / 0.5688 GB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002989/0.5604, allocations: 3.075 MB / 0.5718 GB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/0.561, allocations: 50.97 kB / 0.5719 GB, free: 3.055 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.483e-05/0.561, allocations: 33.88 kB / 0.5719 GB, free: 3.031 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 () * Number of clocked 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.0005553/0.5616, allocations: 361.2 kB / 0.5723 GB, free: 2.727 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.5618, allocations: 75.11 kB / 0.5723 GB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001684/0.5634, allocations: 0.9919 MB / 0.5733 GB, free: 1.918 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.5635, allocations: 11.94 kB / 0.5733 GB, free: 1.906 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.5635, allocations: 0 / 0.5733 GB, free: 1.906 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.5635, allocations: 7.984 kB / 0.5733 GB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003069/0.5666, allocations: 1.879 MB / 0.5752 GB, free: 412 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.5666, allocations: 4 kB / 0.5752 GB, free: 408 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006658/0.5673, allocations: 158.9 kB / 0.5753 GB, free: 252 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005598/0.5678, allocations: 147.6 kB / 0.5755 GB, free: 112 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.98e-05/0.5679, allocations: 30.41 kB / 0.5755 GB, free: 92 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002851/0.5708, allocations: 3.068 MB / 0.5785 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.5708, allocations: 256 / 0.5785 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002253/0.5731, allocations: 1.53 MB / 0.58 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004236/0.5735, allocations: 206.7 kB / 0.5802 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.5737, allocations: 38.31 kB / 0.5802 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000434/0.5741, allocations: 38.64 kB / 0.5802 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/0.5743, allocations: 87.77 kB / 0.5803 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.675e-05/0.5744, allocations: 30.36 kB / 0.5804 GB, free: 11.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004651/0.5749, allocations: 330.5 kB / 0.5807 GB, free: 11.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5749, allocations: 0 / 0.5807 GB, free: 11.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009193/0.5758, allocations: 221.2 kB / 0.5809 GB, free: 10.98 MB / 394.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) * Number of clocked states: 0 () * 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.002849/0.5787, allocations: 2.284 MB / 0.5831 GB, free: 9.047 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.5808, allocations: 1.195 MB / 0.5843 GB, free: 8.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5808, allocations: 0 / 0.5843 GB, free: 8.039 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001475/0.5823, allocations: 0.8642 MB / 0.5851 GB, free: 7.273 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008358/0.5831, allocations: 139.4 kB / 0.5853 GB, free: 7.172 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.5935, allocations: 8.146 MB / 0.5932 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007572/0.5943, allocations: 1.013 MB / 0.5942 GB, free: 14 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005346/0.5948, allocations: 146.1 kB / 0.5943 GB, free: 13.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004034/0.5953, allocations: 271.3 kB / 0.5946 GB, free: 13.59 MB / 410.7 MB Notification: Performance of SimCode: time 8.72e-07/0.5953, allocations: 4 kB / 0.5946 GB, free: 13.58 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03421/0.6295, allocations: 15.37 MB / 0.6096 GB, free: 14.22 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/0.6297, allocations: 195.9 kB / 0.6098 GB, free: 13.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.392/3.022, allocations: 4 kB / 0.6098 GB, free: 13.98 MB / 426.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)