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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001072/0.001072, allocations: 179.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.466/1.466, allocations: 194.5 MB / 211.6 MB, free: 3.047 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001673/0.001673, allocations: 112.6 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2491/0.2491, allocations: 38 MB / 340.1 MB, free: 1.355 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003822/0.0003823, allocations: 12 kB / 403.9 MB, free: 68.71 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1016, allocations: 53.22 MB / 457.1 MB, free: 15.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3664/0.468, allocations: 98.76 MB / 0.5428 GB, free: 12.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.4683, allocations: 87.2 kB / 0.5429 GB, free: 12.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07721/0.5456, allocations: 25.88 MB / 0.5682 GB, free: 6.281 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5456, allocations: 0 / 0.5682 GB, free: 6.281 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.286e-05/0.5457, allocations: 24 kB / 0.5682 GB, free: 6.258 MB / 378.7 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.003538/0.5493, allocations: 1.217 MB / 0.5694 GB, free: 5.055 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.5493, allocations: 16.02 kB / 0.5694 GB, free: 5.039 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004285/0.5498, allocations: 141.1 kB / 0.5695 GB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/0.5511, allocations: 182.5 kB / 0.5697 GB, free: 4.766 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004277/0.5554, allocations: 1.367 MB / 0.5711 GB, free: 3.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.668e-05/0.5556, allocations: 68.86 kB / 0.5711 GB, free: 3.551 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003305/0.5559, allocations: 86.84 kB / 0.5712 GB, free: 3.492 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002494/0.5584, allocations: 1.192 MB / 0.5724 GB, free: 2.555 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.07e-05/0.5585, allocations: 3.984 kB / 0.5724 GB, free: 2.551 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/0.5586, allocations: 48.67 kB / 0.5724 GB, free: 2.527 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001112/0.5588, allocations: 53.11 kB / 0.5725 GB, free: 2.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001786/0.5605, allocations: 0.9728 MB / 0.5734 GB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007226/0.5678, allocations: 4.675 MB / 0.578 GB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.569, allocations: 0.6774 MB / 0.5786 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.835e-05/0.5692, allocations: 12.61 kB / 0.5787 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008268/0.57, allocations: 0.5358 MB / 0.5792 GB, free: 12.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=73): time 3.597e-06/0.57, allocations: 0 / 0.5792 GB, free: 12.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=77): time 0.005371/0.5754, allocations: 3.116 MB / 0.5822 GB, free: 10.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.5756, allocations: 174.8 kB / 0.5824 GB, free: 9.941 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007726/0.5763, allocations: 0.5015 MB / 0.5829 GB, free: 9.531 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.292e-05/0.5765, allocations: 40.7 kB / 0.5829 GB, free: 9.496 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004004/0.5769, allocations: 471.7 kB / 0.5834 GB, free: 9.148 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002879/0.5772, allocations: 265.7 kB / 0.5836 GB, free: 8.922 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.305e-05/0.5772, allocations: 17.69 kB / 0.5836 GB, free: 8.918 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.5774, allocations: 391.3 kB / 0.584 GB, free: 8.559 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006254/0.5781, allocations: 390.2 kB / 0.5844 GB, free: 8.301 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007425/0.5788, allocations: 0.6301 MB / 0.585 GB, free: 7.707 MB / 394.7 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.01091/0.5897, allocations: 3.902 MB / 0.5888 GB, free: 4.316 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.11e-05/0.5898, allocations: 0 / 0.5888 GB, free: 4.316 MB / 394.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002526/0.5923, allocations: 1.365 MB / 0.5901 GB, free: 3.012 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.996e-05/0.5924, allocations: 33.7 kB / 0.5902 GB, free: 2.973 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.895e-05/0.5924, allocations: 8 kB / 0.5902 GB, free: 2.965 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006834/0.5931, allocations: 262.9 kB / 0.5904 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.5943, allocations: 275.6 kB / 0.5907 GB, free: 2.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005521/0.5999, allocations: 5.625 MB / 0.5962 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008067/0.6007, allocations: 47.97 kB / 0.5962 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.6009, allocations: 36 kB / 0.5963 GB, free: 12.32 MB / 410.7 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: 34 * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * 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.0007477/0.6016, allocations: 383.1 kB / 0.5966 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.6018, allocations: 75.06 kB / 0.5967 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002338/0.6042, allocations: 1.173 MB / 0.5979 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.282e-05/0.6042, allocations: 12 kB / 0.5979 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.6043, allocations: 4 kB / 0.5979 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.6043, allocations: 7.938 kB / 0.5979 GB, free: 10.63 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004259/0.6085, allocations: 2.317 MB / 0.6001 GB, free: 8.223 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.6086, allocations: 0 / 0.6001 GB, free: 8.223 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009863/0.6096, allocations: 200 kB / 0.6003 GB, free: 8.027 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008034/0.6104, allocations: 258.4 kB / 0.6006 GB, free: 7.766 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.6105, allocations: 23.98 kB / 0.6006 GB, free: 7.742 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005455/0.616, allocations: 5.57 MB / 0.606 GB, free: 1.773 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.616, allocations: 7.969 kB / 0.606 GB, free: 1.766 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003112/0.6191, allocations: 1.767 MB / 0.6078 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003206/0.6195, allocations: 152.2 kB / 0.6079 GB, free: 15.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.6197, allocations: 24 kB / 0.6079 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005136/0.6202, allocations: 31.95 kB / 0.608 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.6204, allocations: 64.42 kB / 0.608 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.42e-05/0.6205, allocations: 23.98 kB / 0.6081 GB, free: 15.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005828/0.6211, allocations: 403 kB / 0.6084 GB, free: 15.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6211, allocations: 0 / 0.6084 GB, free: 15.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001334/0.6224, allocations: 303.9 kB / 0.6087 GB, free: 14.91 MB / 426.7 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 (56): * Single equations (assignments): 48 * Array equations: 2 * 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.003441/0.6259, allocations: 2.814 MB / 0.6115 GB, free: 12.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002436/0.6283, allocations: 1.423 MB / 0.6129 GB, free: 10.54 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.6284, allocations: 0 / 0.6129 GB, free: 10.54 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.63, allocations: 0.9446 MB / 0.6138 GB, free: 9.547 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.6312, allocations: 155.3 kB / 0.6139 GB, free: 9.398 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.6445, allocations: 11.21 MB / 0.6249 GB, free: 13.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009272/0.6455, allocations: 1.131 MB / 0.626 GB, free: 12.74 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007725/0.6463, allocations: 218.6 kB / 0.6262 GB, free: 12.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005141/0.6468, allocations: 335.3 kB / 0.6265 GB, free: 12.2 MB / 442.7 MB Notification: Performance of SimCode: time 9.52e-07/0.6469, allocations: 4 kB / 0.6265 GB, free: 12.19 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04/0.6869, allocations: 18.94 MB / 0.645 GB, free: 9.246 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/0.6871, allocations: 198.5 kB / 0.6452 GB, free: 9.012 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.532/3.219, allocations: 4 kB / 0.6452 GB, free: 9.008 MB / 458.7 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)