Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,fileNamePrefix="PowerSystems_cpp_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.002108/0.002107, allocations: 182.7 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.089/2.089, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001136/0.001136, allocations: 90.88 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.258/0.258, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000626/0.0006262, allocations: 8 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.11, allocations: 56.34 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.478/0.5881, allocations: 100.3 MB / 0.5658 GB, free: 15.01 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/0.5885, allocations: 97.06 kB / 0.5659 GB, free: 14.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06898/0.6575, allocations: 14.98 MB / 0.5805 GB, free: 2.039 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.6575, allocations: 0 / 0.5805 GB, free: 2.039 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.062e-05/0.6576, allocations: 16 kB / 0.5806 GB, free: 2.023 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.00361/0.6612, allocations: 1.079 MB / 0.5816 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.6613, allocations: 8.031 kB / 0.5816 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000364/0.6617, allocations: 109.4 kB / 0.5817 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003206/0.662, allocations: 86.97 kB / 0.5818 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004541/0.6666, allocations: 1.091 MB / 0.5829 GB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.54e-05/0.6667, allocations: 54.92 kB / 0.5829 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001961/0.6669, allocations: 63.44 kB / 0.583 GB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002146/0.6691, allocations: 0.8195 MB / 0.5838 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.984e-05/0.6691, allocations: 3.953 kB / 0.5838 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.6693, allocations: 29.86 kB / 0.5838 GB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.47e-05/0.6693, allocations: 20 kB / 0.5838 GB, free: 15.06 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.6711, allocations: 0.596 MB / 0.5844 GB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007161/0.6783, allocations: 2.958 MB / 0.5873 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001661/0.68, allocations: 0.6005 MB / 0.5879 GB, free: 11.67 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.607e-05/0.6801, allocations: 8.609 kB / 0.5879 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001416/0.6816, allocations: 0.6197 MB / 0.5885 GB, free: 11.14 MB / 394.7 MB Notification: Performance of pre-optimization done (n=81): time 3.487e-06/0.6816, allocations: 0 / 0.5885 GB, free: 11.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.007342/0.6889, allocations: 2.675 MB / 0.5911 GB, free: 8.832 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001607/0.6891, allocations: 207.4 kB / 0.5913 GB, free: 8.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008581/0.69, allocations: 429.4 kB / 0.5917 GB, free: 8.246 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001453/0.6902, allocations: 49.45 kB / 0.5918 GB, free: 8.207 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003265/0.6905, allocations: 369.3 kB / 0.5921 GB, free: 7.922 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003292/0.6909, allocations: 236.5 kB / 0.5924 GB, free: 7.723 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.932e-05/0.691, allocations: 21.62 kB / 0.5924 GB, free: 7.719 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.6911, allocations: 349.2 kB / 0.5927 GB, free: 7.383 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009087/0.6921, allocations: 319.8 kB / 0.593 GB, free: 7.172 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.6931, allocations: 499.9 kB / 0.5935 GB, free: 6.738 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009733/0.6941, allocations: 399.3 kB / 0.5939 GB, free: 6.461 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.6941, allocations: 3.938 kB / 0.5939 GB, free: 6.457 MB / 394.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002836/0.697, allocations: 1.047 MB / 0.5949 GB, free: 5.652 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.362e-05/0.6971, allocations: 59.41 kB / 0.595 GB, free: 5.582 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.6971, allocations: 4 kB / 0.595 GB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008377/0.698, allocations: 133.3 kB / 0.5951 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/0.6997, allocations: 215.4 kB / 0.5953 GB, free: 5.254 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004492/0.7042, allocations: 3.075 MB / 0.5983 GB, free: 2.117 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009365/0.7052, allocations: 47.34 kB / 0.5983 GB, free: 2.086 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.252e-05/0.7053, allocations: 35.62 kB / 0.5984 GB, free: 2.059 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 () * 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.0007765/0.7061, allocations: 368.5 kB / 0.5987 GB, free: 1.746 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001942/0.7063, allocations: 63.25 kB / 0.5988 GB, free: 1.684 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002778/0.7091, allocations: 0.9998 MB / 0.5998 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/0.7091, allocations: 8 kB / 0.5998 GB, free: 0.9297 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/0.7091, allocations: 0 / 0.5998 GB, free: 0.9297 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.7092, allocations: 3.984 kB / 0.5998 GB, free: 0.9258 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005195/0.7144, allocations: 1.876 MB / 0.6016 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.7144, allocations: 4 kB / 0.6016 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.7158, allocations: 159.3 kB / 0.6018 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009809/0.7168, allocations: 147.7 kB / 0.6019 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/0.7169, allocations: 29.81 kB / 0.6019 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004412/0.7214, allocations: 3.074 MB / 0.6049 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.7214, allocations: 4.062 kB / 0.6049 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004039/0.7255, allocations: 1.538 MB / 0.6064 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005887/0.7261, allocations: 206 kB / 0.6066 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/0.7263, allocations: 24.94 kB / 0.6067 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006886/0.727, allocations: 44.7 kB / 0.6067 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000328/0.7274, allocations: 91.97 kB / 0.6068 GB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.874e-05/0.7275, allocations: 31.42 kB / 0.6068 GB, free: 10.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006362/0.7281, allocations: 331.7 kB / 0.6071 GB, free: 10.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7281, allocations: 0 / 0.6071 GB, free: 10.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001118/0.7293, allocations: 221.7 kB / 0.6073 GB, free: 9.996 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) * 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.004726/0.734, allocations: 2.279 MB / 0.6096 GB, free: 8.062 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003393/0.7374, allocations: 1.194 MB / 0.6107 GB, free: 7.055 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.7375, allocations: 0 / 0.6107 GB, free: 7.055 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002488/0.74, allocations: 0.8558 MB / 0.6116 GB, free: 6.293 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.7413, allocations: 137.1 kB / 0.6117 GB, free: 6.195 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/0.7561, allocations: 8.207 MB / 0.6197 GB, free: 14.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008702/0.757, allocations: 1.013 MB / 0.6207 GB, free: 13.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007477/0.7578, allocations: 275.3 kB / 0.621 GB, free: 13.27 MB / 426.7 MB Notification: Performance of SimCode: time 1.362e-06/0.7578, allocations: 0 / 0.621 GB, free: 13.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.151/3.909, allocations: 18.17 MB / 0.6387 GB, free: 11.08 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Fault.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1)