Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_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.001103/0.001103, allocations: 85.81 kB / 16.32 MB, free: 6.457 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.001214/0.001214, allocations: 183.5 kB / 17.21 MB, free: 6.324 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.561/1.561, allocations: 223.2 MB / 241.2 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3387/0.3387, allocations: 38.09 MB / 330.4 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004954/0.0004955, allocations: 8 kB / 400.2 MB, free: 9.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.434/0.4345, allocations: 59.16 MB / 459.3 MB, free: 30.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.00864/0.4432, allocations: 8.221 MB / 467.5 MB, free: 24.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006846/0.4501, allocations: 2.683 MB / 470.2 MB, free: 22.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.4514, allocations: 56.19 kB / 470.3 MB, free: 22.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001008/0.4525, allocations: 261.5 kB / 470.5 MB, free: 22.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002129/0.4546, allocations: 0.5923 MB / 471.1 MB, free: 21.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001915/0.4565, allocations: 462.8 kB / 471.6 MB, free: 21.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002811/0.4594, allocations: 1.559 MB / 473.1 MB, free: 21.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002131/0.4615, allocations: 0.9996 MB / 474.1 MB, free: 20.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001323/0.4628, allocations: 470.7 kB / 474.6 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.4642, allocations: 0.6704 MB / 475.3 MB, free: 20.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000116/0.4643, allocations: 40.75 kB / 475.3 MB, free: 20.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007567/0.4651, allocations: 195.7 kB / 475.5 MB, free: 20.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007637/0.4659, allocations: 478.1 kB / 476 MB, free: 20.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003054/0.4662, allocations: 210.2 kB / 476.2 MB, free: 19.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001324/0.4675, allocations: 0.9927 MB / 477.2 MB, free: 19.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4675, allocations: 1.594 kB / 477.2 MB, free: 19.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4676, allocations: 0 / 477.2 MB, free: 19.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.782e-05/0.4676, allocations: 0 / 477.2 MB, free: 19.41 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.002015/0.4696, allocations: 1.158 MB / 478.3 MB, free: 18.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.4696, allocations: 13.41 kB / 478.3 MB, free: 18.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001601/0.4698, allocations: 138 kB / 478.5 MB, free: 18.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008893/0.4707, allocations: 173 kB / 478.6 MB, free: 18.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.4718, allocations: 0.6773 MB / 479.3 MB, free: 17.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.099e-05/0.4719, allocations: 68.33 kB / 479.4 MB, free: 17.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002062/0.4721, allocations: 101 kB / 479.5 MB, free: 17.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001812/0.4739, allocations: 1.219 MB / 480.7 MB, free: 16.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/0.4739, allocations: 2.469 kB / 480.7 MB, free: 16.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-05/0.474, allocations: 45.31 kB / 480.8 MB, free: 16.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002405/0.4743, allocations: 68.42 kB / 480.8 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/0.476, allocations: 1.009 MB / 481.8 MB, free: 16.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005675/0.4817, allocations: 4.785 MB / 486.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009239/0.4827, allocations: 0.6565 MB / 487.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000554/0.4833, allocations: 459.8 kB / 487.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.829e-05/0.4833, allocations: 16.53 kB / 487.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006796/0.484, allocations: 0.5118 MB / 488.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.986e-06/0.484, allocations: 0 / 488.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004451/0.4885, allocations: 2.784 MB / 491 MB, free: 7.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.183e-05/0.4886, allocations: 170.8 kB / 491.2 MB, free: 7.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006489/0.4892, allocations: 0.586 MB / 491.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.897e-05/0.4893, allocations: 41.7 kB / 491.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002743/0.4896, allocations: 482.9 kB / 492.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.4898, allocations: 248.5 kB / 492.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.407e-05/0.4898, allocations: 20 kB / 492.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.49, allocations: 398.7 kB / 492.9 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004825/0.4904, allocations: 369.8 kB / 493.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006537/0.4911, allocations: 0.627 MB / 493.9 MB, free: 4.656 MB / 350.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.004839/0.496, allocations: 2.532 MB / 496.5 MB, free: 2.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.496, allocations: 4 kB / 496.5 MB, free: 2.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001886/0.4979, allocations: 1.328 MB / 497.8 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.4979, allocations: 35.89 kB / 497.8 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.4979, allocations: 8 kB / 497.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005529/0.4985, allocations: 246.6 kB / 498.1 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009897/0.4995, allocations: 263.6 kB / 498.3 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005995/0.5055, allocations: 5.574 MB / 0.4921 GB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000781/0.5063, allocations: 31.98 kB / 0.4921 GB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.533e-05/0.5064, allocations: 40 kB / 0.4922 GB, free: 10.11 MB / 366.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.0007756/0.5072, allocations: 379.1 kB / 0.4925 GB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.5073, allocations: 79.06 kB / 0.4926 GB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/0.5094, allocations: 1.141 MB / 0.4937 GB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.5094, allocations: 15.94 kB / 0.4937 GB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.5094, allocations: 4 kB / 0.4937 GB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.5094, allocations: 3.984 kB / 0.4937 GB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/0.513, allocations: 2.25 MB / 0.4959 GB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.5131, allocations: 4.125 kB / 0.4959 GB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009065/0.514, allocations: 191.9 kB / 0.4961 GB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000657/0.5147, allocations: 250.2 kB / 0.4964 GB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.512e-05/0.5147, allocations: 27.94 kB / 0.4964 GB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005472/0.5202, allocations: 5.5 MB / 0.5018 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.5203, allocations: 4.031 kB / 0.5018 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002749/0.523, allocations: 1.646 MB / 0.5034 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003528/0.5234, allocations: 148.1 kB / 0.5035 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.5235, allocations: 24.05 kB / 0.5035 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003718/0.5239, allocations: 23.98 kB / 0.5036 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.524, allocations: 60.38 kB / 0.5036 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.946e-05/0.5241, allocations: 27.98 kB / 0.5037 GB, free: 13.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000573/0.5247, allocations: 407 kB / 0.504 GB, free: 13.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5247, allocations: 4 kB / 0.504 GB, free: 13.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001312/0.526, allocations: 280 kB / 0.5043 GB, free: 13.07 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.00327/0.5293, allocations: 2.214 MB / 0.5065 GB, free: 10.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002368/0.5317, allocations: 1.388 MB / 0.5078 GB, free: 9.359 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.5317, allocations: 0.625 kB / 0.5078 GB, free: 9.359 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001665/0.5334, allocations: 0.9087 MB / 0.5087 GB, free: 8.398 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.5344, allocations: 169.5 kB / 0.5089 GB, free: 8.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0098/0.5442, allocations: 6.186 MB / 0.5149 GB, free: 1.801 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009323/0.5452, allocations: 1.115 MB / 0.516 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006623/0.5459, allocations: 214.5 kB / 0.5162 GB, free: 456 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004989/0.5464, allocations: 335.3 kB / 0.5165 GB, free: 120 kB / 382.1 MB Notification: Performance of SimCode: time 1.874e-06/0.5464, allocations: 0 / 0.5165 GB, free: 120 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04273/0.5891, allocations: 17.8 MB / 0.5339 GB, free: 14.57 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003148/0.5895, allocations: 218.8 kB / 0.5341 GB, free: 14.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.998/3.588, allocations: 7.438 kB / 0.5341 GB, free: 14.32 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat does not exist to compare? outputFormat=mat