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: translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.001049, allocations: 110.5 kB / 17.16 MB, free: 6.082 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.001061/0.001061, allocations: 198.9 kB / 18.08 MB, free: 5.285 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.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1683/0.1683, allocations: 38.05 MB / 329.9 MB, free: 9.082 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001097, allocations: 58.25 kB / 398.7 MB, free: 34.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1264, allocations: 58.06 MB / 456.8 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.009303/0.1357, allocations: 9.219 MB / 466 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005253/0.141, allocations: 2.855 MB / 468.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008966/0.1419, allocations: 67.56 kB / 468.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002018/0.144, allocations: 0.7993 MB / 469.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001298/0.1453, allocations: 477.9 kB / 470.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.1465, allocations: 403.3 kB / 470.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00175/0.1483, allocations: 1.98 MB / 472.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008957/0.1492, allocations: 0.6734 MB / 473.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006511/0.1498, allocations: 493.8 kB / 473.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009006/0.1508, allocations: 0.7243 MB / 474.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.1509, allocations: 59.98 kB / 474.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005339/0.1514, allocations: 255.6 kB / 474.8 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004173/0.1518, allocations: 494.7 kB / 475.2 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004884/0.1523, allocations: 0.5169 MB / 475.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000874/0.1532, allocations: 1.006 MB / 476.8 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.1532, allocations: 0 / 476.8 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1533, allocations: 3.938 kB / 476.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.1533, allocations: 0 / 476.8 MB, free: 4.504 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.002272/0.1555, allocations: 1.334 MB / 478.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.1556, allocations: 12.03 kB / 478.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009655/0.1566, allocations: 171.4 kB / 478.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.1576, allocations: 0.6961 MB / 479 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.721e-05/0.1577, allocations: 66.36 kB / 479 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002209/0.1579, allocations: 115.9 kB / 479.2 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/0.1596, allocations: 1.216 MB / 480.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/0.1597, allocations: 4 kB / 480.4 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.748e-05/0.1597, allocations: 35.98 kB / 480.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002484/0.16, allocations: 61.97 kB / 480.5 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.1615, allocations: 1.011 MB / 481.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005343/0.1668, allocations: 4.764 MB / 486.2 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.1679, allocations: 0.672 MB / 486.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005864/0.1685, allocations: 451.8 kB / 487.4 MB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.558e-05/0.1686, allocations: 20.48 kB / 487.4 MB, free: 9.488 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007106/0.1693, allocations: 0.5041 MB / 487.9 MB, free: 8.953 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 3.025e-06/0.1693, allocations: 4 kB / 487.9 MB, free: 8.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004485/0.1738, allocations: 2.78 MB / 490.7 MB, free: 6.082 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.172e-05/0.1739, allocations: 166.8 kB / 490.8 MB, free: 5.883 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006307/0.1745, allocations: 0.5899 MB / 491.4 MB, free: 5.285 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/0.1746, allocations: 45.69 kB / 491.5 MB, free: 5.234 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003418/0.1749, allocations: 475 kB / 491.9 MB, free: 4.762 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002083/0.1752, allocations: 260.4 kB / 492.2 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002403/0.1754, allocations: 170.6 kB / 492.3 MB, free: 4.332 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.1756, allocations: 390.7 kB / 492.7 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005519/0.1761, allocations: 377.8 kB / 493.1 MB, free: 3.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007356/0.1769, allocations: 0.631 MB / 493.7 MB, free: 2.824 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.006656/0.1835, allocations: 3.453 MB / 497.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.1836, allocations: 0 / 497.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002157/0.1857, allocations: 1.352 MB / 498.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.1858, allocations: 33.7 kB / 498.6 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.1858, allocations: 11.98 kB / 498.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006196/0.1864, allocations: 238.4 kB / 498.8 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.1875, allocations: 267.6 kB / 499.1 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00493/0.1924, allocations: 5.569 MB / 0.4928 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006462/0.1931, allocations: 35.98 kB / 0.4928 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.737e-05/0.1932, allocations: 43.98 kB / 0.4929 GB, free: 7.219 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.0005795/0.1938, allocations: 383.9 kB / 0.4933 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.1939, allocations: 83.11 kB / 0.4933 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001856/0.1958, allocations: 1.137 MB / 0.4944 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.89e-05/0.1958, allocations: 8 kB / 0.4945 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.1958, allocations: 7.984 kB / 0.4945 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.1958, allocations: 4 kB / 0.4945 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/0.199, allocations: 2.253 MB / 0.4967 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.199, allocations: 0 / 0.4967 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000833/0.1999, allocations: 187.7 kB / 0.4968 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006596/0.2005, allocations: 242.4 kB / 0.4971 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.805e-05/0.2006, allocations: 27.98 kB / 0.4971 GB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004494/0.2051, allocations: 5.503 MB / 0.5025 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2051, allocations: 0 / 0.5025 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002296/0.2074, allocations: 1.653 MB / 0.5041 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.2076, allocations: 140.2 kB / 0.5042 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.2077, allocations: 32.23 kB / 0.5043 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003626/0.2081, allocations: 19.98 kB / 0.5043 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.2082, allocations: 68.41 kB / 0.5043 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.072e-05/0.2083, allocations: 24 kB / 0.5044 GB, free: 10.87 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004463/0.2087, allocations: 415 kB / 0.5048 GB, free: 10.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2087, allocations: 0 / 0.5048 GB, free: 10.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001044/0.2098, allocations: 272 kB / 0.505 GB, free: 10.2 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.0002098/0.21, allocations: 127.1 kB / 0.5051 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.212, allocations: 1.395 MB / 0.5065 GB, free: 8.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.212, allocations: 4 kB / 0.5065 GB, free: 8.613 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.2133, allocations: 0.9054 MB / 0.5074 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008396/0.2141, allocations: 177.5 kB / 0.5076 GB, free: 7.488 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003644/0.2178, allocations: 2.651 MB / 0.5101 GB, free: 4.785 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008758/0.2186, allocations: 1.122 MB / 0.5112 GB, free: 3.637 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.2189, allocations: 63.42 kB / 0.5113 GB, free: 3.574 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2189, allocations: 0 / 0.5113 GB, free: 3.574 MB / 398.1 MB Notification: Performance of Templates: time 0.2415/0.4604, allocations: 21 MB / 0.5318 GB, free: 64.4 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitialCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitialCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitialCalcHelperMain.o] Error 1