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: 180.6 kB / 16.39 MB, free: 5.762 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.168/1.168, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007978/0.0007978, allocations: 96.09 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1537/0.1537, allocations: 38.06 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002586/0.0002586, allocations: 12 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2138, allocations: 56.32 MB / 480.4 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1149/0.3287, allocations: 100.3 MB / 0.5671 GB, free: 2.121 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001937/0.3289, allocations: 91.95 kB / 0.5672 GB, free: 2.031 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03861/0.3675, allocations: 14.97 MB / 0.5818 GB, free: 2.855 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3675, allocations: 0 / 0.5818 GB, free: 2.855 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.417e-05/0.3676, allocations: 20 kB / 0.5818 GB, free: 2.836 MB / 410.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.001992/0.3696, allocations: 1.078 MB / 0.5829 GB, free: 1.688 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.3696, allocations: 12.03 kB / 0.5829 GB, free: 1.676 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001586/0.3698, allocations: 106.5 kB / 0.583 GB, free: 1.562 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.37, allocations: 86.97 kB / 0.5831 GB, free: 1.477 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002501/0.3725, allocations: 1.094 MB / 0.5841 GB, free: 348 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.988e-05/0.3726, allocations: 53.31 kB / 0.5842 GB, free: 296 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.744e-05/0.3727, allocations: 64 kB / 0.5842 GB, free: 232 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.3739, allocations: 0.8133 MB / 0.585 GB, free: 15.37 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.3739, allocations: 7.891 kB / 0.585 GB, free: 15.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.237e-05/0.374, allocations: 28 kB / 0.5851 GB, free: 15.33 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.374, allocations: 16 kB / 0.5851 GB, free: 15.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000929/0.3749, allocations: 0.5983 MB / 0.5857 GB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003647/0.3786, allocations: 2.958 MB / 0.5886 GB, free: 11.65 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008107/0.3794, allocations: 0.6023 MB / 0.5891 GB, free: 11.03 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.3794, allocations: 12.62 kB / 0.5892 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007665/0.3802, allocations: 0.6077 MB / 0.5898 GB, free: 10.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=81): time 3.356e-06/0.3802, allocations: 4 kB / 0.5898 GB, free: 10.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=82): time 0.004011/0.3843, allocations: 2.674 MB / 0.5924 GB, free: 7.531 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.3844, allocations: 208.5 kB / 0.5926 GB, free: 7.285 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004517/0.3848, allocations: 437.1 kB / 0.593 GB, free: 6.852 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.968e-05/0.3849, allocations: 49.7 kB / 0.593 GB, free: 6.797 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.3851, allocations: 332.2 kB / 0.5933 GB, free: 6.465 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.3853, allocations: 232.9 kB / 0.5936 GB, free: 6.234 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.587e-05/0.3854, allocations: 20 kB / 0.5936 GB, free: 6.215 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.3855, allocations: 394.7 kB / 0.594 GB, free: 5.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004998/0.3861, allocations: 309.8 kB / 0.5943 GB, free: 5.516 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005677/0.3866, allocations: 498.2 kB / 0.5947 GB, free: 4.961 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005139/0.3871, allocations: 398.2 kB / 0.5951 GB, free: 4.562 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3872, allocations: 4 kB / 0.5951 GB, free: 4.559 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.0016/0.3888, allocations: 1.072 MB / 0.5962 GB, free: 3.461 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.093e-05/0.3888, allocations: 63.34 kB / 0.5962 GB, free: 3.387 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.3888, allocations: 4 kB / 0.5962 GB, free: 3.383 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00045/0.3893, allocations: 133.8 kB / 0.5964 GB, free: 3.246 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007947/0.3901, allocations: 215.7 kB / 0.5966 GB, free: 3.035 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002644/0.3928, allocations: 3.08 MB / 0.5996 GB, free: 15.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004183/0.3932, allocations: 51.97 kB / 0.5996 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.733e-05/0.3933, allocations: 32 kB / 0.5997 GB, free: 15.61 MB / 442.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.0004227/0.3937, allocations: 370.3 kB / 0.6 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-05/0.3938, allocations: 71.16 kB / 0.6001 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001525/0.3953, allocations: 0.9995 MB / 0.601 GB, free: 14.13 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/0.3953, allocations: 8 kB / 0.6011 GB, free: 14.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3954, allocations: 0 / 0.6011 GB, free: 14.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.3954, allocations: 3.984 kB / 0.6011 GB, free: 14.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/0.398, allocations: 1.874 MB / 0.6029 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.3981, allocations: 4 kB / 0.6029 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006304/0.3987, allocations: 155.8 kB / 0.603 GB, free: 12.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005206/0.3992, allocations: 149.5 kB / 0.6032 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.857e-05/0.3993, allocations: 27.94 kB / 0.6032 GB, free: 11.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002609/0.4019, allocations: 3.08 MB / 0.6062 GB, free: 8.477 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4019, allocations: 0 / 0.6062 GB, free: 8.477 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002072/0.404, allocations: 1.539 MB / 0.6077 GB, free: 6.887 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003108/0.4043, allocations: 200.3 kB / 0.6079 GB, free: 6.672 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.4044, allocations: 31.98 kB / 0.6079 GB, free: 6.641 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003622/0.4048, allocations: 39.97 kB / 0.608 GB, free: 6.602 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.405, allocations: 92.47 kB / 0.6081 GB, free: 6.512 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.887e-05/0.4051, allocations: 27.98 kB / 0.6081 GB, free: 6.484 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003756/0.4055, allocations: 330.8 kB / 0.6084 GB, free: 6.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4055, allocations: 7.938 kB / 0.6084 GB, free: 6.152 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006679/0.4061, allocations: 215.9 kB / 0.6086 GB, free: 5.941 MB / 442.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.002513/0.4087, allocations: 2.28 MB / 0.6109 GB, free: 3.594 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001899/0.4106, allocations: 1.201 MB / 0.612 GB, free: 2.348 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4106, allocations: 0 / 0.612 GB, free: 2.348 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001293/0.4119, allocations: 0.8634 MB / 0.6129 GB, free: 1.434 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006056/0.4125, allocations: 137.7 kB / 0.613 GB, free: 1.301 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007601/0.4201, allocations: 8.15 MB / 0.621 GB, free: 8.969 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005044/0.4206, allocations: 1.009 MB / 0.6219 GB, free: 7.934 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004343/0.4211, allocations: 146.1 kB / 0.6221 GB, free: 7.789 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003704/0.4215, allocations: 271.3 kB / 0.6223 GB, free: 7.527 MB / 458.7 MB Notification: Performance of SimCode: time 6.72e-07/0.4215, allocations: 4 kB / 0.6223 GB, free: 7.523 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0278/0.4493, allocations: 15.39 MB / 0.6374 GB, free: 8.195 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/0.4495, allocations: 203.7 kB / 0.6376 GB, free: 7.953 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.124/2.573, allocations: 7.938 kB / 0.6376 GB, free: 7.945 MB / 474.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