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.001208/0.001208, allocations: 113.2 kB / 17.06 MB, free: 6.004 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.001311/0.001311, allocations: 198.9 kB / 18 MB, free: 5.082 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.479/1.479, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1984/0.1984, allocations: 37.99 MB / 309.2 MB, free: 5.949 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.001553/0.001553, allocations: 67.91 kB / 431.4 MB, free: 16.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1174, allocations: 55.24 MB / 486.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.009975/0.1274, allocations: 7.57 MB / 494.2 MB, free: 1.348 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004626/0.1321, allocations: 2.361 MB / 496.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000838/0.1329, allocations: 31.81 kB / 496.6 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002668/0.1356, allocations: 0.8557 MB / 497.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00153/0.1372, allocations: 0.5052 MB / 497.9 MB, free: 13.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001349/0.1385, allocations: 447 kB / 498.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002079/0.1406, allocations: 1.328 MB / 499.7 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001127/0.1418, allocations: 0.6815 MB / 0.4886 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.143, allocations: 0.5758 MB / 0.4892 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001427/0.1444, allocations: 0.6853 MB / 0.4899 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002897/0.1447, allocations: 83.94 kB / 0.49 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007783/0.1455, allocations: 259.7 kB / 0.4902 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006631/0.1462, allocations: 0.5065 MB / 0.4907 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.1473, allocations: 0.5482 MB / 0.4912 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002109/0.1494, allocations: 1.32 MB / 0.4925 GB, free: 7.137 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.1494, allocations: 0 / 0.4925 GB, free: 7.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1494, allocations: 4 kB / 0.4925 GB, free: 7.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.552e-05/0.1495, allocations: 0 / 0.4925 GB, free: 7.133 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.004104/0.1536, allocations: 1.342 MB / 0.4938 GB, free: 5.727 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.591e-05/0.1537, allocations: 11.89 kB / 0.4938 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004746/0.1542, allocations: 139.7 kB / 0.494 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001365/0.1556, allocations: 167.5 kB / 0.4941 GB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001712/0.1573, allocations: 0.7466 MB / 0.4949 GB, free: 4.617 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.568e-05/0.1574, allocations: 70.36 kB / 0.4949 GB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002421/0.1576, allocations: 99.92 kB / 0.495 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/0.1595, allocations: 1.216 MB / 0.4962 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.612e-05/0.1596, allocations: 11.84 kB / 0.4962 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.508e-05/0.1597, allocations: 39.97 kB / 0.4963 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000254/0.1599, allocations: 61.97 kB / 0.4963 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.1615, allocations: 1.011 MB / 0.4973 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006524/0.168, allocations: 4.752 MB / 0.502 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.1691, allocations: 0.6604 MB / 0.5026 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006193/0.1697, allocations: 463.8 kB / 0.503 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.4e-05/0.1698, allocations: 8.547 kB / 0.503 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007556/0.1706, allocations: 0.5042 MB / 0.5035 GB, free: 11.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 3.005e-06/0.1706, allocations: 0 / 0.5035 GB, free: 11.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.004649/0.1752, allocations: 2.795 MB / 0.5063 GB, free: 8.527 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.1753, allocations: 170.8 kB / 0.5064 GB, free: 8.324 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006218/0.176, allocations: 0.5899 MB / 0.507 GB, free: 7.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.139e-05/0.176, allocations: 41.7 kB / 0.507 GB, free: 7.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003238/0.1764, allocations: 478.9 kB / 0.5075 GB, free: 7.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002173/0.1766, allocations: 252.5 kB / 0.5077 GB, free: 6.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002415/0.1768, allocations: 170.5 kB / 0.5079 GB, free: 6.781 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.177, allocations: 398.7 kB / 0.5083 GB, free: 6.383 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005646/0.1776, allocations: 373.8 kB / 0.5086 GB, free: 6.016 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000718/0.1783, allocations: 0.6307 MB / 0.5093 GB, free: 5.273 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.0069/0.1852, allocations: 3.45 MB / 0.5126 GB, free: 1.641 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.1852, allocations: 4 kB / 0.5126 GB, free: 1.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002267/0.1875, allocations: 1.331 MB / 0.5139 GB, free: 288 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.375e-05/0.1876, allocations: 37.7 kB / 0.514 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/0.1876, allocations: 8.781 kB / 0.514 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006421/0.1883, allocations: 250.3 kB / 0.5142 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.1894, allocations: 271.5 kB / 0.5145 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006127/0.1956, allocations: 6.073 MB / 0.5204 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006345/0.1962, allocations: 43.91 kB / 0.5204 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.1963, allocations: 40 kB / 0.5205 GB, free: 9.145 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.0007087/0.197, allocations: 371.2 kB / 0.5208 GB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002007/0.1973, allocations: 86.98 kB / 0.5209 GB, free: 8.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002187/0.1995, allocations: 1.141 MB / 0.522 GB, free: 7.508 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.3e-05/0.1995, allocations: 11.98 kB / 0.5221 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.1995, allocations: 4 kB / 0.5221 GB, free: 7.492 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.1995, allocations: 3.984 kB / 0.5221 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003962/0.2035, allocations: 2.254 MB / 0.5243 GB, free: 5.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.2035, allocations: 4 kB / 0.5243 GB, free: 5.137 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009283/0.2045, allocations: 179.8 kB / 0.5244 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007555/0.2052, allocations: 250.3 kB / 0.5247 GB, free: 4.707 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.027e-05/0.2053, allocations: 27.92 kB / 0.5247 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2185/0.4238, allocations: 6.01 MB / 0.5306 GB, free: 49.53 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4238, allocations: 1.5 kB / 0.5306 GB, free: 49.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002519/0.4264, allocations: 1.648 MB / 0.5322 GB, free: 49.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002065/0.4266, allocations: 144.1 kB / 0.5323 GB, free: 49.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.4267, allocations: 28.97 kB / 0.5323 GB, free: 49.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003866/0.4271, allocations: 22.5 kB / 0.5324 GB, free: 49.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.4273, allocations: 58.14 kB / 0.5324 GB, free: 49.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.435e-05/0.4273, allocations: 25.41 kB / 0.5324 GB, free: 49.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005106/0.4278, allocations: 414.3 kB / 0.5328 GB, free: 49.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4279, allocations: 0 / 0.5328 GB, free: 49.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001016/0.4289, allocations: 272.5 kB / 0.5331 GB, free: 49.1 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.002615/0.4315, allocations: 2.227 MB / 0.5353 GB, free: 48.15 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002149/0.4337, allocations: 1.384 MB / 0.5366 GB, free: 47.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4337, allocations: 0 / 0.5366 GB, free: 47.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001409/0.4351, allocations: 0.9165 MB / 0.5375 GB, free: 46.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.4361, allocations: 190 kB / 0.5377 GB, free: 46.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.4488, allocations: 8.164 MB / 0.5457 GB, free: 42.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007871/0.4497, allocations: 1.114 MB / 0.5468 GB, free: 41.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000635/0.4503, allocations: 210.6 kB / 0.547 GB, free: 41.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003969/0.4507, allocations: 338.4 kB / 0.5473 GB, free: 41.53 MB / 414.1 MB Notification: Performance of SimCode: time 1.363e-06/0.4507, allocations: 0 / 0.5473 GB, free: 41.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04543/0.4961, allocations: 19.21 MB / 0.566 GB, free: 28.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.2, allocations: 12.94 kB / 0.5661 GB, free: 28.91 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)