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.001587/0.001593, allocations: 186 kB / 15.77 MB, free: 5.988 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.993/1.993, 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.001122/0.001122, allocations: 90.81 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.2638/0.2638, allocations: 38.05 MB / 356.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006611/0.0006614, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1132, allocations: 56.34 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.01117/0.1245, allocations: 6.766 MB / 485.9 MB, free: 11.15 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005235/0.1298, allocations: 1.896 MB / 487.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007357/0.1306, allocations: 35.75 kB / 487.8 MB, free: 9.211 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000614/0.1312, allocations: 151 kB / 488 MB, free: 9.062 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00152/0.1327, allocations: 382.8 kB / 488.4 MB, free: 8.688 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.1339, allocations: 275.4 kB / 488.6 MB, free: 8.418 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001345/0.1353, allocations: 0.6042 MB / 489.2 MB, free: 7.812 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004784/0.1358, allocations: 213 kB / 489.4 MB, free: 7.605 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008302/0.1366, allocations: 370.6 kB / 489.8 MB, free: 7.242 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008369/0.1375, allocations: 382.7 kB / 490.2 MB, free: 6.867 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.1376, allocations: 32 kB / 490.2 MB, free: 6.836 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.1378, allocations: 36 kB / 490.2 MB, free: 6.801 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004322/0.1382, allocations: 287.2 kB / 490.5 MB, free: 6.52 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002517/0.1385, allocations: 173.3 kB / 490.7 MB, free: 6.344 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.1396, allocations: 0.6818 MB / 491.4 MB, free: 5.66 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.1396, allocations: 0 / 491.4 MB, free: 5.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1396, allocations: 0 / 491.4 MB, free: 5.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.094e-05/0.1396, allocations: 4 kB / 491.4 MB, free: 5.656 MB / 330.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.003013/0.1426, allocations: 1.036 MB / 492.4 MB, free: 4.555 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.1427, allocations: 8.031 kB / 492.4 MB, free: 4.547 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000205/0.1429, allocations: 110.5 kB / 492.5 MB, free: 4.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/0.1431, allocations: 90.92 kB / 492.6 MB, free: 4.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001392/0.1446, allocations: 0.5446 MB / 493.2 MB, free: 3.754 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.468e-05/0.1447, allocations: 57.3 kB / 493.2 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001701/0.1448, allocations: 67.94 kB / 493.3 MB, free: 3.633 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002082/0.1469, allocations: 0.8319 MB / 494.1 MB, free: 2.754 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.653e-05/0.147, allocations: 0 / 494.1 MB, free: 2.754 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.1471, allocations: 28 kB / 494.1 MB, free: 2.727 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003465/0.1475, allocations: 61.25 kB / 494.2 MB, free: 2.664 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00183/0.1493, allocations: 0.6178 MB / 494.8 MB, free: 2.047 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006831/0.1562, allocations: 2.994 MB / 497.8 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001818/0.158, allocations: 0.9152 MB / 498.7 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.65e-05/0.1581, allocations: 8.625 kB / 498.7 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001455/0.1596, allocations: 0.6388 MB / 499.4 MB, free: 13.26 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 5.28e-06/0.1596, allocations: 0 / 499.4 MB, free: 13.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=82): time 0.007538/0.1671, allocations: 2.779 MB / 0.4904 GB, free: 10.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001569/0.1673, allocations: 208.6 kB / 0.4906 GB, free: 10.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008369/0.1682, allocations: 482 kB / 0.491 GB, free: 9.578 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001294/0.1683, allocations: 53.69 kB / 0.4911 GB, free: 9.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003451/0.1687, allocations: 374.6 kB / 0.4915 GB, free: 9.148 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003052/0.169, allocations: 237 kB / 0.4917 GB, free: 8.914 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.969e-05/0.1691, allocations: 20 kB / 0.4917 GB, free: 8.895 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.1693, allocations: 346.8 kB / 0.492 GB, free: 8.547 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009211/0.1702, allocations: 313.8 kB / 0.4923 GB, free: 8.242 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001076/0.1713, allocations: 0.4943 MB / 0.4928 GB, free: 7.676 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009848/0.1723, allocations: 406.2 kB / 0.4932 GB, free: 7.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.1724, allocations: 0 / 0.4932 GB, free: 7.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002958/0.1753, allocations: 1.056 MB / 0.4942 GB, free: 6.191 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.966e-05/0.1754, allocations: 59.41 kB / 0.4943 GB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.728e-05/0.1754, allocations: 4 kB / 0.4943 GB, free: 6.117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008585/0.1763, allocations: 141.9 kB / 0.4944 GB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/0.178, allocations: 215.7 kB / 0.4946 GB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004686/0.1827, allocations: 3.127 MB / 0.4977 GB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009024/0.1836, allocations: 51.88 kB / 0.4977 GB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.404e-05/0.1837, allocations: 36 kB / 0.4978 GB, free: 2.281 MB / 346.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.0006899/0.1844, allocations: 354.3 kB / 0.4981 GB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.1846, allocations: 67.25 kB / 0.4982 GB, free: 1.852 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002871/0.1875, allocations: 1.042 MB / 0.4992 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/0.1875, allocations: 8 kB / 0.4992 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1876, allocations: 0 / 0.4992 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.1876, allocations: 3.984 kB / 0.4992 GB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004999/0.1926, allocations: 1.944 MB / 0.5011 GB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.1926, allocations: 0 / 0.5011 GB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/0.194, allocations: 155.9 kB / 0.5012 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001117/0.1952, allocations: 173.4 kB / 0.5014 GB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/0.1953, allocations: 27.95 kB / 0.5014 GB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00455/0.1999, allocations: 3.119 MB / 0.5045 GB, free: 11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.1999, allocations: 3.938 kB / 0.5045 GB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004176/0.2041, allocations: 1.609 MB / 0.5061 GB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004938/0.2046, allocations: 204.2 kB / 0.5063 GB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.2048, allocations: 31.98 kB / 0.5063 GB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007016/0.2055, allocations: 43.95 kB / 0.5063 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003225/0.2059, allocations: 80.53 kB / 0.5064 GB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.862e-05/0.206, allocations: 47.86 kB / 0.5064 GB, free: 8.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005813/0.2066, allocations: 322.9 kB / 0.5068 GB, free: 8.594 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2066, allocations: 0 / 0.5068 GB, free: 8.594 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001021/0.2076, allocations: 216 kB / 0.507 GB, free: 8.383 MB / 362.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_1.closed,switch1.switch_2.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_2.open,switch1.switch_1.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.004643/0.2123, allocations: 2.354 MB / 0.5093 GB, free: 5.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003434/0.2158, allocations: 1.224 MB / 0.5105 GB, free: 4.695 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.2158, allocations: 0 / 0.5105 GB, free: 4.695 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002489/0.2183, allocations: 0.8674 MB / 0.5113 GB, free: 3.777 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.2194, allocations: 129.8 kB / 0.5114 GB, free: 3.652 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3075/0.527, allocations: 8.208 MB / 0.5194 GB, free: 49.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006862/0.5277, allocations: 1.009 MB / 0.5204 GB, free: 48.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000642/0.5284, allocations: 263.1 kB / 0.5207 GB, free: 48.88 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5284, allocations: 1.688 kB / 0.5207 GB, free: 48.88 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.959/3.487, allocations: 18.07 MB / 0.5383 GB, free: 41.47 MB / 362.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)