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.002229/0.002235, allocations: 185.4 kB / 13.19 MB, free: 2.125 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.143/2.143, allocations: 205.2 MB / 218.9 MB, free: 9.199 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.00148/0.00148, allocations: 88.52 kB / 267.1 MB, free: 9.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2803/0.2803, allocations: 37.96 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.229e-05/3.243e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1369, allocations: 56.31 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.515/0.652, allocations: 100.2 MB / 0.56 GB, free: 3.477 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003613/0.6524, allocations: 87.95 kB / 0.56 GB, free: 3.391 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08012/0.7325, allocations: 14.98 MB / 0.5747 GB, free: 4.223 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.62e-06/0.7326, allocations: 0 / 0.5747 GB, free: 4.223 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.438e-05/0.7327, allocations: 19.94 kB / 0.5747 GB, free: 4.203 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.003414/0.7361, allocations: 0.9762 MB / 0.5756 GB, free: 3.164 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.168e-05/0.7362, allocations: 8.031 kB / 0.5756 GB, free: 3.156 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003861/0.7366, allocations: 106.5 kB / 0.5757 GB, free: 3.043 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003688/0.737, allocations: 86.97 kB / 0.5758 GB, free: 2.957 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005698/0.7427, allocations: 1.075 MB / 0.5769 GB, free: 1.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.7429, allocations: 53.31 kB / 0.5769 GB, free: 1.785 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003211/0.7432, allocations: 64 kB / 0.577 GB, free: 1.723 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003271/0.7465, allocations: 0.8127 MB / 0.5778 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.154e-05/0.7466, allocations: 3.953 kB / 0.5778 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001619/0.7468, allocations: 31.97 kB / 0.5778 GB, free: 0.8281 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.969e-05/0.7469, allocations: 16 kB / 0.5778 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002751/0.7496, allocations: 0.5868 MB / 0.5784 GB, free: 232 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01011/0.7598, allocations: 2.951 MB / 0.5813 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002035/0.7619, allocations: 0.6021 MB / 0.5819 GB, free: 12.55 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001299/0.7632, allocations: 399.1 kB / 0.5823 GB, free: 12.15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.01e-05/0.7633, allocations: 8.562 kB / 0.5823 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001797/0.7651, allocations: 0.6059 MB / 0.5829 GB, free: 11.51 MB / 426.7 MB Notification: Performance of pre-optimization done (n=81): time 4.328e-06/0.7651, allocations: 0 / 0.5829 GB, free: 11.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=82): time 0.006875/0.772, allocations: 2.004 MB / 0.5848 GB, free: 9.402 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001972/0.7723, allocations: 204.7 kB / 0.585 GB, free: 9.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.7734, allocations: 435.8 kB / 0.5854 GB, free: 8.727 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000175/0.7736, allocations: 45.7 kB / 0.5855 GB, free: 8.676 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000436/0.774, allocations: 374.7 kB / 0.5858 GB, free: 8.305 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004023/0.7745, allocations: 232.9 kB / 0.586 GB, free: 8.074 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.372e-05/0.7746, allocations: 20 kB / 0.5861 GB, free: 8.055 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002149/0.7748, allocations: 350.8 kB / 0.5864 GB, free: 7.703 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.776, allocations: 305.9 kB / 0.5867 GB, free: 7.406 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001641/0.7777, allocations: 492.8 kB / 0.5872 GB, free: 6.859 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001627/0.7793, allocations: 393.6 kB / 0.5875 GB, free: 6.465 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.7794, allocations: 3.938 kB / 0.5875 GB, free: 6.461 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.004491/0.7839, allocations: 1.02 MB / 0.5885 GB, free: 5.414 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.7841, allocations: 67.31 kB / 0.5886 GB, free: 5.336 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.514e-05/0.7841, allocations: 8 kB / 0.5886 GB, free: 5.328 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.7852, allocations: 137.6 kB / 0.5887 GB, free: 5.188 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002454/0.7877, allocations: 203.7 kB / 0.5889 GB, free: 4.988 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006456/0.7942, allocations: 3.053 MB / 0.5919 GB, free: 1.664 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/0.7956, allocations: 56.12 kB / 0.592 GB, free: 1.609 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001531/0.7958, allocations: 32 kB / 0.592 GB, free: 1.578 MB / 426.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.0006001/0.7964, allocations: 259.2 kB / 0.5922 GB, free: 1.312 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002874/0.7967, allocations: 67.23 kB / 0.5923 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004117/0.8009, allocations: 0.9809 MB / 0.5933 GB, free: 244 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.955e-05/0.801, allocations: 11.94 kB / 0.5933 GB, free: 232 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/0.801, allocations: 8 kB / 0.5933 GB, free: 224 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.38e-05/0.8011, allocations: 3.984 kB / 0.5933 GB, free: 220 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007892/0.809, allocations: 1.862 MB / 0.5951 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-05/0.809, allocations: 4 kB / 0.5951 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002001/0.8111, allocations: 159.8 kB / 0.5953 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001425/0.8125, allocations: 149.4 kB / 0.5954 GB, free: 13.96 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002383/0.8128, allocations: 23.98 kB / 0.5954 GB, free: 13.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006584/0.8194, allocations: 3.045 MB / 0.5984 GB, free: 10.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.8194, allocations: 0 / 0.5984 GB, free: 10.63 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006404/0.8259, allocations: 1.513 MB / 0.5999 GB, free: 9.062 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000862/0.8268, allocations: 204.2 kB / 0.6001 GB, free: 8.844 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002944/0.8271, allocations: 31.98 kB / 0.6001 GB, free: 8.812 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.8282, allocations: 47.97 kB / 0.6002 GB, free: 8.766 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006958/0.8289, allocations: 88.59 kB / 0.6002 GB, free: 8.676 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001565/0.8291, allocations: 27.98 kB / 0.6003 GB, free: 8.648 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009153/0.8301, allocations: 329.5 kB / 0.6006 GB, free: 8.324 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.8301, allocations: 0 / 0.6006 GB, free: 8.324 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001686/0.8318, allocations: 215.9 kB / 0.6008 GB, free: 8.113 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) * 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.006023/0.8378, allocations: 2.265 MB / 0.603 GB, free: 5.793 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004224/0.8421, allocations: 1.176 MB / 0.6041 GB, free: 4.562 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.8421, allocations: 0 / 0.6041 GB, free: 4.562 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003024/0.8452, allocations: 0.8324 MB / 0.605 GB, free: 3.68 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.8467, allocations: 134.6 kB / 0.6051 GB, free: 3.551 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007203/0.8539, allocations: 1.681 MB / 0.6067 GB, free: 1.812 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.8551, allocations: 1.013 MB / 0.6077 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009113/0.856, allocations: 279.3 kB / 0.608 GB, free: 0.5 MB / 442.7 MB Notification: Performance of SimCode: time 1.332e-06/0.8561, allocations: 0 / 0.608 GB, free: 0.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.178/4.034, allocations: 18.25 MB / 0.6258 GB, free: 14.23 MB / 474.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)