Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial",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.001534/0.001538, allocations: 184.5 kB / 15.77 MB, free: 6.375 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.037/2.037, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001127/0.001127, allocations: 90.88 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2797/0.2797, allocations: 38.05 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006231/0.0006233, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1154, allocations: 56.34 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.013/0.1284, allocations: 7.842 MB / 487 MB, free: 10.07 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007628/0.1361, allocations: 2.745 MB / 489.7 MB, free: 7.32 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.1373, allocations: 55.62 kB / 489.8 MB, free: 7.266 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.1385, allocations: 262.5 kB / 490 MB, free: 7.008 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002327/0.1408, allocations: 494.4 kB / 490.5 MB, free: 6.523 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002184/0.1431, allocations: 455.1 kB / 491 MB, free: 6.078 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001744/0.1448, allocations: 0.6826 MB / 491.6 MB, free: 5.395 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002574/0.1475, allocations: 0.9982 MB / 492.6 MB, free: 4.359 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001129/0.1486, allocations: 414.5 kB / 493 MB, free: 3.953 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.1497, allocations: 458.5 kB / 493.5 MB, free: 3.504 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001721/0.1499, allocations: 40 kB / 493.5 MB, free: 3.465 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006723/0.1505, allocations: 183.7 kB / 493.7 MB, free: 3.285 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006773/0.1512, allocations: 439 kB / 494.1 MB, free: 2.855 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003642/0.1516, allocations: 209.1 kB / 494.3 MB, free: 2.645 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001735/0.1534, allocations: 0.978 MB / 495.3 MB, free: 1.664 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.1534, allocations: 4 kB / 495.3 MB, free: 1.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1534, allocations: 0 / 495.3 MB, free: 1.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.357e-05/0.1534, allocations: 4 kB / 495.3 MB, free: 1.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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003557/0.157, allocations: 1.167 MB / 496.5 MB, free: 440 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.1571, allocations: 8.031 kB / 496.5 MB, free: 432 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003566/0.1575, allocations: 135.5 kB / 496.6 MB, free: 288 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001687/0.1592, allocations: 178.6 kB / 496.8 MB, free: 108 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/0.1613, allocations: 0.6835 MB / 497.5 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.078e-05/0.1614, allocations: 62 kB / 497.6 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003986/0.1619, allocations: 111.8 kB / 497.7 MB, free: 15.21 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003063/0.1649, allocations: 1.212 MB / 498.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.703e-05/0.165, allocations: 0 / 498.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/0.1652, allocations: 36 kB / 498.9 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004721/0.1657, allocations: 65.95 kB / 499 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002988/0.1687, allocations: 1.003 MB / 500 MB, free: 12.83 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01055/0.1793, allocations: 4.775 MB / 0.4929 GB, free: 7.848 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001946/0.1813, allocations: 0.6682 MB / 0.4936 GB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.524e-05/0.1814, allocations: 16.61 kB / 0.4936 GB, free: 7.141 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001263/0.1827, allocations: 0.5041 MB / 0.4941 GB, free: 6.613 MB / 346.7 MB Notification: Performance of pre-optimization done (n=69): time 4.008e-06/0.1827, allocations: 0 / 0.4941 GB, free: 6.613 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.008134/0.1908, allocations: 2.932 MB / 0.4969 GB, free: 3.559 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/0.191, allocations: 170.8 kB / 0.4971 GB, free: 3.352 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.1921, allocations: 0.5898 MB / 0.4977 GB, free: 2.754 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001733/0.1923, allocations: 41.7 kB / 0.4977 GB, free: 2.707 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004828/0.1928, allocations: 0.4935 MB / 0.4982 GB, free: 2.207 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003622/0.1932, allocations: 248.5 kB / 0.4984 GB, free: 1.961 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.751e-05/0.1933, allocations: 20 kB / 0.4985 GB, free: 1.941 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.1935, allocations: 354.8 kB / 0.4988 GB, free: 1.586 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.1945, allocations: 365.8 kB / 0.4991 GB, free: 1.227 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/0.1959, allocations: 0.6268 MB / 0.4998 GB, free: 496 kB / 346.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/0.2061, allocations: 2.414 MB / 0.5021 GB, free: 14.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/0.2061, allocations: 11.92 kB / 0.5021 GB, free: 14.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003793/0.2099, allocations: 1.289 MB / 0.5034 GB, free: 12.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.645e-05/0.21, allocations: 37.69 kB / 0.5034 GB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/0.2101, allocations: 8 kB / 0.5034 GB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/0.2112, allocations: 243 kB / 0.5037 GB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002403/0.2136, allocations: 279.5 kB / 0.5039 GB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008853/0.2225, allocations: 5.636 MB / 0.5094 GB, free: 6.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.2236, allocations: 43.98 kB / 0.5095 GB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.2237, allocations: 36 kB / 0.5095 GB, free: 6.004 MB / 362.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008395/0.2246, allocations: 380 kB / 0.5099 GB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/0.2248, allocations: 79 kB / 0.5099 GB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003408/0.2282, allocations: 1.145 MB / 0.5111 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.59e-05/0.2283, allocations: 12 kB / 0.5111 GB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.2283, allocations: 4 kB / 0.5111 GB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.2284, allocations: 3.984 kB / 0.5111 GB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006128/0.2345, allocations: 2.242 MB / 0.5133 GB, free: 2.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.2346, allocations: 8.031 kB / 0.5133 GB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001987/0.2366, allocations: 191.8 kB / 0.5135 GB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/0.2379, allocations: 246.6 kB / 0.5137 GB, free: 1.574 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001393/0.238, allocations: 24.23 kB / 0.5137 GB, free: 1.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3086/0.5466, allocations: 5.563 MB / 0.5192 GB, free: 48.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.5467, allocations: 4.938 kB / 0.5192 GB, free: 48.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004554/0.5512, allocations: 1.699 MB / 0.5208 GB, free: 47.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002963/0.5516, allocations: 151.3 kB / 0.521 GB, free: 47.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002196/0.5518, allocations: 22.78 kB / 0.521 GB, free: 47.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007299/0.5525, allocations: 29.23 kB / 0.521 GB, free: 47.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002722/0.5528, allocations: 61.47 kB / 0.5211 GB, free: 47.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.283e-05/0.5529, allocations: 22.12 kB / 0.5211 GB, free: 47.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007268/0.5537, allocations: 407.8 kB / 0.5215 GB, free: 47.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5537, allocations: 2.719 kB / 0.5215 GB, free: 47.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001645/0.5553, allocations: 272.1 kB / 0.5217 GB, free: 47.65 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004791/0.5602, allocations: 2.694 MB / 0.5244 GB, free: 45.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003505/0.5637, allocations: 1.38 MB / 0.5257 GB, free: 45.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.5638, allocations: 2.625 kB / 0.5257 GB, free: 45.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002319/0.5661, allocations: 0.9125 MB / 0.5266 GB, free: 44.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.5675, allocations: 162.1 kB / 0.5268 GB, free: 44.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01667/0.5842, allocations: 11.64 MB / 0.5381 GB, free: 35.94 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009871/0.5853, allocations: 1.135 MB / 0.5392 GB, free: 35.19 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007602/0.5861, allocations: 346 kB / 0.5396 GB, free: 34.93 MB / 362.7 MB Notification: Performance of SimCode: time 1.542e-06/0.5861, allocations: 0 / 0.5396 GB, free: 34.93 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.133/3.719, allocations: 24.54 MB / 0.5635 GB, free: 14.64 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)