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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.00128/0.00128, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001333/0.001333, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1743/0.1743, allocations: 38.02 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001217, allocations: 61.69 kB / 398.9 MB, free: 33.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09853/0.09977, allocations: 58.06 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.008138/0.1079, allocations: 7.558 MB / 464.5 MB, free: 360 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003646/0.1116, allocations: 2.337 MB / 466.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000314/0.112, allocations: 23.88 kB / 466.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001999/0.114, allocations: 0.862 MB / 467.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000898/0.1149, allocations: 0.4975 MB / 468.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009581/0.1158, allocations: 451 kB / 468.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.117, allocations: 1.313 MB / 470 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000766/0.1177, allocations: 0.6894 MB / 470.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000588/0.1183, allocations: 0.568 MB / 471.2 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007788/0.1191, allocations: 0.6852 MB / 471.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.1193, allocations: 80 kB / 472 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004888/0.1198, allocations: 271.6 kB / 472.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004075/0.1202, allocations: 0.5027 MB / 472.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005045/0.1207, allocations: 0.5481 MB / 473.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.1218, allocations: 1.301 MB / 474.6 MB, free: 6.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1218, allocations: 0 / 474.6 MB, free: 6.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1218, allocations: 0 / 474.6 MB, free: 6.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.1218, allocations: 0 / 474.6 MB, free: 6.207 MB / 350.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.002208/0.1241, allocations: 1.339 MB / 476 MB, free: 4.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.1241, allocations: 19.89 kB / 476 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001526/0.1243, allocations: 143.6 kB / 476.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/0.1253, allocations: 175.5 kB / 476.3 MB, free: 4.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009984/0.1263, allocations: 0.7037 MB / 477 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.923e-05/0.1264, allocations: 66.38 kB / 477.1 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001954/0.1266, allocations: 99.92 kB / 477.2 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.1282, allocations: 1.223 MB / 478.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/0.1282, allocations: 11.84 kB / 478.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.273e-05/0.1283, allocations: 32 kB / 478.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002748/0.1286, allocations: 61.97 kB / 478.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/0.1301, allocations: 1.015 MB / 479.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005202/0.1353, allocations: 4.775 MB / 484.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.1364, allocations: 0.6676 MB / 484.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006332/0.137, allocations: 455.8 kB / 485.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.981e-05/0.1371, allocations: 8.547 kB / 485.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000735/0.1378, allocations: 0.5119 MB / 485.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.474e-06/0.1378, allocations: 0 / 485.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004452/0.1423, allocations: 2.776 MB / 488.7 MB, free: 7.625 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.671e-05/0.1424, allocations: 174.8 kB / 488.9 MB, free: 7.418 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006945/0.1431, allocations: 0.5938 MB / 489.4 MB, free: 6.812 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.19e-05/0.1432, allocations: 41.7 kB / 489.5 MB, free: 6.766 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.1435, allocations: 483 kB / 490 MB, free: 6.285 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001941/0.1437, allocations: 244.4 kB / 490.2 MB, free: 6.043 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002302/0.1439, allocations: 178.5 kB / 490.4 MB, free: 5.863 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.1441, allocations: 394.7 kB / 490.8 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005447/0.1447, allocations: 373.8 kB / 491.1 MB, free: 5.102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006985/0.1454, allocations: 0.631 MB / 491.8 MB, free: 4.355 MB / 366.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.006738/0.1521, allocations: 3.457 MB / 495.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.525e-06/0.1522, allocations: 4 kB / 495.2 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002337/0.1545, allocations: 1.343 MB / 496.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.66e-05/0.1546, allocations: 33.7 kB / 496.6 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.1546, allocations: 12 kB / 496.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006291/0.1552, allocations: 239 kB / 496.8 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.1564, allocations: 275.5 kB / 497.1 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005211/0.1616, allocations: 6.081 MB / 0.4914 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006279/0.1622, allocations: 35.98 kB / 0.4914 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.841e-05/0.1623, allocations: 40.12 kB / 0.4915 GB, free: 8.219 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 system: 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,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000612/0.1629, allocations: 373.3 kB / 0.4918 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.1631, allocations: 91.06 kB / 0.4919 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002077/0.1652, allocations: 1.145 MB / 0.493 GB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.92e-05/0.1652, allocations: 11.98 kB / 0.493 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.1652, allocations: 4 kB / 0.493 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.1652, allocations: 3.984 kB / 0.493 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003373/0.1686, allocations: 2.246 MB / 0.4952 GB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.1686, allocations: 4 kB / 0.4952 GB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009088/0.1695, allocations: 183.8 kB / 0.4954 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006768/0.1702, allocations: 250.4 kB / 0.4957 GB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.491e-05/0.1703, allocations: 31.91 kB / 0.4957 GB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004803/0.1751, allocations: 6.007 MB / 0.5016 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.1751, allocations: 8.016 kB / 0.5016 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002475/0.1776, allocations: 1.642 MB / 0.5032 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.1778, allocations: 148.5 kB / 0.5033 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.1779, allocations: 24 kB / 0.5033 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004242/0.1784, allocations: 31.97 kB / 0.5034 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.1785, allocations: 60.36 kB / 0.5034 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-05/0.1786, allocations: 20 kB / 0.5034 GB, free: 11.33 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004622/0.179, allocations: 419 kB / 0.5038 GB, free: 10.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1791, allocations: 0 / 0.5038 GB, free: 10.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001008/0.1801, allocations: 272 kB / 0.5041 GB, free: 10.66 MB / 398.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002695/0.1828, allocations: 2.222 MB / 0.5063 GB, free: 8.383 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002483/0.1853, allocations: 1.563 MB / 0.5078 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1853, allocations: 0 / 0.5078 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001311/0.1866, allocations: 0.9133 MB / 0.5087 GB, free: 5.801 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009035/0.1875, allocations: 179.8 kB / 0.5089 GB, free: 5.625 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1867/0.3742, allocations: 8.397 MB / 0.5171 GB, free: 68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006852/0.3749, allocations: 1.11 MB / 0.5181 GB, free: 67.3 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005917/0.3755, allocations: 210 kB / 0.5183 GB, free: 67.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003357/0.3759, allocations: 339.7 kB / 0.5187 GB, free: 67.28 MB / 398.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3759, allocations: 0 / 0.5187 GB, free: 67.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04282/0.4187, allocations: 18.58 MB / 0.5368 GB, free: 61.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.31, allocations: 11.88 kB / 0.5368 GB, free: 61.76 MB / 398.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/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)