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.002034/0.002034, allocations: 185.7 kB / 8.01 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.332/2.332, allocations: 205.3 MB / 213.7 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 90.16 kB / 261.7 MB, free: 1.613 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2587/0.2587, allocations: 37.99 MB / 347.7 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.765e-05/2.76e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1538, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5649/0.7187, allocations: 99.51 MB / 0.5525 GB, free: 9.422 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.719, allocations: 96.73 kB / 0.5526 GB, free: 9.402 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06134/0.7804, allocations: 14.82 MB / 0.5671 GB, free: 14.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.891e-06/0.7804, allocations: 4 kB / 0.5671 GB, free: 14.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.216e-05/0.7805, allocations: 19.94 kB / 0.5671 GB, free: 14.95 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.003295/0.7839, allocations: 0.9634 MB / 0.568 GB, free: 13.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.7839, allocations: 12.77 kB / 0.5681 GB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003488/0.7843, allocations: 86.97 kB / 0.5681 GB, free: 13.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004532/0.7888, allocations: 1.071 MB / 0.5692 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.124e-05/0.789, allocations: 31.92 kB / 0.5692 GB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.7891, allocations: 36 kB / 0.5693 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001579/0.7907, allocations: 0.5318 MB / 0.5698 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.7924, allocations: 0.7207 MB / 0.5705 GB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.7925, allocations: 3.938 kB / 0.5705 GB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.84e-05/0.7926, allocations: 11.92 kB / 0.5705 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.115e-05/0.7926, allocations: 20 kB / 0.5705 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006558/0.7992, allocations: 2.839 MB / 0.5733 GB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.8006, allocations: 0.5652 MB / 0.5738 GB, free: 9.055 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/0.8019, allocations: 462.9 kB / 0.5743 GB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.725e-05/0.802, allocations: 8.562 kB / 0.5743 GB, free: 8.715 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001306/0.8033, allocations: 0.5776 MB / 0.5748 GB, free: 8.227 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 6.332e-06/0.8034, allocations: 4 kB / 0.5749 GB, free: 8.223 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.004843/0.8082, allocations: 1.717 MB / 0.5765 GB, free: 6.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001794/0.8085, allocations: 207.4 kB / 0.5767 GB, free: 6.531 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008157/0.8093, allocations: 379.4 kB / 0.5771 GB, free: 6.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.8095, allocations: 40.84 kB / 0.5771 GB, free: 6.188 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000337/0.8098, allocations: 371.6 kB / 0.5775 GB, free: 5.898 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003197/0.8102, allocations: 228.1 kB / 0.5777 GB, free: 5.707 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.482e-05/0.8102, allocations: 0 / 0.5777 GB, free: 5.707 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.8104, allocations: 351.9 kB / 0.578 GB, free: 5.371 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007405/0.8112, allocations: 286.7 kB / 0.5783 GB, free: 5.191 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008877/0.8121, allocations: 469.4 kB / 0.5788 GB, free: 4.789 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007697/0.8129, allocations: 318.1 kB / 0.5791 GB, free: 4.574 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.108e-06/0.8129, allocations: 0 / 0.5791 GB, free: 4.574 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002481/0.8154, allocations: 0.8821 MB / 0.5799 GB, free: 3.883 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.389e-05/0.8155, allocations: 61.28 kB / 0.58 GB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.8155, allocations: 4 kB / 0.58 GB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007734/0.8163, allocations: 132.4 kB / 0.5801 GB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/0.818, allocations: 217.7 kB / 0.5803 GB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004191/0.8222, allocations: 2.936 MB / 0.5832 GB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009371/0.8232, allocations: 39.77 kB / 0.5832 GB, free: 472 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.77e-05/0.8233, allocations: 35.66 kB / 0.5833 GB, free: 444 kB / 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.0003738/0.8237, allocations: 224.3 kB / 0.5835 GB, free: 212 kB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002276/0.826, allocations: 0.7968 MB / 0.5842 GB, free: 15.58 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.8262, allocations: 75.19 kB / 0.5843 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002334/0.8285, allocations: 0.8401 MB / 0.5851 GB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.8286, allocations: 8 kB / 0.5851 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.8286, allocations: 7.984 kB / 0.5852 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.8286, allocations: 0 / 0.5852 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004292/0.8329, allocations: 1.657 MB / 0.5868 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.833, allocations: 3.953 kB / 0.5868 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001363/0.8343, allocations: 155.2 kB / 0.5869 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009368/0.8353, allocations: 147.5 kB / 0.5871 GB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.8354, allocations: 15.73 kB / 0.5871 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004043/0.8395, allocations: 2.95 MB / 0.59 GB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.8395, allocations: 3.938 kB / 0.59 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003406/0.8429, allocations: 1.376 MB / 0.5913 GB, free: 9.172 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005444/0.8435, allocations: 209 kB / 0.5915 GB, free: 8.973 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/0.8437, allocations: 15.8 kB / 0.5915 GB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006648/0.8444, allocations: 31.97 kB / 0.5916 GB, free: 8.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003098/0.8447, allocations: 91.16 kB / 0.5916 GB, free: 8.855 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-05/0.8448, allocations: 30.36 kB / 0.5917 GB, free: 8.832 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005408/0.8454, allocations: 291.4 kB / 0.5919 GB, free: 8.609 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.8454, allocations: 3.938 kB / 0.592 GB, free: 8.605 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001078/0.8465, allocations: 184 kB / 0.5921 GB, free: 8.426 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) * 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.003926/0.8504, allocations: 2.118 MB / 0.5942 GB, free: 6.625 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002964/0.8534, allocations: 1.118 MB / 0.5953 GB, free: 5.691 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.8534, allocations: 4.188 kB / 0.5953 GB, free: 5.688 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002159/0.8556, allocations: 0.7975 MB / 0.5961 GB, free: 4.988 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.8568, allocations: 121 kB / 0.5962 GB, free: 4.895 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005441/0.8623, allocations: 1.609 MB / 0.5978 GB, free: 3.398 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008569/0.8632, allocations: 1.007 MB / 0.5987 GB, free: 2.383 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006322/0.8638, allocations: 279 kB / 0.599 GB, free: 2.305 MB / 394.7 MB Notification: Performance of SimCode: time 1.122e-06/0.8638, allocations: 0 / 0.599 GB, free: 2.305 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.243/4.107, allocations: 18.11 MB / 0.6167 GB, free: 336 kB / 410.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)