Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_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.001477/0.001477, allocations: 189 kB / 8.013 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.083/2.083, allocations: 205.3 MB / 213.7 MB, free: 1.738 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.00114/0.00114, allocations: 86.64 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2658/0.2658, allocations: 38 MB / 347.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.627e-05/2.624e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1148, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5017/0.6165, allocations: 106.3 MB / 0.5591 GB, free: 5.074 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.6169, allocations: 91.69 kB / 0.5592 GB, free: 5.027 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1123/0.7293, allocations: 24.87 MB / 0.5835 GB, free: 15.85 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.7293, allocations: 0 / 0.5835 GB, free: 15.85 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001017/0.7294, allocations: 20 kB / 0.5835 GB, free: 15.83 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.006012/0.7355, allocations: 1.389 MB / 0.5849 GB, free: 14.44 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.687e-05/0.7356, allocations: 8.781 kB / 0.5849 GB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002773/0.7384, allocations: 198.2 kB / 0.5851 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00536/0.7438, allocations: 1.199 MB / 0.5862 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.7439, allocations: 44.86 kB / 0.5863 GB, free: 13.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002917/0.7442, allocations: 70.97 kB / 0.5864 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003421/0.7477, allocations: 1.257 MB / 0.5876 GB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0034/0.7511, allocations: 1.407 MB / 0.589 GB, free: 11.13 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.855e-05/0.7512, allocations: 11.92 kB / 0.589 GB, free: 11.12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.7514, allocations: 19.67 kB / 0.589 GB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001452/0.7516, allocations: 65.86 kB / 0.589 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01374/0.7653, allocations: 5.499 MB / 0.5944 GB, free: 6.32 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002433/0.7678, allocations: 1.009 MB / 0.5954 GB, free: 5.637 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001715/0.7696, allocations: 0.7791 MB / 0.5962 GB, free: 5.148 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000115/0.7697, allocations: 17.31 kB / 0.5962 GB, free: 5.133 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002297/0.772, allocations: 1.059 MB / 0.5972 GB, free: 4.301 MB / 394.7 MB Notification: Performance of pre-optimization done (n=157): time 7.114e-06/0.7721, allocations: 0 / 0.5972 GB, free: 4.301 MB / 394.7 MB Notification: Performance of matching and sorting (n=158): time 0.008927/0.781, allocations: 3.418 MB / 0.6006 GB, free: 1.625 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/0.7812, allocations: 211.3 kB / 0.6008 GB, free: 1.383 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000811/0.782, allocations: 444.2 kB / 0.6012 GB, free: 1.027 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001861/0.7822, allocations: 41.33 kB / 0.6012 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000445/0.7827, allocations: 480.8 kB / 0.6017 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006251/0.7833, allocations: 461.8 kB / 0.6021 GB, free: 208 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.7834, allocations: 0 / 0.6021 GB, free: 208 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002293/0.7837, allocations: 378.8 kB / 0.6025 GB, free: 15.85 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/0.7853, allocations: 0.6442 MB / 0.6031 GB, free: 15.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00185/0.7871, allocations: 0.9162 MB / 0.604 GB, free: 14.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002023/0.7892, allocations: 0.7608 MB / 0.6047 GB, free: 13.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.7892, allocations: 4 kB / 0.6047 GB, free: 13.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.009598/0.7988, allocations: 2.586 MB / 0.6073 GB, free: 11.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.209e-05/0.799, allocations: 63.41 kB / 0.6073 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008489/0.8075, allocations: 2.258 MB / 0.6095 GB, free: 9.031 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006218/0.8137, allocations: 1.055 MB / 0.6106 GB, free: 7.973 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.8149, allocations: 147.7 kB / 0.6107 GB, free: 7.828 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02349/0.8384, allocations: 7.942 MB / 0.6185 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001919/0.8404, allocations: 63.91 kB / 0.6185 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004871/0.841, allocations: 52 kB / 0.6186 GB, free: 15.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 79 (system.initime,$PRE.fault_ab.fault_pp.t0,fault_ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3],$PRE.fault_ab.theta_zero,fault_ab.theta_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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 133 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(12,97.2%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000591/0.8416, allocations: 236 kB / 0.6188 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00512/0.8467, allocations: 1.563 MB / 0.6203 GB, free: 13.83 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005526/0.8473, allocations: 102.8 kB / 0.6204 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005513/0.8529, allocations: 1.66 MB / 0.622 GB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.711e-05/0.853, allocations: 43.97 kB / 0.6221 GB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.853, allocations: 0 / 0.6221 GB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.798e-05/0.8531, allocations: 7.969 kB / 0.6221 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/0.8638, allocations: 3.076 MB / 0.6251 GB, free: 8.875 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.8639, allocations: 3.938 kB / 0.6251 GB, free: 8.871 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004271/0.8682, allocations: 379.6 kB / 0.6255 GB, free: 8.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002212/0.8684, allocations: 32.84 kB / 0.6255 GB, free: 8.465 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003499/0.8688, allocations: 23.97 kB / 0.6255 GB, free: 8.441 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.8701, allocations: 1.28 MB / 0.6268 GB, free: 7.047 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/0.8702, allocations: 4.031 kB / 0.6268 GB, free: 7.043 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007095/0.8773, allocations: 2.754 MB / 0.6295 GB, free: 4.242 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/0.8785, allocations: 295.9 kB / 0.6297 GB, free: 3.934 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002909/0.8788, allocations: 19.98 kB / 0.6298 GB, free: 3.914 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/0.88, allocations: 59.91 kB / 0.6298 GB, free: 3.855 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005089/0.8806, allocations: 137.1 kB / 0.63 GB, free: 3.723 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/0.8807, allocations: 39.98 kB / 0.63 GB, free: 3.684 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006677/0.8814, allocations: 326.9 kB / 0.6303 GB, free: 3.363 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8814, allocations: 0 / 0.6303 GB, free: 3.363 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002141/0.8836, allocations: 359.9 kB / 0.6306 GB, free: 3.012 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (line.i1[1],line.i1[2],line.i1[3],line.i2[1],line.i2[2],line.i2[3]) * Number of discrete variables: 54 (switch1.switch_c.closed,switch1.switch_b.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,fault_ab.theta_zero,fault_ab.v_pos,fault_ab.first,fault_ab.fault_pp.on,fault_ab.fault_pp.t0,system.initime) * Number of discrete states: 20 (fault_ab.theta_zero,fault_ab.fault_pp.on,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_a.open,switch2.switch_b.open,switch2.switch_c.open,fault_ab.v_pos,fault_ab.first,switch1.switch_c.open,switch1.switch_a.open,switch1.switch_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 105 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007985/0.8916, allocations: 3.603 MB / 0.6342 GB, free: 15.36 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008039/0.8997, allocations: 2.377 MB / 0.6365 GB, free: 12.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.8998, allocations: 0 / 0.6365 GB, free: 12.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003031/0.9029, allocations: 1.15 MB / 0.6376 GB, free: 11.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.9044, allocations: 125.1 kB / 0.6377 GB, free: 11.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008692/0.9132, allocations: 2.754 MB / 0.6404 GB, free: 8.836 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/0.9145, allocations: 1.23 MB / 0.6416 GB, free: 7.57 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001277/0.9158, allocations: 407.3 kB / 0.642 GB, free: 7.172 MB / 442.7 MB Notification: Performance of SimCode: time 1.353e-06/0.9158, allocations: 0 / 0.642 GB, free: 7.172 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.398/4.313, allocations: 23.7 MB / 0.6652 GB, free: 15.44 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Fault.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)