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.001297/0.001297, allocations: 111.1 kB / 17.06 MB, free: 5.977 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.001364/0.001364, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.306/1.306, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1721/0.1721, allocations: 37.99 MB / 309.2 MB, free: 5.945 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.001522/0.001522, allocations: 71.89 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.094/0.09554, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.009749/0.1053, allocations: 7.574 MB / 494.2 MB, free: 1.234 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004091/0.1095, allocations: 2.361 MB / 496.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005352/0.11, allocations: 27.81 kB / 496.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002284/0.1123, allocations: 0.8635 MB / 497.4 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001186/0.1135, allocations: 0.5013 MB / 497.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.1146, allocations: 455 kB / 498.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001454/0.1161, allocations: 1.313 MB / 499.7 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009254/0.117, allocations: 0.6894 MB / 0.4886 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001018/0.118, allocations: 0.5797 MB / 0.4892 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001057/0.1191, allocations: 0.6852 MB / 0.4899 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002012/0.1193, allocations: 84 kB / 0.49 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006016/0.1199, allocations: 259.7 kB / 0.4902 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005152/0.1205, allocations: 0.5065 MB / 0.4907 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007142/0.1212, allocations: 0.5443 MB / 0.4912 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001455/0.1226, allocations: 1.324 MB / 0.4925 GB, free: 7.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1227, allocations: 0 / 0.4925 GB, free: 7.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1227, allocations: 0 / 0.4925 GB, free: 7.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.846e-05/0.1227, allocations: 0 / 0.4925 GB, free: 7.02 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.002894/0.1256, allocations: 1.339 MB / 0.4938 GB, free: 5.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.1257, allocations: 11.89 kB / 0.4938 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001695/0.1259, allocations: 143.7 kB / 0.494 GB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009589/0.1268, allocations: 171.5 kB / 0.4941 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.128, allocations: 0.7466 MB / 0.4949 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.36e-05/0.1281, allocations: 62.38 kB / 0.4949 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002111/0.1283, allocations: 99.92 kB / 0.495 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.1299, allocations: 1.223 MB / 0.4962 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.797e-05/0.1299, allocations: 11.78 kB / 0.4962 GB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.946e-05/0.13, allocations: 44 kB / 0.4963 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002402/0.1303, allocations: 57.97 kB / 0.4963 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.1317, allocations: 1.011 MB / 0.4973 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00539/0.1371, allocations: 4.748 MB / 0.502 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009944/0.1381, allocations: 0.6681 MB / 0.5026 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005698/0.1387, allocations: 455.8 kB / 0.503 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-05/0.1388, allocations: 12.55 kB / 0.503 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006751/0.1395, allocations: 0.5003 MB / 0.5035 GB, free: 11.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 3.557e-06/0.1395, allocations: 0 / 0.5035 GB, free: 11.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.00456/0.144, allocations: 2.792 MB / 0.5063 GB, free: 8.418 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.669e-05/0.1442, allocations: 170.8 kB / 0.5064 GB, free: 8.215 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006269/0.1448, allocations: 0.5939 MB / 0.507 GB, free: 7.613 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.549e-05/0.1449, allocations: 41.7 kB / 0.507 GB, free: 7.566 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000317/0.1452, allocations: 478.9 kB / 0.5075 GB, free: 7.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002038/0.1454, allocations: 252.5 kB / 0.5077 GB, free: 6.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002403/0.1456, allocations: 178.4 kB / 0.5079 GB, free: 6.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1458, allocations: 390.8 kB / 0.5083 GB, free: 6.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005741/0.1464, allocations: 373.8 kB / 0.5086 GB, free: 5.902 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008394/0.1472, allocations: 0.6346 MB / 0.5093 GB, free: 5.156 MB / 398.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.006635/0.1539, allocations: 3.446 MB / 0.5126 GB, free: 1.527 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.1539, allocations: 0 / 0.5126 GB, free: 1.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002189/0.1561, allocations: 1.336 MB / 0.5139 GB, free: 172 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/0.1562, allocations: 37.69 kB / 0.514 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.1562, allocations: 8 kB / 0.514 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006406/0.1568, allocations: 254.8 kB / 0.5142 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.1579, allocations: 263.5 kB / 0.5145 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005361/0.1633, allocations: 6.073 MB / 0.5204 GB, free: 9.117 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005986/0.1639, allocations: 43.98 kB / 0.5204 GB, free: 9.074 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.415e-05/0.164, allocations: 40 kB / 0.5205 GB, free: 9.035 MB / 414.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.0005237/0.1645, allocations: 379.1 kB / 0.5208 GB, free: 8.648 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.1647, allocations: 79 kB / 0.5209 GB, free: 8.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001904/0.1666, allocations: 1.149 MB / 0.522 GB, free: 7.391 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-05/0.1666, allocations: 8 kB / 0.522 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.1666, allocations: 4 kB / 0.5221 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.1666, allocations: 7.984 kB / 0.5221 GB, free: 7.371 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0034/0.17, allocations: 2.25 MB / 0.5243 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.1701, allocations: 0 / 0.5243 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008527/0.1709, allocations: 191.9 kB / 0.5244 GB, free: 4.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006676/0.1716, allocations: 250.3 kB / 0.5247 GB, free: 4.586 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.648e-05/0.1717, allocations: 27.91 kB / 0.5247 GB, free: 4.559 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1887/0.3604, allocations: 5.999 MB / 0.5306 GB, free: 50.26 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3604, allocations: 3.875 kB / 0.5306 GB, free: 50.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002398/0.3628, allocations: 1.645 MB / 0.5322 GB, free: 50.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.363, allocations: 148.5 kB / 0.5323 GB, free: 49.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.3631, allocations: 29.36 kB / 0.5323 GB, free: 49.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003887/0.3635, allocations: 22.19 kB / 0.5324 GB, free: 49.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.3637, allocations: 54.58 kB / 0.5324 GB, free: 49.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.842e-05/0.3637, allocations: 30.14 kB / 0.5324 GB, free: 49.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004142/0.3641, allocations: 416.5 kB / 0.5328 GB, free: 49.83 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3641, allocations: 0 / 0.5328 GB, free: 49.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009531/0.3651, allocations: 269.5 kB / 0.5331 GB, free: 49.83 MB / 414.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.002388/0.3675, allocations: 2.229 MB / 0.5353 GB, free: 48.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001892/0.3694, allocations: 1.386 MB / 0.5366 GB, free: 47.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3694, allocations: 1.062 kB / 0.5366 GB, free: 47.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.3706, allocations: 0.9213 MB / 0.5375 GB, free: 47.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000868/0.3715, allocations: 173.9 kB / 0.5377 GB, free: 47.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.3818, allocations: 8.171 MB / 0.5457 GB, free: 42.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006903/0.3825, allocations: 1.119 MB / 0.5468 GB, free: 42.23 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005828/0.3831, allocations: 214.4 kB / 0.547 GB, free: 42.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003447/0.3834, allocations: 337.7 kB / 0.5473 GB, free: 41.95 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3835, allocations: 0 / 0.5473 GB, free: 41.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04473/0.4282, allocations: 19.21 MB / 0.566 GB, free: 29.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.76, allocations: 7.953 kB / 0.5661 GB, free: 29.26 MB / 414.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)