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.001358/0.001358, allocations: 94.72 kB / 16.3 MB, free: 5.992 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.001264/0.001264, allocations: 184.4 kB / 17.2 MB, free: 5.914 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.929/1.929, allocations: 205.4 MB / 223.4 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3857/0.3857, allocations: 38.05 MB / 309.7 MB, free: 8.891 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.0005007/0.0005007, allocations: 16 kB / 376.6 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1203, allocations: 56.33 MB / 432.9 MB, free: 6.637 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.00942/0.1298, allocations: 7.835 MB / 440.8 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006151/0.136, allocations: 2.752 MB / 443.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001035/0.1371, allocations: 55.62 kB / 443.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007934/0.1379, allocations: 258.4 kB / 443.8 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001711/0.1396, allocations: 490.5 kB / 444.3 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001516/0.1411, allocations: 463 kB / 444.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001172/0.1423, allocations: 0.6748 MB / 445.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001715/0.1441, allocations: 1.006 MB / 446.4 MB, free: 9.043 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000787/0.1449, allocations: 414.5 kB / 446.8 MB, free: 8.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006731/0.1455, allocations: 458.5 kB / 447.3 MB, free: 8.188 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.305e-05/0.1456, allocations: 44 kB / 447.3 MB, free: 8.145 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004943/0.1461, allocations: 183.7 kB / 447.5 MB, free: 7.965 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004504/0.1466, allocations: 431 kB / 447.9 MB, free: 7.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000263/0.1469, allocations: 209.1 kB / 448.1 MB, free: 7.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001196/0.1481, allocations: 0.9898 MB / 449.1 MB, free: 6.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1481, allocations: 0 / 449.1 MB, free: 6.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.1481, allocations: 0 / 449.1 MB, free: 6.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.1481, allocations: 4 kB / 449.1 MB, free: 6.336 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.002355/0.1505, allocations: 1.159 MB / 450.3 MB, free: 5.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.1505, allocations: 8.031 kB / 450.3 MB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001661/0.1507, allocations: 147.5 kB / 450.4 MB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001028/0.1518, allocations: 170.6 kB / 450.6 MB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.153, allocations: 0.6834 MB / 451.3 MB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.273e-05/0.1531, allocations: 66 kB / 451.3 MB, free: 4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002071/0.1533, allocations: 103.9 kB / 451.4 MB, free: 3.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/0.155, allocations: 1.212 MB / 452.7 MB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.155, allocations: 4 kB / 452.7 MB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.311e-05/0.1551, allocations: 32 kB / 452.7 MB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002522/0.1554, allocations: 65.97 kB / 452.8 MB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.1569, allocations: 0.9991 MB / 453.8 MB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2662/0.423, allocations: 4.778 MB / 458.5 MB, free: 36.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.4241, allocations: 0.6779 MB / 459.2 MB, free: 36.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.758e-05/0.4242, allocations: 10.42 kB / 459.2 MB, free: 36.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006252/0.4248, allocations: 0.4962 MB / 459.7 MB, free: 36.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=69): time 3.006e-06/0.4248, allocations: 2.594 kB / 459.7 MB, free: 36.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=73): time 0.004203/0.429, allocations: 2.932 MB / 462.7 MB, free: 35.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.064e-05/0.4291, allocations: 175 kB / 462.8 MB, free: 35.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005333/0.4297, allocations: 0.5869 MB / 463.4 MB, free: 35.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.4297, allocations: 43.8 kB / 463.5 MB, free: 35.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002929/0.43, allocations: 478 kB / 463.9 MB, free: 35.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.4302, allocations: 252.7 kB / 464.2 MB, free: 35.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.868e-05/0.4303, allocations: 18.31 kB / 464.2 MB, free: 35.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.4304, allocations: 396.8 kB / 464.6 MB, free: 34.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005204/0.4309, allocations: 367.2 kB / 464.9 MB, free: 34.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006133/0.4315, allocations: 0.6272 MB / 465.6 MB, free: 34.44 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.005009/0.4366, allocations: 2.498 MB / 468.1 MB, free: 34.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.4366, allocations: 0 / 468.1 MB, free: 34.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001965/0.4386, allocations: 1.336 MB / 469.4 MB, free: 33.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.4386, allocations: 35.7 kB / 469.4 MB, free: 33.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.4386, allocations: 7.219 kB / 469.4 MB, free: 33.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000562/0.4392, allocations: 251.8 kB / 469.7 MB, free: 33.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.4403, allocations: 273.7 kB / 469.9 MB, free: 33.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003971/0.4443, allocations: 5.638 MB / 475.6 MB, free: 29.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007032/0.445, allocations: 38.19 kB / 475.6 MB, free: 29.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.695e-05/0.4451, allocations: 45.55 kB / 475.7 MB, free: 29.9 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.000603/0.4457, allocations: 372.7 kB / 476 MB, free: 29.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.4458, allocations: 80.08 kB / 476.1 MB, free: 29.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00192/0.4477, allocations: 1.139 MB / 477.2 MB, free: 29.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.025e-05/0.4477, allocations: 9.031 kB / 477.3 MB, free: 29.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.4478, allocations: 2.969 kB / 477.3 MB, free: 29.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.4478, allocations: 3.328 kB / 477.3 MB, free: 29.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003256/0.451, allocations: 2.254 MB / 479.5 MB, free: 29.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.4511, allocations: 3.156 kB / 479.5 MB, free: 29.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008891/0.452, allocations: 200.5 kB / 479.7 MB, free: 29.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006082/0.4526, allocations: 243.9 kB / 480 MB, free: 29.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.321e-05/0.4526, allocations: 23.52 kB / 480 MB, free: 29.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004169/0.4568, allocations: 5.575 MB / 485.6 MB, free: 25.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.4568, allocations: 0 / 485.6 MB, free: 25.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002433/0.4593, allocations: 1.697 MB / 487.2 MB, free: 24.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000242/0.4595, allocations: 149.8 kB / 487.4 MB, free: 24.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.4597, allocations: 29.98 kB / 487.4 MB, free: 24.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003873/0.4601, allocations: 27.08 kB / 487.5 MB, free: 24.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.4602, allocations: 56.41 kB / 487.5 MB, free: 24.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.767e-05/0.4603, allocations: 30.44 kB / 487.5 MB, free: 24.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004941/0.4608, allocations: 408.9 kB / 487.9 MB, free: 24.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4608, allocations: 0 / 487.9 MB, free: 24.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001068/0.4619, allocations: 272 kB / 488.2 MB, free: 24.27 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.002513/0.4644, allocations: 2.691 MB / 490.9 MB, free: 22.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.4665, allocations: 1.377 MB / 492.3 MB, free: 21.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4665, allocations: 3.938 kB / 492.3 MB, free: 21.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.4676, allocations: 0.92 MB / 493.2 MB, free: 21.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007606/0.4684, allocations: 154.7 kB / 493.3 MB, free: 21.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01187/0.4803, allocations: 11.55 MB / 0.4931 GB, free: 28.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009131/0.4813, allocations: 1.137 MB / 0.4942 GB, free: 27.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006621/0.4819, allocations: 213 kB / 0.4944 GB, free: 27.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003616/0.4823, allocations: 340.4 kB / 0.4947 GB, free: 27.47 MB / 398.1 MB Notification: Performance of SimCode: time 2.565e-06/0.4823, allocations: 0 / 0.4947 GB, free: 27.47 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04312/0.5254, allocations: 17.75 MB / 0.512 GB, free: 23.82 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001482/0.5256, allocations: 212.9 kB / 0.5122 GB, free: 23.58 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/2.579, allocations: 0 / 0.5122 GB, free: 23.58 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/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: