Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009216/0.0009218, allocations: 88.08 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00088/0.0008799, allocations: 183.7 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.707/1.707, allocations: 205.4 MB / 223.4 MB, free: 5.793 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3252/0.3252, allocations: 38.06 MB / 309.7 MB, free: 9.027 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004968/0.0004968, allocations: 12 kB / 376.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1186, allocations: 56.33 MB / 432.9 MB, free: 6.883 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.008466/0.1271, allocations: 8.219 MB / 441.2 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006028/0.1331, allocations: 2.74 MB / 443.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001159/0.1343, allocations: 55.62 kB / 444 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008582/0.1352, allocations: 258.2 kB / 444.2 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001956/0.1372, allocations: 0.5908 MB / 444.8 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001693/0.1389, allocations: 471.1 kB / 445.3 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001957/0.1409, allocations: 1.551 MB / 446.8 MB, free: 8.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002071/0.1429, allocations: 1.01 MB / 447.8 MB, free: 7.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001395/0.1444, allocations: 465.9 kB / 448.3 MB, free: 7.457 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001192/0.1456, allocations: 0.6698 MB / 448.9 MB, free: 6.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.698e-05/0.1457, allocations: 43.98 kB / 449 MB, free: 6.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000606/0.1463, allocations: 195.7 kB / 449.2 MB, free: 6.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005263/0.1468, allocations: 478.8 kB / 449.6 MB, free: 6.082 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002912/0.1471, allocations: 205.2 kB / 449.8 MB, free: 5.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001075/0.1482, allocations: 0.9858 MB / 450.8 MB, free: 4.887 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.1482, allocations: 0 / 450.8 MB, free: 4.887 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1482, allocations: 4 kB / 450.8 MB, free: 4.883 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.805e-05/0.1483, allocations: 3.938 kB / 450.8 MB, free: 4.879 MB / 382.1 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.002207/0.1505, allocations: 1.163 MB / 452 MB, free: 3.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.1505, allocations: 8.031 kB / 452 MB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001745/0.1507, allocations: 147.5 kB / 452.2 MB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009336/0.1517, allocations: 166.6 kB / 452.3 MB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.1527, allocations: 0.6873 MB / 453 MB, free: 2.602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.605e-05/0.1528, allocations: 65.98 kB / 453.1 MB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002059/0.153, allocations: 103.8 kB / 453.2 MB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/0.1548, allocations: 1.216 MB / 454.4 MB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.173e-05/0.1549, allocations: 4 kB / 454.4 MB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.588e-05/0.1549, allocations: 36 kB / 454.4 MB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002294/0.1552, allocations: 69.89 kB / 454.5 MB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001552/0.1567, allocations: 0.9991 MB / 455.5 MB, free: 44 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2353/0.392, allocations: 4.786 MB / 460.3 MB, free: 49.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000944/0.393, allocations: 0.6616 MB / 460.9 MB, free: 49.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005604/0.3936, allocations: 449.8 kB / 461.4 MB, free: 49.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.597e-05/0.3937, allocations: 11.38 kB / 461.4 MB, free: 49.03 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007066/0.3944, allocations: 0.5039 MB / 461.9 MB, free: 48.92 MB / 382.1 MB Notification: Performance of pre-optimization done (n=69): time 2.564e-06/0.3944, allocations: 3.188 kB / 461.9 MB, free: 48.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=73): time 0.004299/0.3987, allocations: 2.802 MB / 464.7 MB, free: 48.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.3988, allocations: 164.3 kB / 464.9 MB, free: 47.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005678/0.3994, allocations: 0.5816 MB / 465.4 MB, free: 47.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/0.3994, allocations: 40.8 kB / 465.5 MB, free: 47.69 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.3997, allocations: 486.6 kB / 466 MB, free: 47.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/0.3999, allocations: 250.8 kB / 466.2 MB, free: 47.13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.276e-05/0.3999, allocations: 19.16 kB / 466.2 MB, free: 47.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.4001, allocations: 386.9 kB / 466.6 MB, free: 46.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/0.4005, allocations: 382.6 kB / 467 MB, free: 46.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000588/0.4011, allocations: 0.6226 MB / 467.6 MB, free: 46.21 MB / 382.1 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.004754/0.4059, allocations: 2.519 MB / 470.1 MB, free: 45.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.4059, allocations: 4 kB / 470.1 MB, free: 45.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00186/0.4078, allocations: 1.341 MB / 471.5 MB, free: 44.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.768e-05/0.4078, allocations: 38.59 kB / 471.5 MB, free: 44.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.4079, allocations: 10.3 kB / 471.5 MB, free: 44.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005112/0.4084, allocations: 239.6 kB / 471.7 MB, free: 44.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000945/0.4093, allocations: 272.5 kB / 472 MB, free: 44.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003951/0.4133, allocations: 5.57 MB / 477.6 MB, free: 39.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005581/0.4139, allocations: 33.42 kB / 477.6 MB, free: 39.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.237e-05/0.4139, allocations: 38.66 kB / 477.7 MB, free: 39.92 MB / 382.1 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.0005263/0.4145, allocations: 383.2 kB / 478 MB, free: 39.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.975e-05/0.4146, allocations: 79.03 kB / 478.1 MB, free: 39.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.4163, allocations: 1.141 MB / 479.2 MB, free: 39.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.808e-05/0.4163, allocations: 20.88 kB / 479.3 MB, free: 39.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4163, allocations: 3.062 kB / 479.3 MB, free: 39.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.4164, allocations: 6.609 kB / 479.3 MB, free: 39.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002892/0.4193, allocations: 2.246 MB / 481.5 MB, free: 38.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.4193, allocations: 3.25 kB / 481.5 MB, free: 38.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007796/0.4201, allocations: 196.3 kB / 481.7 MB, free: 38.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005763/0.4206, allocations: 240.7 kB / 481.9 MB, free: 38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.391e-05/0.4207, allocations: 24.58 kB / 482 MB, free: 37.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003634/0.4244, allocations: 5.502 MB / 487.5 MB, free: 33.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.4244, allocations: 7.094 kB / 487.5 MB, free: 33.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00209/0.4265, allocations: 1.641 MB / 489.1 MB, free: 32.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.4267, allocations: 158.8 kB / 489.3 MB, free: 32.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.4268, allocations: 22.33 kB / 489.3 MB, free: 32.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.4271, allocations: 30.7 kB / 489.3 MB, free: 32.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.4273, allocations: 53.92 kB / 489.4 MB, free: 32.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/0.4273, allocations: 29.95 kB / 489.4 MB, free: 32.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004161/0.4277, allocations: 404.5 kB / 489.8 MB, free: 32.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4278, allocations: 0 / 489.8 MB, free: 32.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001075/0.4288, allocations: 285.2 kB / 490.1 MB, free: 32.16 MB / 382.1 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.002282/0.4311, allocations: 2.21 MB / 492.3 MB, free: 30.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.433, allocations: 1.383 MB / 493.7 MB, free: 30.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.433, allocations: 0 / 493.7 MB, free: 30.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001087/0.4341, allocations: 0.9225 MB / 494.6 MB, free: 29.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008688/0.435, allocations: 167.7 kB / 494.8 MB, free: 29.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009315/0.4443, allocations: 6.182 MB / 0.4892 GB, free: 26.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007426/0.4451, allocations: 1.106 MB / 0.4903 GB, free: 25.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006537/0.4458, allocations: 217 kB / 0.4905 GB, free: 25.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004034/0.4462, allocations: 338 kB / 0.4908 GB, free: 25.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4462, allocations: 4 kB / 0.4908 GB, free: 25.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04631/0.4925, allocations: 17.78 MB / 0.5082 GB, free: 20.08 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000152/0.4927, allocations: 214.4 kB / 0.5084 GB, free: 19.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.202/2.695, allocations: 0 / 0.5084 GB, free: 19.84 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) Environment - environmentSimulation: