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.001455/0.001454, allocations: 180.3 kB / 8.353 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.609/1.609, allocations: 194.4 MB / 203.1 MB, free: 13.03 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.001735/0.001735, allocations: 126.7 kB / 248.1 MB, free: 24 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.179/0.179, allocations: 37.93 MB / 330.9 MB, free: 2.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.711e-05/2.707e-05, allocations: 4 kB / 390.5 MB, free: 7.012 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4485/0.4486, allocations: 53.23 MB / 443.7 MB, free: 17.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4715/0.9201, allocations: 97.99 MB / 0.529 GB, free: 90.76 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/0.9205, allocations: 81.45 kB / 0.5291 GB, free: 90.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06817/0.9887, allocations: 25.65 MB / 0.5541 GB, free: 74.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.9888, allocations: 4 kB / 0.5541 GB, free: 74.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.608e-05/0.9888, allocations: 24 kB / 0.5541 GB, free: 74.78 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.001892/0.9907, allocations: 1.084 MB / 0.5552 GB, free: 73.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.9908, allocations: 8.031 kB / 0.5552 GB, free: 73.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009859/0.9918, allocations: 182.5 kB / 0.5554 GB, free: 73.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/0.9946, allocations: 1.356 MB / 0.5567 GB, free: 72.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/0.9946, allocations: 24 kB / 0.5567 GB, free: 72.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.9947, allocations: 55.91 kB / 0.5568 GB, free: 72 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001106/0.9959, allocations: 0.8161 MB / 0.5576 GB, free: 71.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.9971, allocations: 1.058 MB / 0.5586 GB, free: 70.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.181e-05/0.9972, allocations: 11.89 kB / 0.5586 GB, free: 70.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.147e-05/0.9973, allocations: 0 / 0.5586 GB, free: 70.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.892e-05/0.9973, allocations: 57.97 kB / 0.5587 GB, free: 69.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004336/1.002, allocations: 4.512 MB / 0.5631 GB, free: 65.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008034/1.003, allocations: 0.6317 MB / 0.5637 GB, free: 64.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004545/1.003, allocations: 452.5 kB / 0.5641 GB, free: 64.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.581e-05/1.003, allocations: 12.31 kB / 0.5641 GB, free: 64.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005807/1.004, allocations: 0.5007 MB / 0.5646 GB, free: 63.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=73): time 2.846e-06/1.004, allocations: 0 / 0.5646 GB, free: 63.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.003461/1.007, allocations: 2.342 MB / 0.5669 GB, free: 61.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/1.007, allocations: 174.8 kB / 0.5671 GB, free: 61.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004355/1.008, allocations: 450.4 kB / 0.5675 GB, free: 60.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.009e-05/1.008, allocations: 25.73 kB / 0.5675 GB, free: 60.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/1.008, allocations: 479 kB / 0.568 GB, free: 60.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/1.008, allocations: 257.1 kB / 0.5682 GB, free: 59.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-05/1.008, allocations: 0 / 0.5682 GB, free: 59.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.585e-05/1.008, allocations: 390.7 kB / 0.5686 GB, free: 59.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004149/1.009, allocations: 362.5 kB / 0.569 GB, free: 59.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004914/1.009, allocations: 0.5987 MB / 0.5695 GB, free: 58.43 MB / 378.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.009581/1.019, allocations: 3.795 MB / 0.5732 GB, free: 54.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/1.019, allocations: 4 kB / 0.5732 GB, free: 54.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001916/1.021, allocations: 1.231 MB / 0.5744 GB, free: 53.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.418e-05/1.021, allocations: 43.34 kB / 0.5745 GB, free: 53.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/1.021, allocations: 8 kB / 0.5745 GB, free: 53.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000553/1.021, allocations: 242.6 kB / 0.5747 GB, free: 53.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/1.023, allocations: 279.6 kB / 0.575 GB, free: 52.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003707/1.026, allocations: 5.39 MB / 0.5803 GB, free: 47.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006974/1.027, allocations: 27.88 kB / 0.5803 GB, free: 47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.268e-05/1.027, allocations: 36 kB / 0.5803 GB, free: 46.97 MB / 378.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 () * 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.0002433/1.027, allocations: 179.3 kB / 0.5805 GB, free: 46.78 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001519/1.029, allocations: 1 MB / 0.5815 GB, free: 45.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.564e-05/1.029, allocations: 79 kB / 0.5815 GB, free: 45.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/1.031, allocations: 1.077 MB / 0.5826 GB, free: 44.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/1.031, allocations: 12 kB / 0.5826 GB, free: 44.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/1.031, allocations: 4 kB / 0.5826 GB, free: 44.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/1.031, allocations: 7.984 kB / 0.5826 GB, free: 44.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003039/1.034, allocations: 2.103 MB / 0.5847 GB, free: 42.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/1.034, allocations: 4 kB / 0.5847 GB, free: 42.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009299/1.035, allocations: 199.9 kB / 0.5849 GB, free: 42.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006125/1.035, allocations: 238.3 kB / 0.5851 GB, free: 41.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.104e-05/1.035, allocations: 15.98 kB / 0.5851 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00351/1.039, allocations: 5.325 MB / 0.5903 GB, free: 36.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.039, allocations: 4.031 kB / 0.5903 GB, free: 36.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002141/1.041, allocations: 1.67 MB / 0.5919 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002474/1.041, allocations: 144.2 kB / 0.5921 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/1.042, allocations: 11.98 kB / 0.5921 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004719/1.042, allocations: 31.91 kB / 0.5921 GB, free: 34.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/1.042, allocations: 52.48 kB / 0.5922 GB, free: 34.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.389e-05/1.042, allocations: 27.92 kB / 0.5922 GB, free: 34.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003891/1.043, allocations: 351.2 kB / 0.5925 GB, free: 33.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/1.043, allocations: 4 kB / 0.5925 GB, free: 33.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001143/1.044, allocations: 280 kB / 0.5928 GB, free: 33.64 MB / 378.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) * 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.002459/1.046, allocations: 2.698 MB / 0.5954 GB, free: 30.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001727/1.048, allocations: 1.33 MB / 0.5967 GB, free: 29.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.048, allocations: 0 / 0.5967 GB, free: 29.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/1.049, allocations: 0.8938 MB / 0.5976 GB, free: 28.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007835/1.05, allocations: 151.4 kB / 0.5978 GB, free: 28.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003287/1.053, allocations: 1.995 MB / 0.5997 GB, free: 26.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005578/1.054, allocations: 1.143 MB / 0.6008 GB, free: 25.19 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005912/1.054, allocations: 206.3 kB / 0.601 GB, free: 24.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003957/1.055, allocations: 335.3 kB / 0.6013 GB, free: 24.65 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/1.055, allocations: 0 / 0.6013 GB, free: 24.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0442/1.099, allocations: 17.4 MB / 0.6183 GB, free: 7.234 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/1.099, allocations: 159.8 kB / 0.6185 GB, free: 7.027 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.416/3.515, allocations: 3.938 kB / 0.6185 GB, free: 7.023 MB / 378.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)