Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.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.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,fileNamePrefix="PowerSystems_latest_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.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.593/1.593, allocations: 205.2 MB / 219.4 MB, free: 14.19 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.0009514/0.0009516, allocations: 82.7 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1503/0.1503, allocations: 37.98 MB / 353.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.737e-05/2.74e-05, allocations: 4 kB / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 56.32 MB / 474.1 MB, free: 4.699 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4078/0.5144, allocations: 100.2 MB / 0.5609 GB, free: 2.418 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.5147, allocations: 93.86 kB / 0.561 GB, free: 2.371 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03989/0.5546, allocations: 14.97 MB / 0.5756 GB, free: 5.449 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.5546, allocations: 4 kB / 0.5756 GB, free: 5.445 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.983e-05/0.5547, allocations: 20 kB / 0.5756 GB, free: 5.426 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.001617/0.5563, allocations: 0.9749 MB / 0.5766 GB, free: 4.438 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.5564, allocations: 8.031 kB / 0.5766 GB, free: 4.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001307/0.5565, allocations: 107.2 kB / 0.5767 GB, free: 4.352 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.5567, allocations: 86.97 kB / 0.5768 GB, free: 4.266 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002516/0.5592, allocations: 1.073 MB / 0.5778 GB, free: 3.336 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.594e-05/0.5593, allocations: 53.94 kB / 0.5779 GB, free: 3.301 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.5594, allocations: 63.38 kB / 0.5779 GB, free: 3.258 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.5606, allocations: 0.8022 MB / 0.5787 GB, free: 2.637 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.5606, allocations: 3.953 kB / 0.5787 GB, free: 2.633 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.836e-05/0.5607, allocations: 34.66 kB / 0.5787 GB, free: 2.617 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.5607, allocations: 16 kB / 0.5787 GB, free: 2.602 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008626/0.5616, allocations: 0.5845 MB / 0.5793 GB, free: 2.199 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003643/0.5652, allocations: 2.96 MB / 0.5822 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008503/0.5661, allocations: 0.5911 MB / 0.5828 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000536/0.5666, allocations: 393.9 kB / 0.5832 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.063e-05/0.5667, allocations: 12.55 kB / 0.5832 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008706/0.5676, allocations: 0.6129 MB / 0.5838 GB, free: 14.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=81): time 2.625e-06/0.5676, allocations: 0 / 0.5838 GB, free: 14.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.003158/0.5708, allocations: 2.008 MB / 0.5857 GB, free: 12.72 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001593/0.5709, allocations: 205.8 kB / 0.5859 GB, free: 12.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00054/0.5715, allocations: 427.7 kB / 0.5863 GB, free: 12.14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.659e-05/0.5716, allocations: 54.5 kB / 0.5864 GB, free: 12.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002301/0.5718, allocations: 333.2 kB / 0.5867 GB, free: 11.86 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.572, allocations: 240.8 kB / 0.5869 GB, free: 11.65 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.648e-05/0.572, allocations: 18.25 kB / 0.587 GB, free: 11.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.5722, allocations: 382.9 kB / 0.5873 GB, free: 11.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004497/0.5727, allocations: 312 kB / 0.5876 GB, free: 11.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005935/0.5733, allocations: 496.1 kB / 0.5881 GB, free: 10.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000517/0.5738, allocations: 387.5 kB / 0.5885 GB, free: 10.37 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.5738, allocations: 4 kB / 0.5885 GB, free: 10.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001591/0.5754, allocations: 1.054 MB / 0.5895 GB, free: 9.523 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.461e-05/0.5755, allocations: 63.39 kB / 0.5896 GB, free: 9.449 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.5755, allocations: 4 kB / 0.5896 GB, free: 9.445 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004764/0.576, allocations: 133.6 kB / 0.5897 GB, free: 9.324 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008188/0.5768, allocations: 210 kB / 0.5899 GB, free: 9.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002815/0.5796, allocations: 3.051 MB / 0.5929 GB, free: 5.996 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004903/0.5801, allocations: 52.2 kB / 0.5929 GB, free: 5.961 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.573e-05/0.5802, allocations: 34.19 kB / 0.5929 GB, free: 5.934 MB / 394.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.0002725/0.5805, allocations: 252.5 kB / 0.5932 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.5806, allocations: 75.14 kB / 0.5933 GB, free: 5.629 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001589/0.5822, allocations: 0.9842 MB / 0.5942 GB, free: 4.879 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.5822, allocations: 12 kB / 0.5942 GB, free: 4.867 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5822, allocations: 0 / 0.5942 GB, free: 4.867 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.5822, allocations: 3.984 kB / 0.5942 GB, free: 4.863 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002715/0.585, allocations: 1.858 MB / 0.596 GB, free: 3.363 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.585, allocations: 3.984 kB / 0.5961 GB, free: 3.359 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006417/0.5856, allocations: 155 kB / 0.5962 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005369/0.5862, allocations: 152.7 kB / 0.5963 GB, free: 3.07 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.138e-05/0.5862, allocations: 32.39 kB / 0.5964 GB, free: 3.051 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002747/0.589, allocations: 3.039 MB / 0.5993 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.589, allocations: 7.969 kB / 0.5994 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/0.5911, allocations: 1.507 MB / 0.6008 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003524/0.5915, allocations: 207.2 kB / 0.601 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.5916, allocations: 29.11 kB / 0.601 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003698/0.592, allocations: 39.45 kB / 0.6011 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002076/0.5922, allocations: 92.17 kB / 0.6012 GB, free: 14.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.083e-05/0.5923, allocations: 31.67 kB / 0.6012 GB, free: 14.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003889/0.5927, allocations: 328.1 kB / 0.6015 GB, free: 14.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5927, allocations: 4 kB / 0.6015 GB, free: 14.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007333/0.5934, allocations: 217.6 kB / 0.6017 GB, free: 13.95 MB / 410.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.00259/0.596, allocations: 2.26 MB / 0.6039 GB, free: 12.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001965/0.598, allocations: 1.178 MB / 0.6051 GB, free: 11.03 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.598, allocations: 0 / 0.6051 GB, free: 11.03 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.5994, allocations: 0.8551 MB / 0.6059 GB, free: 10.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007064/0.6001, allocations: 132.9 kB / 0.606 GB, free: 10.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003379/0.6035, allocations: 1.617 MB / 0.6076 GB, free: 8.715 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006312/0.6041, allocations: 1.014 MB / 0.6086 GB, free: 7.691 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004549/0.6046, allocations: 146.1 kB / 0.6088 GB, free: 7.547 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003237/0.6049, allocations: 271.8 kB / 0.609 GB, free: 7.473 MB / 410.7 MB Notification: Performance of SimCode: time 8.71e-07/0.6049, allocations: 0 / 0.609 GB, free: 7.473 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03247/0.6374, allocations: 15.49 MB / 0.6241 GB, free: 8.02 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/0.6376, allocations: 175 kB / 0.6243 GB, free: 7.797 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.531/3.168, allocations: 4 kB / 0.6243 GB, free: 7.793 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault_res.mat does not exist to compare? outputFormat=mat