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.001007/0.001007, allocations: 111.3 kB / 16.63 MB, free: 6.812 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.001037/0.001037, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.267/1.267, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.172/0.172, allocations: 38.02 MB / 329.4 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 73.47 kB / 398.4 MB, free: 34.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08702/0.08848, allocations: 58.05 MB / 456.4 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.009876/0.09839, allocations: 9.222 MB / 465.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004657/0.1031, allocations: 2.82 MB / 468.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008304/0.1039, allocations: 59.62 kB / 468.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002096/0.1061, allocations: 0.8094 MB / 469.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001157/0.1072, allocations: 478 kB / 469.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.1084, allocations: 407.3 kB / 470.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001411/0.1098, allocations: 1.313 MB / 471.5 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009391/0.1107, allocations: 0.7402 MB / 472.3 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008405/0.1116, allocations: 0.5719 MB / 472.8 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001014/0.1126, allocations: 0.7359 MB / 473.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001699/0.1128, allocations: 80 kB / 473.6 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005404/0.1133, allocations: 263.6 kB / 473.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004857/0.1138, allocations: 0.5105 MB / 474.4 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006371/0.1145, allocations: 0.5442 MB / 475 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001237/0.1157, allocations: 1.312 MB / 476.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1157, allocations: 0 / 476.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1157, allocations: 0 / 476.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.1158, allocations: 0 / 476.3 MB, free: 4.359 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.002154/0.1179, allocations: 1.335 MB / 477.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.118, allocations: 11.89 kB / 477.6 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001527/0.1181, allocations: 147.7 kB / 477.8 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009845/0.1191, allocations: 159.5 kB / 477.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.1202, allocations: 0.7116 MB / 478.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.015e-05/0.1202, allocations: 62.38 kB / 478.7 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.1205, allocations: 115.8 kB / 478.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001668/0.1221, allocations: 1.216 MB / 480 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/0.1222, allocations: 7.938 kB / 480 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.921e-05/0.1223, allocations: 32 kB / 480.1 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002621/0.1225, allocations: 61.97 kB / 480.1 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001526/0.1241, allocations: 1.015 MB / 481.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005456/0.1295, allocations: 4.771 MB / 485.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.1306, allocations: 0.6787 MB / 486.6 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006132/0.1312, allocations: 455.7 kB / 487 MB, free: 9.191 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.363e-05/0.1313, allocations: 8.562 kB / 487 MB, free: 9.184 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007391/0.132, allocations: 0.5119 MB / 487.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.645e-06/0.132, allocations: 0 / 487.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.00445/0.1365, allocations: 2.776 MB / 490.3 MB, free: 5.777 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.801e-05/0.1366, allocations: 162.8 kB / 490.5 MB, free: 5.582 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006165/0.1372, allocations: 0.5977 MB / 491.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.71e-05/0.1373, allocations: 41.69 kB / 491.1 MB, free: 4.926 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003108/0.1376, allocations: 482.9 kB / 491.6 MB, free: 4.445 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.1378, allocations: 260.4 kB / 491.8 MB, free: 4.188 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002416/0.1381, allocations: 174.5 kB / 492 MB, free: 4.012 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1382, allocations: 390.8 kB / 492.4 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005725/0.1388, allocations: 373.8 kB / 492.8 MB, free: 3.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007083/0.1395, allocations: 0.631 MB / 493.4 MB, free: 2.512 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.006758/0.1463, allocations: 3.449 MB / 496.8 MB, free: 14.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.1463, allocations: 0 / 496.8 MB, free: 14.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00219/0.1485, allocations: 1.344 MB / 498.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.773e-05/0.1486, allocations: 37.73 kB / 498.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.1486, allocations: 8 kB / 498.2 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006119/0.1492, allocations: 254.3 kB / 498.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.1503, allocations: 267.5 kB / 498.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005313/0.1556, allocations: 6.077 MB / 0.493 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005585/0.1562, allocations: 39.98 kB / 0.493 GB, free: 6.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-05/0.1563, allocations: 39.98 kB / 0.4931 GB, free: 6.375 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.0005104/0.1568, allocations: 372.8 kB / 0.4934 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.1569, allocations: 79 kB / 0.4935 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/0.1588, allocations: 1.141 MB / 0.4946 GB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.009e-05/0.1589, allocations: 8 kB / 0.4946 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.373e-06/0.1589, allocations: 7.938 kB / 0.4946 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.1589, allocations: 7.984 kB / 0.4946 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003284/0.1622, allocations: 2.253 MB / 0.4968 GB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.1622, allocations: 0 / 0.4968 GB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008801/0.1631, allocations: 191.9 kB / 0.497 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006634/0.1638, allocations: 250.6 kB / 0.4973 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-05/0.1638, allocations: 31.92 kB / 0.4973 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004732/0.1686, allocations: 6.015 MB / 0.5032 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1686, allocations: 0 / 0.5032 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002378/0.171, allocations: 1.645 MB / 0.5048 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002001/0.1712, allocations: 148.2 kB / 0.5049 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/0.1713, allocations: 23.98 kB / 0.5049 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004338/0.1718, allocations: 23.98 kB / 0.505 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.1719, allocations: 60.36 kB / 0.505 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-05/0.172, allocations: 32.05 kB / 0.505 GB, free: 9.488 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004619/0.1725, allocations: 411 kB / 0.5054 GB, free: 9.094 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1725, allocations: 0 / 0.5054 GB, free: 9.094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001001/0.1735, allocations: 272 kB / 0.5057 GB, free: 8.828 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.00255/0.176, allocations: 2.202 MB / 0.5078 GB, free: 6.559 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002334/0.1784, allocations: 1.571 MB / 0.5094 GB, free: 4.941 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.1784, allocations: 4.438 kB / 0.5094 GB, free: 4.938 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.1797, allocations: 0.9123 MB / 0.5103 GB, free: 3.973 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008702/0.1806, allocations: 188.2 kB / 0.5105 GB, free: 3.793 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1795/0.3601, allocations: 8.756 MB / 0.519 GB, free: 68.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006185/0.3607, allocations: 1.116 MB / 0.5201 GB, free: 67.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000601/0.3613, allocations: 210.4 kB / 0.5203 GB, free: 67.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003597/0.3617, allocations: 338.4 kB / 0.5206 GB, free: 67.7 MB / 398.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3617, allocations: 1.219 kB / 0.5206 GB, free: 67.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03815/0.3999, allocations: 18.49 MB / 0.5387 GB, free: 61.93 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/0.4, allocations: 228.4 kB / 0.5389 GB, free: 61.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.16/2.56, allocations: 3.516 kB / 0.5389 GB, free: 61.68 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)